public interface SearchQueryHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
FEATURE_MAX_NUMBER
Feature that allows specifying the maximum number of results to be returned.
|
static int |
FEATURE_OFFSET
Feature that allows specifying an index in the list of results, as a starting popublic final static int for results to be returned.
|
static int |
FEATURE_REGEXP
Feature that allows to search on string by a regular expression.
|
static int |
SUPPORT_NONE
Support level for features that are not supported.
|
static int |
SUPPORT_NORMAL
Support level for features that are available for use under normal circumstances.
|
static int |
SUPPORT_OPTIMAL
Support level for features that are optimally supported.
|
static int |
SUPPORT_WEAK
Support level for features that are supported, but not recommended when performance is critical.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createSqlString(SearchQuery query)
Makes a String of a query, taking into consideration if the database supports offset and
maxnumber features.
|
List<MMObjectNode> |
getNodes(SearchQuery query,
MMObjectBuilder builder)
Processes a search query, returns the result as a list of nodes.
|
int |
getSupportLevel(Constraint constraint,
SearchQuery query)
Gets the level at which a constraint is supported for a query
by this handler.
|
int |
getSupportLevel(int feature,
SearchQuery query)
Gets the level at which a feature is supported for a query
by this handler.
|
static final int SUPPORT_NONE
static final int SUPPORT_WEAK
static final int SUPPORT_NORMAL
static final int SUPPORT_OPTIMAL
static final int FEATURE_MAX_NUMBER
SearchQuery.getMaxNumber(),
Constant Field Valuesstatic final int FEATURE_OFFSET
SearchQuery.getOffset(),
Constant Field Valuesstatic final int FEATURE_REGEXP
SearchQuery.getOffset(),
Constant Field Valuesint getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SearchQueryExceptionint getSupportLevel(Constraint constraint, SearchQuery query) throws SearchQueryException
SearchQueryExceptionList<MMObjectNode> getNodes(SearchQuery query, MMObjectBuilder builder) throws SearchQueryException
<step alias>.<field name>, where
the step alias is required to be of the form
<step tablename><x>, and
<x> is either empty or a single digit. Examples: images.number, images0.number,
images1.number
query - The search query.builder - The builder for the result nodes. Specify a
ResultBuilder
to get resultnodes.
ClusterBuilder
to get clusternodes.SearchQueryExceptionResultNode,
ClusterNodeString createSqlString(SearchQuery query) throws SearchQueryException
query - the query to convert to sqlSearchQueryException - when error occurs while making the stringMMBase 1.9-SNAPSHOT - ${javadoctimestamp}