Module org.apache.lucene.codecs
Class SimpleTextBKDReader
java.lang.Object
org.apache.lucene.index.PointValues
org.apache.lucene.codecs.simpletext.SimpleTextBKDReader
Forked from
BKDReader
and simplified/specialized for SimpleText's usage-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.PointTree, PointValues.Relation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final BKDConfig
(package private) final int
(package private) final IndexInput
(package private) final long[]
private final int
(package private) final byte[]
(package private) final byte[]
(package private) final long
private final byte[]
(package private) final int
Fields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleTextBKDReader
(IndexInput in, int numDims, int numIndexDims, int maxPointsInLeafNode, int bytesPerDim, long[] leafBlockFPs, byte[] splitPackedValues, byte[] minPackedValue, byte[] maxPackedValue, long pointCount, int docCount) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of bytes per dimensionint
Returns 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)
is0
byte[]
Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is0
int
Returns how many dimensions are represented in the valuesint
Returns how many dimensions are used for the indexCreate a newPointValues.PointTree
to navigate the indexlong
size()
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
-
splitPackedValues
private final byte[] splitPackedValues -
leafBlockFPs
final long[] leafBlockFPs -
leafNodeOffset
private final int leafNodeOffset -
config
-
bytesPerIndexEntry
final int bytesPerIndexEntry -
in
-
minPackedValue
final byte[] minPackedValue -
maxPackedValue
final byte[] maxPackedValue -
pointCount
final long pointCount -
docCount
final int docCount -
version
final int version
-
-
Constructor Details
-
SimpleTextBKDReader
public SimpleTextBKDReader(IndexInput in, int numDims, int numIndexDims, int maxPointsInLeafNode, int bytesPerDim, long[] leafBlockFPs, byte[] splitPackedValues, byte[] minPackedValue, byte[] maxPackedValue, long pointCount, int docCount)
-
-
Method Details
-
getPointTree
Description copied from class:PointValues
Create a newPointValues.PointTree
to navigate the index- Specified by:
getPointTree
in classPointValues
-
getMinPackedValue
public byte[] getMinPackedValue()Description copied from class:PointValues
Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is0
- Specified by:
getMinPackedValue
in classPointValues
-
getMaxPackedValue
public byte[] getMaxPackedValue()Description copied from class:PointValues
Returns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is0
- Specified by:
getMaxPackedValue
in classPointValues
-
getNumDimensions
Description copied from class:PointValues
Returns how many dimensions are represented in the values- Specified by:
getNumDimensions
in classPointValues
- Throws:
IOException
-
getNumIndexDimensions
Description copied from class:PointValues
Returns how many dimensions are used for the index- Specified by:
getNumIndexDimensions
in classPointValues
- Throws:
IOException
-
getBytesPerDimension
Description copied from class:PointValues
Returns the number of bytes per dimension- Specified by:
getBytesPerDimension
in classPointValues
- Throws:
IOException
-
size
public long size()Description copied from class:PointValues
Returns the total number of indexed points across all documents.- Specified by:
size
in classPointValues
-
getDocCount
public int getDocCount()Description copied from class:PointValues
Returns the total number of documents that have indexed at least one point.- Specified by:
getDocCount
in classPointValues
-