All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xtdb.api.IndexerConfig.kt Maven / Gradle / Ivy

The newest version!
@file:UseSerializers(DurationSerde::class)

package xtdb.api

import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import xtdb.DurationSerde
import java.time.Duration

@Serializable
data class IndexerConfig(
    var logLimit: Long = 64L,
    var pageLimit: Long = 1024L,
    var rowsPerChunk: Long = 102400L,
    var flushDuration: Duration = Duration.ofHours(4),
) {
    fun logLimit(logLimit: Long) = apply { this.logLimit = logLimit }
    fun pageLimit(pageLimit: Long) = apply { this.pageLimit = pageLimit }
    fun rowsPerChunk(rowsPerChunk: Long) = apply { this.rowsPerChunk = rowsPerChunk }
    fun flushDuration(flushDuration: Duration) = apply { this.flushDuration = flushDuration }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy