@FunctionalInterface public interface OqlQueryExecutor
SelectResults,
QueryMethod| Modifier and Type | Field and Description |
|---|---|
static String |
NON_EXECUTABLE_QUERY_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
org.apache.geode.cache.query.SelectResults |
execute(QueryMethod queryMethod,
String query,
Object... arguments)
Executes the given
OQL query. |
default UnsupportedQueryExecutionException |
newUnsupportedQueryExecutionException(String query)
Constructs a new instance of
UnsupportedQueryExecutionException initialized with a canned message
containing the given OQL query that could not be executed by the OqlQueryExecutor implementation. |
default OqlQueryExecutor |
thenExecuteWith(OqlQueryExecutor queryExecutor)
Null-safe composition method to compose this
OqlQueryExecutor with
the given OqlQueryExecutor. |
static final String NON_EXECUTABLE_QUERY_MESSAGE
org.apache.geode.cache.query.SelectResults execute(QueryMethod queryMethod, String query, Object... arguments)
OQL query.queryMethod - QueryMethod modeling the OQl query.query - String containing the Apache Geode OQL query.arguments - array of arguments used for the bind in OQL query parameters.OQL query result set.UnsupportedQueryExecutionException - if this OqlQueryExecutor cannot execute (i.e. handle)
the OQL query.QueryMethod,
SelectResultsdefault UnsupportedQueryExecutionException newUnsupportedQueryExecutionException(String query)
UnsupportedQueryExecutionException initialized with a canned message
containing the given OQL query that could not be executed by the OqlQueryExecutor implementation.query - OQL query that could not be executed.UnsupportedQueryExecutionException.UnsupportedQueryExecutionExceptiondefault OqlQueryExecutor thenExecuteWith(@NonNull OqlQueryExecutor queryExecutor)
OqlQueryExecutor with
the given OqlQueryExecutor.
OqlQueryExecutor implementations should be composed in an order that is most suitable to
the execution of the OQL query first. Meaning, the outer most OqlQueryExecutor should be the most
suitable OqlQueryExecutor to execute the given OQL query followed by the next most suitable
OqlQueryExecutor in the composition (i.e. chain) and so on until the OQL query is either successfully
executed (handled) or the composition is exhausted, in which case, an Exception could be thrown.
If an OqlQueryExecutor is unable to execute, or handle, the given OQL query, then it must throw
an {@link UnsupportedQueryExecutionException } to triggger the next {@link OqlQueryExecutor} in the composition.queryExecutor - OqlQueryExecutor to compose with this OqlQueryExecutor;
must not be null.OqlQueryExecutor consisting of this OqlQueryExecutor composed with
the given OqlQueryExecutor. If the OqlQueryExecutor is null, then this method
returns this OqlQueryExecutor.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.