
com.groupbyinc.flux.common.apache.lucene.spatial.prefix.RecursivePrefixTreeStrategy.class Maven / Gradle / Ivy
???? 42 Scom/groupbyinc/flux/common/apache/lucene/spatial/prefix/RecursivePrefixTreeStrategy Jcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/PrefixTreeStrategy RecursivePrefixTreeStrategy.java prefixGridScanLevel I pruneLeafyBranches Z multiOverlappingIndexedShapes $assertionsDisabled e(Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;Ljava/lang/String;)V
Ncom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree getMaxLevels ()I
this ULcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/RecursivePrefixTreeStrategy; grid PLcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree; fieldName Ljava/lang/String; getPrefixGridScanLevel setPrefixGridScanLevel (I)V isMultiOverlappingIndexedShapes ()Z setMultiOverlappingIndexedShapes (Z)V isPruneLeafyBranches setPruneLeafyBranches toString ()Ljava/lang/String; java/lang/StringBuilder - java/lang/Object / getClass ()Ljava/lang/Class; 1 2
0 3 java/lang/Class 5
getSimpleName 7 ,
6 8 (Ljava/lang/String;)V :
. ; append (C)Ljava/lang/StringBuilder; = >
. ? SPG:( A -(Ljava/lang/String;)Ljava/lang/StringBuilder; = C
. D F + ,
H
pointsOnly J K ,pointsOnly M ,pruneLeafyBranches O ,prefixGridScanLevel: Q ()V S
. T V (I)Ljava/lang/StringBuilder; = X
. Y
. H ,!multiOverlappingIndexedShapes \ str Ljava/lang/StringBuilder; createCellIteratorToIndex S(Lorg/locationtech/spatial4j/shape/Shape;ILjava/util/Iterator;)Ljava/util/Iterator; isGridAlignedShape +(Lorg/locationtech/spatial4j/shape/Shape;)Z b c
d ` a
f java/util/ArrayList h $
i j getWorldCell E()Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/Cell; l m
n recursiveTraverseAndPrune (Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/Cell;Lorg/locationtech/spatial4j/shape/Shape;ILjava/util/List;)Z p q
r java/util/List t iterator ()Ljava/util/Iterator; v w u x shape (Lorg/locationtech/spatial4j/shape/Shape; detailLevel reuse YLjava/util/Iterator; Ljava/util/Iterator; cells ULjava/util/List; Ljava/util/List; Acom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/Cell ? getLevel ? ? ? setLeaf ? S ? ? isLeaf ? & ? ? add (Ljava/lang/Object;)Z ? ? u ? getNextLevelCells u(Lorg/locationtech/spatial4j/shape/Shape;)Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/CellIterator; ? ? ? ? Icom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/CellIterator ? hasNext ? &
? ? next ? m
? ? Icom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/CellCanPrune ? getSubCellsSize ? ? ? size ? u ? remove (I)Ljava/lang/Object; ? ? u ? subCell CLcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/Cell; cell result leaves subCells KLcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/CellIterator; makeQuery }(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; Bcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs ? getOperation K()Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation; ? ?
? ? getShape *()Lorg/locationtech/spatial4j/shape/Shape; ? ?
? ? ctx 3Lorg/locationtech/spatial4j/context/SpatialContext; ? ? ?
distErrPct D ? ? ? resolveDistErr 7(Lorg/locationtech/spatial4j/context/SpatialContext;D)D ? ?
? ? getLevelForDistance (D)I ? ?
? Gcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation ?
Intersects ILcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation; ? ? ? ? makeGridShapeIntersectsQuery a(Lorg/locationtech/spatial4j/shape/Shape;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? &org/locationtech/spatial4j/shape/Shape ? Qcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/IntersectsPrefixTreeQuery ? getFieldName ? ,
? ?(Lorg/locationtech/spatial4j/shape/Shape;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;II)V ?
? ? IsWithin ? ? ? ? Mcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/WithinPrefixTreeQuery ??? ?(Lorg/locationtech/spatial4j/shape/Shape;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;IID)V ?
? ? Contains ? ? ? ? Ocom/groupbyinc/flux/common/apache/lucene/spatial/prefix/ContainsPrefixTreeQuery ? ?(Lorg/locationtech/spatial4j/shape/Shape;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;IZ)V ?
? ? Rcom/groupbyinc/flux/common/apache/lucene/spatial/query/UnsupportedSpatialOperation ? L(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation;)V ?
? ? args DLcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs; op isPointShape ? c
? ? java/lang/AssertionError
T isPointsOnly &
getTreeCellIterator v(Lorg/locationtech/spatial4j/shape/Shape;I)Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/CellIterator;
java/util/Iterator
()Ljava/lang/Object; ?
? 9com/groupbyinc/flux/common/apache/lucene/search/TermQuery 3com/groupbyinc/flux/common/apache/lucene/index/Term getTokenBytesWithLeaf r(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V
8(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)V
getGrid R()Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/SpatialPrefixTree;
prevLevel cellIterator gridShape desiredAssertionStatus&