Builder

open class Builder(pageSize: Int, acceptableOverheadRatio: Float) : PackedLongValues.Builder

Constructors

Link copied to clipboard
constructor(pageSize: Int, acceptableOverheadRatio: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var size: Long
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Add a new element to this builder.

Link copied to clipboard
open override fun baseRamBytesUsed(): Long
Link copied to clipboard
open override fun build(): DeltaPackedLongValues

Build a PackedLongValues instance that contains values that have been added to this builder. This operation is destructive.

Link copied to clipboard
fun finish()
Link copied to clipboard
open override fun grow(newBlockCount: Int)
Link copied to clipboard
open override fun pack(values: LongArray, numValues: Int, block: Int, acceptableOverheadRatio: Float)
Link copied to clipboard
open override fun ramBytesUsed(): Long

Return the memory usage of this object in bytes. Negative values are illegal.

Link copied to clipboard
fun size(): Long

Return the number of elements that have been added to this builder.