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,
int docID)
Add a new point from the packed value and docId
|
void |
append(PointValue pointValue)
Add a new point from a
PointValue |
long |
count()
Return the number of points in this writer
|
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 |
void append(byte[] packedValue,
int docID)
throws IOException
IOExceptionvoid append(PointValue pointValue) throws IOException
PointValueIOExceptionPointReader getReader(long startPoint, long length) throws IOException
PointReader iterator to step through all previously added pointsIOExceptionlong count()
void destroy()
throws IOException
IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.