Package datomic
Class QueryRequest
- java.lang.Object
-
- datomic.QueryRequest
-
public class QueryRequest extends java.lang.Object
Container for parameters toPeer.query(QueryRequest)
- Since:
- 0.9.5153
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map
asData()
static QueryRequest
create(java.lang.Object query, java.lang.Object... inputs)
Creates a QueryRequest object.QueryRequest
timeout(long timeoutMsec)
The number of milliseconds after which a query may be stopped.java.lang.String
toString()
-
-
-
Method Detail
-
create
public static QueryRequest create(java.lang.Object query, java.lang.Object... inputs)
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
public QueryRequest timeout(long timeoutMsec)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the QueryRequest
-
asData
public java.util.Map asData()
- Returns:
- A Map representation of the QueryRequest
-
-