Interface QueryOperations
-
- All Known Subinterfaces:
QueryReadTransaction
,QueryReadWriteTransaction
public interface QueryOperations
Query-like operations supported byReadTransaction
andReadWriteTransaction
. This interface defines the operations without a tie-in with lifecycle management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends @NonNull DataObject>
@NonNull FluentFuture<QueryResult<T>>execute(@NonNull LogicalDatastoreType store, @NonNull QueryExpression<T> query)
Executes a query on the provided logical data store.
-
-
-
Method Detail
-
execute
<T extends @NonNull DataObject> @NonNull FluentFuture<QueryResult<T>> execute(@NonNull LogicalDatastoreType store, @NonNull QueryExpression<T> query)
Executes a query on the provided logical data store.- Parameters:
store
- Logical data store from which read should occur.query
- Query to execute- Returns:
- a FluentFuture containing the result of the query. The Future blocks until the operation is complete.
Once complete:
- The Future returns the result of the query
- If the query execution fails, the Future will fail with a
ReadFailedException
or an exception derived from ReadFailedException.
- Throws:
NullPointerException
- if any of the arguments is nullIllegalArgumentException
- if the query is not supported
-
-