PointWriter

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.

Inheritors

Functions

Link copied to clipboard
abstract fun append(pointValue: PointValue)

Add a new point from a PointValue

abstract fun append(packedValue: ByteArray, docID: Int)

Add a new point from the packed value and docId

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun count(): Long

Return the number of points in this writer

Link copied to clipboard
abstract fun destroy()

Removes any temp files behind this writer

Link copied to clipboard
abstract fun getReader(startPoint: Long, length: Long): PointReader

Returns a PointReader iterator to step through all previously added points