DefaultRowByteSizeEstimator

class DefaultRowByteSizeEstimator(val estimatedRecordOverheadBytes: Long, val estimatedFieldOverheadBytes: Long) : JdbcSharedState.RowByteSizeEstimator

Estimates the in-memory byte size of a table row based on its ObjectNode representation.

Constructors

Link copied to clipboard
constructor(estimatedRecordOverheadBytes: Long, estimatedFieldOverheadBytes: Long)

Functions

Link copied to clipboard
open override fun apply(record: ObjectNode): Long

Estimates the memory footprint of a row based on its corresponding record.