public class org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree extends org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree
super_class: org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree
{
public void <init>(org.locationtech.spatial4j.context.SpatialContext, int);
descriptor: (Lorg/locationtech/spatial4j/context/SpatialContext;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree.<init>:(Lorg/locationtech/spatial4j/context/SpatialContext;I)V
1: aload 1
invokevirtual org.locationtech.spatial4j.context.SpatialContext.getWorldBounds:()Lorg/locationtech/spatial4j/shape/Rectangle;
astore 3
start local 3 2: aload 3
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMinX:()D
ldc -180.0
dcmpl
ifeq 4
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Geohash only supports lat-lon world bounds. Got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree org.locationtech.spatial4j.context.SpatialContext int org.locationtech.spatial4j.shape.Rectangle
StackMap stack:
invokestatic org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree.getMaxLevelsPossible:()I
istore 4
start local 4 5: iload 2
ifle 6
iload 2
iload 4
if_icmple 7
6: StackMap locals: int
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "maxLevels must be [1-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] but got "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 4 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/prefix/tree/GeohashPrefixTree;
0 8 1 ctx Lorg/locationtech/spatial4j/context/SpatialContext;
0 8 2 maxLevels I
2 8 3 bounds Lorg/locationtech/spatial4j/shape/Rectangle;
5 8 4 MAXP I
MethodParameters:
Name Flags
ctx
maxLevels
public static int getMaxLevelsPossible();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 24
ireturn
LocalVariableTable:
Start End Slot Name Signature
public org.apache.lucene.spatial.prefix.tree.Cell getWorldCell();
descriptor: ()Lorg/apache/lucene/spatial/prefix/tree/Cell;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell
dup
aload 0
getstatic org.apache.lucene.util.BytesRef.EMPTY_BYTES:[B
iconst_0
iconst_0
invokespecial org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell.<init>:(Lorg/apache/lucene/spatial/prefix/tree/GeohashPrefixTree;[BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/prefix/tree/GeohashPrefixTree;
public int getLevelForDistance(double);
descriptor: (D)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: dload 1
dconst_0
dcmpl
ifne 2
1: aload 0
getfield org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree.maxLevels:I
ireturn
2: StackMap locals:
StackMap stack:
dload 1
dload 1
invokestatic org.locationtech.spatial4j.io.GeohashUtils.lookupHashLenForWidthHeight:(DD)I
istore 3
start local 3 3: iload 3
aload 0
getfield org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree.maxLevels:I
invokestatic java.lang.Math.min:(II)I
iconst_1
invokestatic java.lang.Math.max:(II)I
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/spatial/prefix/tree/GeohashPrefixTree;
0 4 1 dist D
3 4 3 level I
MethodParameters:
Name Flags
dist
protected org.apache.lucene.spatial.prefix.tree.Cell getCell(org.locationtech.spatial4j.shape.Point, int);
descriptor: (Lorg/locationtech/spatial4j/shape/Point;I)Lorg/apache/lucene/spatial/prefix/tree/Cell;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell
dup
aload 0
aload 1
invokeinterface org.locationtech.spatial4j.shape.Point.getY:()D
aload 1
invokeinterface org.locationtech.spatial4j.shape.Point.getX:()D
iload 2
invokestatic org.locationtech.spatial4j.io.GeohashUtils.encodeLatLon:(DDI)Ljava/lang/String;
invokespecial org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell.<init>:(Lorg/apache/lucene/spatial/prefix/tree/GeohashPrefixTree;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/prefix/tree/GeohashPrefixTree;
0 1 1 p Lorg/locationtech/spatial4j/shape/Point;
0 1 2 level I
MethodParameters:
Name Flags
p
level
private static byte[] stringToBytesPlus1(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_1
iadd
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 1
iload 2
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 token Ljava/lang/String;
1 7 1 bytes [B
2 6 2 i I
MethodParameters:
Name Flags
token
public double getDistanceForLevel(int);
descriptor: (I)D
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokespecial org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree.getDistanceForLevel:(I)D
dreturn
LocalVariableTable:
Start End Slot Name Signature
public org.apache.lucene.spatial.prefix.tree.Cell readCell(org.apache.lucene.util.BytesRef, org.apache.lucene.spatial.prefix.tree.Cell);
descriptor: (Lorg/apache/lucene/util/BytesRef;Lorg/apache/lucene/spatial/prefix/tree/Cell;)Lorg/apache/lucene/spatial/prefix/tree/Cell;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokespecial org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree.readCell:(Lorg/apache/lucene/util/BytesRef;Lorg/apache/lucene/spatial/prefix/tree/Cell;)Lorg/apache/lucene/spatial/prefix/tree/Cell;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.apache.lucene.spatial.prefix.tree.CellIterator getTreeCellIterator(org.locationtech.spatial4j.shape.Shape, int);
descriptor: (Lorg/locationtech/spatial4j/shape/Shape;I)Lorg/apache/lucene/spatial/prefix/tree/CellIterator;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
iload 2
invokespecial org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree.getTreeCellIterator:(Lorg/locationtech/spatial4j/shape/Shape;I)Lorg/apache/lucene/spatial/prefix/tree/CellIterator;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "GeohashPrefixTree.java"
NestMembers:
org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$Factory org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell
InnerClasses:
public Factory = org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$Factory of org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree
private GhCell = org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree$GhCell of org.apache.lucene.spatial.prefix.tree.GeohashPrefixTree