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

xtdb.util.RowCounter.kt Maven / Gradle / Ivy

The newest version!
package xtdb.util

class RowCounter(var chunkIdx: Long) {
    var chunkRowCount: Long = 0
        private set

    fun nextChunk() {
        chunkIdx += chunkRowCount
        chunkRowCount = 0
    }

    fun addRows(rowCount: Int) {
        chunkRowCount += rowCount.toLong()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy