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
IOException
PointReader getReader(long startPoint, long length) throws IOException
PointReader
iterator to step through all previously added pointsIOException
PointReader getSharedReader(long startPoint, long length, List<Closeable> toCloseHeroically) throws IOException
IOException
void destroy() throws IOException
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.