Package xtdb.api
Class XtdbDocument
java.lang.Object
xtdb.api.XtdbDocument
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic XtdbDocument
build
(Object id, Consumer<XtdbDocument.Builder> f) static XtdbDocument.Builder
static XtdbDocument
Creates a newXtdbDocument
with just an ID key.static XtdbDocument
static XtdbDocument
createFunction
(Object id, String rawFunction) Static factory to create an XTDB transaction function document.boolean
static XtdbDocument
factory
(clojure.lang.IPersistentMap input) Creates an XtdbDocument from a Clojure map.getId()
int
hashCode()
clojure.lang.IPersistentMap
toMap()
Not intended for public use, may be removed.
-
Method Details
-
build
-
builder
-
factory
Creates an XtdbDocument from a Clojure map. Not intended for public use, may be removed.- Parameters:
input
-
-
create
Creates a newXtdbDocument
with just an ID key. SeeXtdbDocument
for valid ID types- Parameters:
id
-- Returns:
- a new
XtdbDocument
-
createFunction
Static factory to create an XTDB transaction function document.- Parameters:
id
- the id of the transaction functionrawFunction
- the function body, as a Clojure-code string.- Returns:
- the function document, suitable for use in
Transaction.Builder.put(XtdbDocument)
-
create
-
plus
- Returns:
- a new XtdbDocument with the key/value added
-
plusAll
- Returns:
- a new XtdbDocument with the entries added
-
minus
- Returns:
- a new XtdbDocument with the key removed
-
minusAll
- Returns:
- a new XtdbDocument with the keys removed
-
get
-
getId
-
toMap
public clojure.lang.IPersistentMap toMap()Not intended for public use, may be removed.- Returns:
- this document as a Clojure map.
-
equals
-
hashCode
public int hashCode()
-