Module org.apache.lucene.spatial3d
Package org.apache.lucene.spatial3d
Class PointInShapeIntersectVisitor
java.lang.Object
org.apache.lucene.spatial3d.PointInShapeIntersectVisitor
- All Implemented Interfaces:
PointValues.IntersectVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocIdSetBuilder.BulkAdderprivate final DocIdSetBuilderprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final GeoShape -
Constructor Summary
ConstructorsConstructorDescriptionPointInShapeIntersectVisitor(DocIdSetBuilder hits, GeoShape shape, XYZBounds bounds) -
Method Summary
Modifier and TypeMethodDescriptioncompare(byte[] minPackedValue, byte[] maxPackedValue) Called for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.voidgrow(int count) Notifies the caller that this many documents are about to be visitedvoidvisit(int docID) Called for all documents in a leaf cell that's fully contained by the query.voidvisit(int docID, byte[] packedValue) Called for all documents in a leaf cell that crosses the query.voidvisit(DocIdSetIterator iterator) Similar toPointValues.IntersectVisitor.visit(int), but a bulk visit and implementations may have their optimizations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.index.PointValues.IntersectVisitor
visit, visit
-
Field Details
-
hits
-
shape
-
minimumX
private final double minimumX -
maximumX
private final double maximumX -
minimumY
private final double minimumY -
maximumY
private final double maximumY -
minimumZ
private final double minimumZ -
maximumZ
private final double maximumZ -
adder
-
-
Constructor Details
-
PointInShapeIntersectVisitor
-
-
Method Details
-
grow
public void grow(int count) Description copied from interface:PointValues.IntersectVisitorNotifies the caller that this many documents are about to be visited- Specified by:
growin interfacePointValues.IntersectVisitor
-
visit
public void visit(int docID) Description copied from interface:PointValues.IntersectVisitorCalled for all documents in a leaf cell that's fully contained by the query. The consumer should blindly accept the docID.- Specified by:
visitin interfacePointValues.IntersectVisitor
-
visit
Description copied from interface:PointValues.IntersectVisitorSimilar toPointValues.IntersectVisitor.visit(int), but a bulk visit and implementations may have their optimizations.- Specified by:
visitin interfacePointValues.IntersectVisitor- Throws:
IOException
-
visit
public void visit(int docID, byte[] packedValue) Description copied from interface:PointValues.IntersectVisitorCalled for all documents in a leaf cell that crosses the query. The consumer should scrutinize the packedValue to decide whether to accept it. In the 1D case, values are visited in increasing order, and in the case of ties, in increasing docID order.- Specified by:
visitin interfacePointValues.IntersectVisitor
-
compare
Description copied from interface:PointValues.IntersectVisitorCalled for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.- Specified by:
comparein interfacePointValues.IntersectVisitor
-