Interface PointWriter

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
HeapPointWriter, OfflinePointWriter

public interface PointWriter extends Closeable
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.
NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Method Summary

    Modifier and Type
    Method
    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
    Return the number of points in this writer
    void
    Removes any temp files behind this writer
    getReader(long startPoint, long length)
    Returns a PointReader iterator to step through all previously added points

    Methods inherited from interface java.io.Closeable

    close