Package org.apache.lucene.index
Class CheckIndex.VerifyPointsVisitor
- java.lang.Object
-
- org.apache.lucene.index.CheckIndex.VerifyPointsVisitor
-
- All Implemented Interfaces:
PointValues.IntersectVisitor
- Enclosing class:
- CheckIndex
public static class CheckIndex.VerifyPointsVisitor extends java.lang.Object implements PointValues.IntersectVisitor
Walks the entire N-dimensional points space, verifying that all points fall within the last cell's boundaries.
-
-
Field Summary
Fields Modifier and Type Field Description private intbytesPerDimprivate FixedBitSetdocsSeenprivate java.lang.StringfieldNameprivate byte[]globalMaxPackedValueprivate byte[]globalMinPackedValueprivate intlastDocIDprivate byte[]lastMaxPackedValueprivate byte[]lastMinPackedValueprivate byte[]lastPackedValueprivate intmaxDocprivate intnumDataDimsprivate intnumIndexDimsprivate intpackedBytesCountprivate intpackedIndexBytesCountprivate longpointCountSeen
-
Constructor Summary
Constructors Constructor Description VerifyPointsVisitor(java.lang.String fieldName, int maxDoc, PointValues values)Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckPackedValue(java.lang.String desc, byte[] packedValue, int docID)PointValues.Relationcompare(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.longgetDocCountSeen()Returns total number of unique docIDs in this BKD treelonggetPointCountSeen()Returns total number of points in this BKD treevoidvisit(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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.index.PointValues.IntersectVisitor
grow, visit
-
-
-
-
Field Detail
-
pointCountSeen
private long pointCountSeen
-
lastDocID
private int lastDocID
-
maxDoc
private final int maxDoc
-
docsSeen
private final FixedBitSet docsSeen
-
lastMinPackedValue
private final byte[] lastMinPackedValue
-
lastMaxPackedValue
private final byte[] lastMaxPackedValue
-
lastPackedValue
private final byte[] lastPackedValue
-
globalMinPackedValue
private final byte[] globalMinPackedValue
-
globalMaxPackedValue
private final byte[] globalMaxPackedValue
-
packedBytesCount
private final int packedBytesCount
-
packedIndexBytesCount
private final int packedIndexBytesCount
-
numDataDims
private final int numDataDims
-
numIndexDims
private final int numIndexDims
-
bytesPerDim
private final int bytesPerDim
-
fieldName
private final java.lang.String fieldName
-
-
Constructor Detail
-
VerifyPointsVisitor
public VerifyPointsVisitor(java.lang.String fieldName, int maxDoc, PointValues values) throws java.io.IOExceptionSole constructor- Throws:
java.io.IOException
-
-
Method Detail
-
getPointCountSeen
public long getPointCountSeen()
Returns total number of points in this BKD tree
-
getDocCountSeen
public long getDocCountSeen()
Returns total number of unique docIDs in this BKD tree
-
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
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
public PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue)
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
-
checkPackedValue
private void checkPackedValue(java.lang.String desc, byte[] packedValue, int docID)
-
-