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
IOException
void append(PointValue pointValue) throws IOException
PointValue
IOException
PointReader getReader(long startPoint, long length) throws IOException
PointReader
iterator to step through all previously added pointsIOException
long count()
void destroy() throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.