public abstract class org.apache.lucene.spatial.SpatialStrategy
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.lucene.spatial.SpatialStrategy
super_class: java.lang.Object
{
protected final org.locationtech.spatial4j.context.SpatialContext ctx;
descriptor: Lorg/locationtech/spatial4j/context/SpatialContext;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.lang.String fieldName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.locationtech.spatial4j.context.SpatialContext, java.lang.String);
descriptor: (Lorg/locationtech/spatial4j/context/SpatialContext;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "ctx is required"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.lucene.spatial.SpatialStrategy org.locationtech.spatial4j.context.SpatialContext java.lang.String
StackMap stack:
aload 0
aload 1
putfield org.apache.lucene.spatial.SpatialStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
4: aload 2
ifnull 5
aload 2
invokevirtual java.lang.String.length:()I
ifne 6
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "fieldName is required"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.apache.lucene.spatial.SpatialStrategy.fieldName:Ljava/lang/String;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
0 8 1 ctx Lorg/locationtech/spatial4j/context/SpatialContext;
0 8 2 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
ctx
fieldName
public org.locationtech.spatial4j.context.SpatialContext getSpatialContext();
descriptor: ()Lorg/locationtech/spatial4j/context/SpatialContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
public java.lang.String getFieldName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.fieldName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
public abstract org.apache.lucene.document.Field[] createIndexableFields(org.locationtech.spatial4j.shape.Shape);
descriptor: (Lorg/locationtech/spatial4j/shape/Shape;)[Lorg/apache/lucene/document/Field;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
shape
public org.apache.lucene.search.DoubleValuesSource makeDistanceValueSource(org.locationtech.spatial4j.shape.Point);
descriptor: (Lorg/locationtech/spatial4j/shape/Point;)Lorg/apache/lucene/search/DoubleValuesSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
dconst_1
invokevirtual org.apache.lucene.spatial.SpatialStrategy.makeDistanceValueSource:(Lorg/locationtech/spatial4j/shape/Point;D)Lorg/apache/lucene/search/DoubleValuesSource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
0 1 1 queryPoint Lorg/locationtech/spatial4j/shape/Point;
MethodParameters:
Name Flags
queryPoint
public abstract org.apache.lucene.search.DoubleValuesSource makeDistanceValueSource(org.locationtech.spatial4j.shape.Point, double);
descriptor: (Lorg/locationtech/spatial4j/shape/Point;D)Lorg/apache/lucene/search/DoubleValuesSource;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
queryPoint
multiplier
public abstract org.apache.lucene.search.Query makeQuery(org.apache.lucene.spatial.query.SpatialArgs);
descriptor: (Lorg/apache/lucene/spatial/query/SpatialArgs;)Lorg/apache/lucene/search/Query;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
args
public final org.apache.lucene.search.DoubleValuesSource makeRecipDistanceValueSource(org.locationtech.spatial4j.shape.Shape);
descriptor: (Lorg/locationtech/spatial4j/shape/Shape;)Lorg/apache/lucene/search/DoubleValuesSource;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.locationtech.spatial4j.shape.Shape.getBoundingBox:()Lorg/locationtech/spatial4j/shape/Rectangle;
astore 2
start local 2 1: aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
invokevirtual org.locationtech.spatial4j.context.SpatialContext.getDistCalc:()Lorg/locationtech/spatial4j/distance/DistanceCalculator;
2: aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
aload 2
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMinX:()D
aload 2
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMinY:()D
invokevirtual org.locationtech.spatial4j.context.SpatialContext.makePoint:(DD)Lorg/locationtech/spatial4j/shape/Point;
aload 2
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMaxX:()D
aload 2
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMaxY:()D
3: invokeinterface org.locationtech.spatial4j.distance.DistanceCalculator.distance:(Lorg/locationtech/spatial4j/shape/Point;DD)D
dstore 3
start local 3 4: dload 3
ldc 0.5
dmul
dstore 5
start local 5 5: dload 5
d2f
ldc 0.1
fmul
fstore 7
start local 7 6: aload 0
aload 1
invokeinterface org.locationtech.spatial4j.shape.Shape.getCenter:()Lorg/locationtech/spatial4j/shape/Point;
dconst_1
invokevirtual org.apache.lucene.spatial.SpatialStrategy.makeDistanceValueSource:(Lorg/locationtech/spatial4j/shape/Point;D)Lorg/apache/lucene/search/DoubleValuesSource;
astore 8
start local 8 7: new org.apache.lucene.spatial.util.ReciprocalDoubleValuesSource
dup
fload 7
f2d
aload 8
invokespecial org.apache.lucene.spatial.util.ReciprocalDoubleValuesSource.<init>:(DLorg/apache/lucene/search/DoubleValuesSource;)V
areturn
end local 8 end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
0 8 1 queryShape Lorg/locationtech/spatial4j/shape/Shape;
1 8 2 bbox Lorg/locationtech/spatial4j/shape/Rectangle;
4 8 3 diagonalDist D
5 8 5 distToEdge D
6 8 7 c F
7 8 8 distance Lorg/apache/lucene/search/DoubleValuesSource;
MethodParameters:
Name Flags
queryShape
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " field:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.fieldName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ctx="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.spatial.SpatialStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/SpatialStrategy;
}
SourceFile: "SpatialStrategy.java"