Interface QueryOperations

    • 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 null
        IllegalArgumentException - if the query is not supported