xtdb.object_store.clj 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!
(ns xtdb.object-store
(:import [java.nio.file Path]
xtdb.api.storage.ObjectStore$StoredObject))
(set! *unchecked-math* :warn-on-boxed)
(defn obj-missing-exception [k]
(IllegalStateException. (format "Object '%s' doesn't exist." k)))
(defrecord StoredObject [^Path k, ^long size]
ObjectStore$StoredObject
(getKey [_] k)
(getSize [_] size))
© 2015 - 2024 Weber Informatics LLC | Privacy Policy