xtdb.IBufferPool.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!
package xtdb
import org.apache.arrow.memory.ArrowBuf
import xtdb.arrow.Relation
import java.nio.ByteBuffer
import java.nio.file.Path
interface IBufferPool : AutoCloseable {
fun getBuffer(key: Path): ArrowBuf
fun putObject(k: Path, buffer: ByteBuffer)
/**
* Recursively lists all objects in the buffer pool.
*
* Objects are returned in lexicographic order of their path names.
*/
fun listAllObjects(): Iterable
/**
* Lists objects directly within the specified directory in the buffer pool.
*
* Objects are returned in lexicographic order of their path names.
*/
fun listObjects(dir: Path): Iterable
fun objectSize(k: Path): Long
fun openArrowWriter(k: Path, rel: Relation): ArrowWriter
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy