public class BKDReader extends Object implements Accountable
BKDWriter
.Modifier and Type | Field and Description |
---|---|
protected int |
packedBytesLength |
Modifier | 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 |
protected |
BKDReader(IndexInput in,
int numDims,
int maxPointsInLeafNode,
int bytesPerDim,
long[] leafBlockFPs,
byte[] splitPackedValues,
byte[] minPackedValue,
byte[] maxPackedValue,
long pointCount,
int docCount)
Called by consumers that have their own on-disk format for the index (e.g.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytesPerDimension() |
int |
getDocCount() |
byte[] |
getMaxPackedValue() |
byte[] |
getMinPackedValue() |
int |
getNumDimensions() |
long |
getPointCount() |
void |
intersect(PointValues.IntersectVisitor visitor) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
protected int |
readDocIDs(IndexInput in,
long blockFP,
int[] docIDs) |
void |
verify(int maxDoc)
Only used for debugging, to make sure all values in each leaf block fall within the range expected by the index
|
protected void |
visitDocIDs(IndexInput in,
long blockFP,
PointValues.IntersectVisitor visitor) |
protected void |
visitDocValues(int[] commonPrefixLengths,
byte[] scratchPackedValue,
IndexInput in,
int[] docIDs,
int count,
PointValues.IntersectVisitor visitor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
public BKDReader(IndexInput in) throws IOException
IndexInput
to the index location that BKDWriter.finish(org.apache.lucene.store.IndexOutput)
returnedIOException
protected BKDReader(IndexInput in, int numDims, int maxPointsInLeafNode, int bytesPerDim, long[] leafBlockFPs, byte[] splitPackedValues, byte[] minPackedValue, byte[] maxPackedValue, long pointCount, int docCount) throws IOException
IOException
public void verify(int maxDoc) throws IOException
IOException
public void intersect(PointValues.IntersectVisitor visitor) throws IOException
IOException
protected void visitDocIDs(IndexInput in, long blockFP, PointValues.IntersectVisitor visitor) throws IOException
IOException
protected int readDocIDs(IndexInput in, long blockFP, int[] docIDs) throws IOException
IOException
protected void visitDocValues(int[] commonPrefixLengths, byte[] scratchPackedValue, IndexInput in, int[] docIDs, int count, PointValues.IntersectVisitor visitor) throws IOException
IOException
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public byte[] getMinPackedValue()
public byte[] getMaxPackedValue()
public int getNumDimensions()
public int getBytesPerDimension()
public long getPointCount()
public int getDocCount()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.