public final class BKDReader extends Object 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). |
| Modifier and Type | Field and Description |
|---|---|
protected int |
packedBytesLength |
| 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 |
|---|---|
int |
getBytesPerDimension() |
int |
getDocCount() |
BKDReader.IntersectState |
getIntersectState(PointValues.IntersectVisitor visitor)
Create a new
BKDReader.IntersectState |
byte[] |
getMaxPackedValue() |
byte[] |
getMinPackedValue() |
int |
getNumDimensions() |
long |
getPointCount() |
void |
intersect(PointValues.IntersectVisitor visitor) |
boolean |
isLeafNode(int nodeID) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
visitLeafBlockValues(BKDReader.IndexTree index,
BKDReader.IntersectState state)
Visits all docIDs and packed values in a single leaf block
|
clone, 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
IOExceptionpublic 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()
public byte[] getMaxPackedValue()
public int getNumDimensions()
public int getBytesPerDimension()
public long getPointCount()
public int getDocCount()
public boolean isLeafNode(int nodeID)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.