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

xtdb.arrow.VectorPosition.kt Maven / Gradle / Ivy

The newest version!
package xtdb.arrow

interface VectorPosition {
    var position: Int

    fun getPositionAndIncrement() = position++

    companion object {
        @JvmOverloads
        @JvmStatic
        fun build(initialPosition: Int = 0): VectorPosition {
            return object : VectorPosition {
                override var position: Int = initialPosition
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy