OfflinePointWriter

open class OfflinePointWriter(val config: BKDConfig, val tempDir: Directory, tempFileNamePrefix: String, desc: String, val expectedCount: Long) : PointWriter

Writes points to disk in a fixed-with format.

Constructors

Link copied to clipboard
constructor(config: BKDConfig, tempDir: Directory, tempFileNamePrefix: String, desc: String, expectedCount: Long)

Properties

Link copied to clipboard
Link copied to clipboard
var count: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun append(pointValue: PointValue)

Add a new point from a PointValue

open override fun append(packedValue: ByteArray, docID: Int)

Add a new point from the packed value and docId

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun count(): Long

Return the number of points in this writer

Link copied to clipboard
open override fun destroy()

Removes any temp files behind this writer

Link copied to clipboard
open override fun getReader(start: Long, length: Long): PointReader

Returns a PointReader iterator to step through all previously added points

fun getReader(start: Long, length: Long, reusableBuffer: ByteArray): OfflinePointReader
Link copied to clipboard
open override fun toString(): String