java.lang.Object
org.apache.lucene.index.PointValues
org.apache.lucene.util.bkd.BKDReader
Handles reading a block KD-tree in byte[] space previously written with
BKDWriter.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classReusableDocIdSetIteratorto handle low cardinality leaves.Nested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.PointTree, PointValues.Relation -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BKDConfig(package private) final int(package private) final IndexInputprivate final boolean(package private) final byte[](package private) final long(package private) final byte[](package private) final int(package private) final IndexInput(package private) final long(package private) final intFields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionBKDReader(IndexInput metaIn, IndexInput indexIn, IndexInput dataIn) Caller must pre-seek the providedIndexInputto the index location thatBKDWriter.finish(org.apache.lucene.store.IndexOutput, org.apache.lucene.store.IndexOutput, org.apache.lucene.store.IndexOutput)returned. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of bytes per dimensionintReturns the total number of documents that have indexed at least one point.byte[]Returns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0byte[]Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0intReturns how many dimensions are represented in the valuesintReturns how many dimensions are used for the indexCreate a newPointValues.PointTreeto navigate the indexprivate booleanlongsize()Returns the total number of indexed points across all documents.Methods inherited from class org.apache.lucene.index.PointValues
estimateDocCount, estimatePointCount, getDocCount, getMaxPackedValue, getMinPackedValue, intersect, isEstimatedPointCountGreaterThanOrEqualTo, size
-
Field Details
-
config
-
numLeaves
final int numLeaves -
in
-
minPackedValue
final byte[] minPackedValue -
maxPackedValue
final byte[] maxPackedValue -
pointCount
final long pointCount -
docCount
final int docCount -
version
final int version -
minLeafBlockFP
final long minLeafBlockFP -
packedIndex
-
isTreeBalanced
private final boolean isTreeBalanced
-
-
Constructor Details
-
BKDReader
Caller must pre-seek the providedIndexInputto the index location thatBKDWriter.finish(org.apache.lucene.store.IndexOutput, org.apache.lucene.store.IndexOutput, org.apache.lucene.store.IndexOutput)returned. BKD tree is always stored off-heap.- Throws:
IOException
-
-
Method Details
-
isTreeBalanced
- Throws:
IOException
-
getPointTree
Description copied from class:PointValuesCreate a newPointValues.PointTreeto navigate the index- Specified by:
getPointTreein classPointValues- Throws:
IOException
-
getMinPackedValue
public byte[] getMinPackedValue()Description copied from class:PointValuesReturns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMinPackedValuein classPointValues
-
getMaxPackedValue
public byte[] getMaxPackedValue()Description copied from class:PointValuesReturns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMaxPackedValuein classPointValues
-
getNumDimensions
Description copied from class:PointValuesReturns how many dimensions are represented in the values- Specified by:
getNumDimensionsin classPointValues- Throws:
IOException
-
getNumIndexDimensions
Description copied from class:PointValuesReturns how many dimensions are used for the index- Specified by:
getNumIndexDimensionsin classPointValues- Throws:
IOException
-
getBytesPerDimension
Description copied from class:PointValuesReturns the number of bytes per dimension- Specified by:
getBytesPerDimensionin classPointValues- Throws:
IOException
-
size
public long size()Description copied from class:PointValuesReturns the total number of indexed points across all documents.- Specified by:
sizein classPointValues
-
getDocCount
public int getDocCount()Description copied from class:PointValuesReturns the total number of documents that have indexed at least one point.- Specified by:
getDocCountin classPointValues
-