Companion

object Companion

Types

Link copied to clipboard
data class Profile(val readBytesCalls: Long, val readBytesRequestedBytes: Long, val readBytesTotalMs: Long, val readBytesFastPathCalls: Long, val readBytesRefillPathCalls: Long, val readBytesRefillPathMs: Long, val readBytesDirectPathCalls: Long, val readBytesDirectPathMs: Long, val readBytesDirectPathReadInternalCalls: Long, val readBytesDirectPathReadInternalBytes: Long, val readBytesDirectPathReadInternalMs: Long, val refillCalls: Long, val refillTotalMs: Long, val refillReadInternalCalls: Long, val refillReadInternalBytes: Long, val refillReadInternalMs: Long)

Properties

Link copied to clipboard
const val BUFFER_SIZE: Int = 1024

Default buffer size set to {@value #BUFFER_SIZE}.

Link copied to clipboard
const val MERGE_BUFFER_SIZE: Int = 4096

A buffer size for merges set to {@value #MERGE_BUFFER_SIZE}.

Link copied to clipboard
const val MIN_BUFFER_SIZE: Int = 8

Minimum buffer size allowed

Functions

Link copied to clipboard
fun bufferSize(context: IOContext): Int

Returns default buffer sizes for the given IOContext

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun wrap(sliceDescription: String, other: IndexInput, offset: Long, length: Long): BufferedIndexInput

Wraps a portion of another IndexInput with buffering.