Class SimpleTextBKDReader
- java.lang.Object
-
- org.apache.lucene.index.PointValues
-
- org.apache.lucene.codecs.simpletext.SimpleTextBKDReader
-
final class SimpleTextBKDReader extends PointValues
Forked fromBKDReaderand simplified/specialized for SimpleText's usage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classSimpleTextBKDReader.SimpleTextPointTree-
Nested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.PointTree, PointValues.Relation
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbytesPerIndexEntry(package private) BKDConfigconfig(package private) intdocCount(package private) IndexInputin(package private) long[]leafBlockFPsprivate intleafNodeOffset(package private) byte[]maxPackedValue(package private) byte[]minPackedValue(package private) longpointCountprivate byte[]splitPackedValues(package private) intversion-
Fields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES
-
-
Constructor Summary
Constructors Constructor Description SimpleTextBKDReader(IndexInput in, int numDims, int numIndexDims, int maxPointsInLeafNode, int bytesPerDim, long[] leafBlockFPs, byte[] splitPackedValues, byte[] minPackedValue, byte[] maxPackedValue, long pointCount, int docCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBytesPerDimension()Returns the number of bytes per dimensionintgetDocCount()Returns the total number of documents that have indexed at least one point.byte[]getMaxPackedValue()Returns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0byte[]getMinPackedValue()Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0intgetNumDimensions()Returns how many dimensions are represented in the valuesintgetNumIndexDimensions()Returns how many dimensions are used for the indexPointValues.PointTreegetPointTree()Create a newPointValues.PointTreeto navigate the indexlongsize()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, size
-
-
-
-
Field Detail
-
splitPackedValues
private final byte[] splitPackedValues
-
leafBlockFPs
final long[] leafBlockFPs
-
leafNodeOffset
private final int leafNodeOffset
-
config
final BKDConfig config
-
bytesPerIndexEntry
final int bytesPerIndexEntry
-
in
final IndexInput in
-
minPackedValue
final byte[] minPackedValue
-
maxPackedValue
final byte[] maxPackedValue
-
pointCount
final long pointCount
-
docCount
final int docCount
-
version
final int version
-
-
Constructor Detail
-
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 Detail
-
getPointTree
public PointValues.PointTree getPointTree()
Description copied from class:PointValuesCreate a newPointValues.PointTreeto navigate the index- Specified by:
getPointTreein classPointValues
-
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
public int getNumDimensions() throws java.io.IOExceptionDescription copied from class:PointValuesReturns how many dimensions are represented in the values- Specified by:
getNumDimensionsin classPointValues- Throws:
java.io.IOException
-
getNumIndexDimensions
public int getNumIndexDimensions() throws java.io.IOExceptionDescription copied from class:PointValuesReturns how many dimensions are used for the index- Specified by:
getNumIndexDimensionsin classPointValues- Throws:
java.io.IOException
-
getBytesPerDimension
public int getBytesPerDimension() throws java.io.IOExceptionDescription copied from class:PointValuesReturns the number of bytes per dimension- Specified by:
getBytesPerDimensionin classPointValues- Throws:
java.io.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
-
-