- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
HeapPointWriter,OfflinePointWriter
Appends many points, and then at the end provides a
PointReader to iterate those points.
This abstracts away whether we write to disk, or use simple arrays in heap.-
Method Summary
Modifier and TypeMethodDescriptionvoidappend(byte[] packedValue, int docID) Add a new point from the packed value and docIdvoidappend(PointValue pointValue) Add a new point from aPointValuelongcount()Return the number of points in this writervoiddestroy()Removes any temp files behind this writergetReader(long startPoint, long length) Returns aPointReaderiterator to step through all previously added points
-
Method Details
-
append
Add a new point from the packed value and docId- Throws:
IOException
-
append
Add a new point from aPointValue- Throws:
IOException
-
getReader
Returns aPointReaderiterator to step through all previously added points- Throws:
IOException
-
count
long count()Return the number of points in this writer -
destroy
Removes any temp files behind this writer- Throws:
IOException
-