public interface PointWriter
extends java.io.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 java.io.IOException
java.io.IOExceptionvoid append(PointValue pointValue) throws java.io.IOException
PointValuejava.io.IOExceptionPointReader getReader(long startPoint, long length) throws java.io.IOException
PointReader iterator to step through all previously added pointsjava.io.IOExceptionlong count()
void destroy()
throws java.io.IOException
java.io.IOException