Package | Description |
---|---|
org.ojai | |
org.ojai.store | |
org.ojai.store.base |
Modifier and Type | Method and Description |
---|---|
Query |
OjaiCodec.decodeQuery(T encodedQuery,
Document options)
Decodes an instance of <T> into an OJAI
Query |
Modifier and Type | Method and Description |
---|---|
T |
OjaiCodec.encodeQuery(Query query)
Encodes an OJAI
Query into an instance of <T> |
Modifier and Type | Method and Description |
---|---|
Query |
Query.build()
Builds this Query object and make it immutable.
|
Query |
Query.limit(long limit)
Restricts the maximum number of documents returned from this query
to the specified value.
|
Query |
Driver.newQuery()
Creates and returns a new Query object.
|
Query |
Connection.newQuery()
Creates and returns a new Query object.
|
Query |
Driver.newQuery(String queryJson)
Creates and returns a new Query object decoded from the supplied JSON String.
|
Query |
Connection.newQuery(String queryJson)
Creates and returns a new Query object decoded from the supplied JSON String.
|
Query |
Query.offset(long offset)
Zero (0) based index which specifies number of Documents to skip before
returning any result. |
Query |
Query.orderBy(FieldPath... fieldPaths)
Sets the sort ordering of the returned Documents to the ascending order of specified field paths.
|
Query |
Query.orderBy(FieldPath field,
SortOrder order)
Sets the sort ordering of the returned Documents to the specified field and order.
|
Query |
Query.orderBy(String... fieldPaths)
Sets the sort ordering of the returned Documents to the ascending order of specified field paths.
|
Query |
Query.orderBy(String field,
SortOrder order)
Sets the sort ordering of the returned Documents to the specified field and order.
|
Query |
Query.orderBy(String field,
String order)
Sets the sort ordering of the returned Documents to the specified field and order.
|
Query |
Query.select(FieldPath... fieldPaths)
Adds the list of field paths to the list of projected fields.
|
Query |
Query.select(String... fieldPaths)
Adds the list of field paths to the list of projected fields.
|
Query |
Query.setOption(String optionName,
Object value)
Sets a named query option.
|
Query |
Query.setOptions(Document options)
Sets multiple query options for this Query.
|
Query |
Query.setTimeout(long timeoutInMilliseconds)
Sets a duration after which the query will fails with
QueryTimeoutException . |
Query |
Query.waitForTrackedWrites(String writesContext)
Sets the writes-context for this query.
|
Query |
Query.where(QueryCondition condition)
Sets the filtering condition for the query.
|
Query |
Query.where(String conditionJson)
Sets the filtering condition for the query.
|
Modifier and Type | Method and Description |
---|---|
QueryResult |
DocumentStore.find(Query query)
Executes the specified query on the DocumentStore and return a QueryResult.
|
DocumentStream |
DocumentStore.findQuery(Query query)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
QueryResult |
ForwardingStore.find(Query query) |
DocumentStream |
ForwardingStore.findQuery(Query query) |
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.