public interface PointWriter extends Closeable
PointReader to iterate
those points. This abstracts away whether we write to disk, or use simple arrays
in heap.| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] packedValue,
long ord,
int docID)
Add a new point
|
void |
destroy()
Removes any temp files behind this writer
|
PointReader |
getReader(long startPoint,
long length)
Returns a
PointReader iterator to step through all previously added points |
PointReader |
getSharedReader(long startPoint,
long length,
List<Closeable> toCloseHeroically)
Returns the single shared reader, used at multiple times during the recursion, to read previously added points
|
void append(byte[] packedValue,
long ord,
int docID)
throws IOException
IOExceptionPointReader getReader(long startPoint, long length) throws IOException
PointReader iterator to step through all previously added pointsIOExceptionPointReader getSharedReader(long startPoint, long length, List<Closeable> toCloseHeroically) throws IOException
IOExceptionvoid destroy()
throws IOException
IOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.