Package datomic
Class QueryRequest
java.lang.Object
datomic.QueryRequest
Container for parameters to
Peer.query(QueryRequest)
- Since:
- 0.9.5153
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasData()
static QueryRequest
Creates a QueryRequest object.timeout
(long timeoutMsec) The number of milliseconds after which a query may be stopped.toString()
-
Field Details
-
ARGS
-
QUERY
-
TIMEOUT
-
-
Method Details
-
create
Creates a QueryRequest object.query
andinputs
take the same form as described inPeer.query(Object, Object...)
- Parameters:
query
- a data structure describing the queryinputs
- inputs bound to the names in:in
section ofquery
- Returns:
- a QueryRequest object that can be passed to
Peer.query(QueryRequest)
-
timeout
The number of milliseconds after which a query may be stopped.
Note: timeout is approximate, it is meant to protect against long running queries, but is not guaranteed to stop after precisely the duration specified.
- Parameters:
timeoutMsec
- number of milliseconds after which a query may be stopped.- Returns:
- A reference to the updated QueryRequest so methods can be chained together.
-
toString
-
asData
- Returns:
- A Map representation of the QueryRequest
-