ObjectStore

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Factory
Link copied to clipboard
interface Registration
Link copied to clipboard
data class StoredObject(val key: Path, val size: Long)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
abstract suspend fun copyObject(src: Path, dest: Path)
Link copied to clipboard
abstract suspend fun deleteIfExists(k: Path)

Deletes the object with the given path from the object store.

Link copied to clipboard
abstract suspend fun getObject(k: Path): ByteBuffer

Returns the given object in a ByteBuffer.

open suspend fun getObject(k: Path, outPath: Path): Path

Writes the object to the given path.

Link copied to clipboard

Lists objects under the given directory whose keys are lexicographically after afterKey.

Link copied to clipboard

Recursively lists all objects in the object store.

Recursively lists all objects in the object store under the given directory.

Link copied to clipboard
abstract suspend fun putObject(k: Path, buf: ByteBuffer)

Stores an object in the object store.