xtdb.api.IndexerConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtdb-core Show documentation
Show all versions of xtdb-core Show documentation
An open source document database with bitemporal graph queries
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