public final class BKDReader extends PointValues implements Accountable
BKDWriter.| Modifier and Type | Class and Description |
|---|---|
class |
BKDReader.IndexTree
Used to walk the in-heap index
|
static class |
BKDReader.IntersectState
Used to track all state for a single call to
intersect(org.apache.lucene.index.PointValues.IntersectVisitor). |
PointValues.IntersectVisitor, PointValues.Relation| Modifier and Type | Field and Description |
|---|---|
protected int |
packedBytesLength |
MAX_DIMENSIONS, MAX_NUM_BYTES| Constructor and Description |
|---|
BKDReader(IndexInput in)
Caller must pre-seek the provided
IndexInput to the index location that BKDWriter.finish(org.apache.lucene.store.IndexOutput) returned |
| Modifier and Type | Method and Description |
|---|---|
long |
estimatePointCount(PointValues.IntersectVisitor visitor)
Estimate the number of points that would be visited by
PointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. |
int |
getBytesPerDimension()
Returns the number of bytes per dimension
|
int |
getDocCount()
Returns the total number of documents that have indexed at least one point.
|
BKDReader.IntersectState |
getIntersectState(PointValues.IntersectVisitor visitor)
Create a new
BKDReader.IntersectState |
byte[] |
getMaxPackedValue()
Returns maximum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
byte[] |
getMinPackedValue()
Returns minimum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
int |
getNumDimensions()
Returns how many dimensions were indexed
|
void |
intersect(PointValues.IntersectVisitor visitor)
Finds all documents and points matching the provided visitor.
|
boolean |
isLeafNode(int nodeID) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
long |
size()
Returns the total number of indexed points across all documents.
|
void |
visitLeafBlockValues(BKDReader.IndexTree index,
BKDReader.IntersectState state)
Visits all docIDs and packed values in a single leaf block
|
getDocCount, getMaxPackedValue, getMinPackedValue, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcespublic BKDReader(IndexInput in) throws IOException
IndexInput to the index location that BKDWriter.finish(org.apache.lucene.store.IndexOutput) returnedIOExceptionpublic void intersect(PointValues.IntersectVisitor visitor) throws IOException
PointValuesintersect in class PointValuesIOExceptionpublic long estimatePointCount(PointValues.IntersectVisitor visitor)
PointValuesPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. This should run many times faster
than PointValues.intersect(IntersectVisitor).estimatePointCount in class PointValuesDocIdSetIterator.cost()public BKDReader.IntersectState getIntersectState(PointValues.IntersectVisitor visitor)
BKDReader.IntersectStatepublic void visitLeafBlockValues(BKDReader.IndexTree index, BKDReader.IntersectState state) throws IOException
IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic byte[] getMinPackedValue()
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMinPackedValue in class PointValuespublic byte[] getMaxPackedValue()
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMaxPackedValue in class PointValuespublic int getNumDimensions()
PointValuesgetNumDimensions in class PointValuespublic int getBytesPerDimension()
PointValuesgetBytesPerDimension in class PointValuespublic long size()
PointValuessize in class PointValuespublic int getDocCount()
PointValuesgetDocCount in class PointValuespublic boolean isLeafNode(int nodeID)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.