public class org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy extends org.apache.lucene.spatial.prefix.PrefixTreeStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy
super_class: org.apache.lucene.spatial.prefix.PrefixTreeStrategy
{
protected boolean simplifyIndexedCells;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
public void <init>(org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree, java.lang.String);
descriptor: (Lorg/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
start local 1 // org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree grid
start local 2 // java.lang.String fieldName
0: .line 52
aload 0 /* this */
aload 1 /* grid */
aload 2 /* fieldName */
invokespecial org.apache.lucene.spatial.prefix.PrefixTreeStrategy.<init>:(Lorg/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;Ljava/lang/String;)V
1: .line 49
aload 0 /* this */
iconst_0
putfield org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.simplifyIndexedCells:Z
2: .line 53
return
end local 2 // java.lang.String fieldName
end local 1 // org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree grid
end local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/spatial/prefix/TermQueryPrefixTreeStrategy;
0 3 1 grid Lorg/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;
0 3 2 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
grid
fieldName
protected org.apache.lucene.spatial.prefix.CellToBytesRefIterator newCellToBytesRefIterator();
descriptor: ()Lorg/apache/lucene/spatial/prefix/CellToBytesRefIterator;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
0: .line 58
new org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy$1
dup
aload 0 /* this */
invokespecial org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy$1.<init>:(Lorg/apache/lucene/spatial/prefix/TermQueryPrefixTreeStrategy;)V
areturn
end local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/prefix/TermQueryPrefixTreeStrategy;
public 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: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=2
start local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
start local 1 // org.apache.lucene.spatial.query.SpatialArgs args
0: .line 71
aload 1 /* args */
invokevirtual org.apache.lucene.spatial.query.SpatialArgs.getOperation:()Lorg/apache/lucene/spatial/query/SpatialOperation;
astore 2 /* op */
start local 2 // org.apache.lucene.spatial.query.SpatialOperation op
1: .line 72
aload 2 /* op */
getstatic org.apache.lucene.spatial.query.SpatialOperation.Intersects:Lorg/apache/lucene/spatial/query/SpatialOperation;
if_acmpeq 3
2: .line 73
new org.apache.lucene.spatial.query.UnsupportedSpatialOperation
dup
aload 2 /* op */
invokespecial org.apache.lucene.spatial.query.UnsupportedSpatialOperation.<init>:(Lorg/apache/lucene/spatial/query/SpatialOperation;)V
athrow
3: .line 75
StackMap locals: org.apache.lucene.spatial.query.SpatialOperation
StackMap stack:
aload 1 /* args */
invokevirtual org.apache.lucene.spatial.query.SpatialArgs.getShape:()Lorg/locationtech/spatial4j/shape/Shape;
astore 3 /* shape */
start local 3 // org.locationtech.spatial4j.shape.Shape shape
4: .line 76
aload 0 /* this */
getfield org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.grid:Lorg/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;
aload 1 /* args */
aload 0 /* this */
getfield org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.ctx:Lorg/locationtech/spatial4j/context/SpatialContext;
aload 0 /* this */
getfield org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.distErrPct:D
invokevirtual org.apache.lucene.spatial.query.SpatialArgs.resolveDistErr:(Lorg/locationtech/spatial4j/context/SpatialContext;D)D
invokevirtual org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree.getLevelForDistance:(D)I
istore 4 /* detailLevel */
start local 4 // int detailLevel
5: .line 80
aload 3 /* shape */
instanceof org.locationtech.spatial4j.shape.Point
ifeq 8
6: .line 81
iload 4 /* detailLevel */
istore 5 /* GUESS_NUM_TERMS */
start local 5 // int GUESS_NUM_TERMS
7: goto 9
end local 5 // int GUESS_NUM_TERMS
8: .line 83
StackMap locals: org.locationtech.spatial4j.shape.Shape int
StackMap stack:
sipush 4096
istore 5 /* GUESS_NUM_TERMS */
start local 5 // int GUESS_NUM_TERMS
9: .line 85
StackMap locals: int
StackMap stack:
new org.apache.lucene.util.BytesRefBuilder
dup
invokespecial org.apache.lucene.util.BytesRefBuilder.<init>:()V
astore 6 /* masterBytes */
start local 6 // org.apache.lucene.util.BytesRefBuilder masterBytes
10: .line 86
new java.util.ArrayList
dup
iload 5 /* GUESS_NUM_TERMS */
invokespecial java.util.ArrayList.<init>:(I)V
astore 7 /* terms */
start local 7 // java.util.List terms
11: .line 88
aload 0 /* this */
getfield org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.grid:Lorg/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;
aload 3 /* shape */
iload 4 /* detailLevel */
invokevirtual org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree.getTreeCellIterator:(Lorg/locationtech/spatial4j/shape/Shape;I)Lorg/apache/lucene/spatial/prefix/tree/CellIterator;
astore 8 /* cells */
start local 8 // org.apache.lucene.spatial.prefix.tree.CellIterator cells
12: .line 89
goto 22
13: .line 90
StackMap locals: org.apache.lucene.util.BytesRefBuilder java.util.List org.apache.lucene.spatial.prefix.tree.CellIterator
StackMap stack:
aload 8 /* cells */
invokevirtual org.apache.lucene.spatial.prefix.tree.CellIterator.next:()Lorg/apache/lucene/spatial/prefix/tree/Cell;
astore 9 /* cell */
start local 9 // org.apache.lucene.spatial.prefix.tree.Cell cell
14: .line 91
aload 9 /* cell */
invokeinterface org.apache.lucene.spatial.prefix.tree.Cell.isLeaf:()Z
ifne 16
15: .line 92
goto 22
16: .line 93
StackMap locals: org.apache.lucene.spatial.prefix.tree.Cell
StackMap stack:
aload 9 /* cell */
aconst_null
invokeinterface org.apache.lucene.spatial.prefix.tree.Cell.getTokenBytesNoLeaf:(Lorg/apache/lucene/util/BytesRef;)Lorg/apache/lucene/util/BytesRef;
astore 10 /* term */
start local 10 // org.apache.lucene.util.BytesRef term
17: .line 96
aload 6 /* masterBytes */
aload 6 /* masterBytes */
invokevirtual org.apache.lucene.util.BytesRefBuilder.length:()I
aload 10 /* term */
getfield org.apache.lucene.util.BytesRef.length:I
iadd
invokevirtual org.apache.lucene.util.BytesRefBuilder.grow:(I)V
18: .line 97
aload 6 /* masterBytes */
aload 10 /* term */
invokevirtual org.apache.lucene.util.BytesRefBuilder.append:(Lorg/apache/lucene/util/BytesRef;)V
19: .line 98
aload 10 /* term */
aconst_null
putfield org.apache.lucene.util.BytesRef.bytes:[B
20: .line 99
aload 10 /* term */
aload 6 /* masterBytes */
invokevirtual org.apache.lucene.util.BytesRefBuilder.length:()I
aload 10 /* term */
getfield org.apache.lucene.util.BytesRef.length:I
isub
putfield org.apache.lucene.util.BytesRef.offset:I
21: .line 100
aload 7 /* terms */
aload 10 /* term */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 // org.apache.lucene.util.BytesRef term
end local 9 // org.apache.lucene.spatial.prefix.tree.Cell cell
22: .line 89
StackMap locals:
StackMap stack:
aload 8 /* cells */
invokevirtual org.apache.lucene.spatial.prefix.tree.CellIterator.hasNext:()Z
ifne 13
23: .line 103
aload 7 /* terms */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 26
StackMap locals: org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy org.apache.lucene.spatial.query.SpatialArgs org.apache.lucene.spatial.query.SpatialOperation org.locationtech.spatial4j.shape.Shape int int org.apache.lucene.util.BytesRefBuilder java.util.List org.apache.lucene.spatial.prefix.tree.CellIterator top java.util.Iterator
StackMap stack:
24: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.util.BytesRef
astore 9 /* byteRef */
start local 9 // org.apache.lucene.util.BytesRef byteRef
25: .line 104
aload 9 /* byteRef */
aload 6 /* masterBytes */
invokevirtual org.apache.lucene.util.BytesRefBuilder.bytes:()[B
putfield org.apache.lucene.util.BytesRef.bytes:[B
end local 9 // org.apache.lucene.util.BytesRef byteRef
26: .line 103
StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
27: .line 108
new org.apache.lucene.search.TermInSetQuery
dup
aload 0 /* this */
invokevirtual org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy.getFieldName:()Ljava/lang/String;
aload 7 /* terms */
invokespecial org.apache.lucene.search.TermInSetQuery.<init>:(Ljava/lang/String;Ljava/util/Collection;)V
areturn
end local 8 // org.apache.lucene.spatial.prefix.tree.CellIterator cells
end local 7 // java.util.List terms
end local 6 // org.apache.lucene.util.BytesRefBuilder masterBytes
end local 5 // int GUESS_NUM_TERMS
end local 4 // int detailLevel
end local 3 // org.locationtech.spatial4j.shape.Shape shape
end local 2 // org.apache.lucene.spatial.query.SpatialOperation op
end local 1 // org.apache.lucene.spatial.query.SpatialArgs args
end local 0 // org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy this
LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/apache/lucene/spatial/prefix/TermQueryPrefixTreeStrategy;
0 28 1 args Lorg/apache/lucene/spatial/query/SpatialArgs;
1 28 2 op Lorg/apache/lucene/spatial/query/SpatialOperation;
4 28 3 shape Lorg/locationtech/spatial4j/shape/Shape;
5 28 4 detailLevel I
7 8 5 GUESS_NUM_TERMS I
9 28 5 GUESS_NUM_TERMS I
10 28 6 masterBytes Lorg/apache/lucene/util/BytesRefBuilder;
11 28 7 terms Ljava/util/List<Lorg/apache/lucene/util/BytesRef;>;
12 28 8 cells Lorg/apache/lucene/spatial/prefix/tree/CellIterator;
14 22 9 cell Lorg/apache/lucene/spatial/prefix/tree/Cell;
17 22 10 term Lorg/apache/lucene/util/BytesRef;
25 26 9 byteRef Lorg/apache/lucene/util/BytesRef;
MethodParameters:
Name Flags
args
}
SourceFile: "TermQueryPrefixTreeStrategy.java"
NestMembers:
org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy$1
InnerClasses:
org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy$1