public abstract class BaseOperation extends Object implements BooleanOperation
| Constructor and Description |
|---|
BaseOperation(Query query,
BooleanOperationType type) |
| Modifier and Type | Method and Description |
|---|---|
Query |
and()
Sets the next operation to be AND.
|
Criteria |
compile()
Compiles this instance.
|
BaseOperation |
facets(List<Facet> facets)
Sets the facets.
|
BooleanOperationType |
getType() |
BooleanOperation |
groupEnd()
Ends group.
|
Query |
or()
Sets the next operation to be OR.
|
BooleanOperation |
sortByAscending(List<String> fieldNames)
Sorts results by the specified fields.
|
BooleanOperation |
sortByDescending(List<String> fieldNames)
Sorts results by the specified fields, descending.
|
BooleanOperation |
sortStringByAscending(List<String> fieldNames)
Sorts results by the specified string fields.
|
BooleanOperation |
sortStringByDescending(List<String> fieldNames)
Sorts results by the specified string fields, descending.
|
public BaseOperation(Query query, BooleanOperationType type)
public BooleanOperationType getType()
public Query and()
BooleanOperationand in interface BooleanOperationpublic Query or()
BooleanOperationor in interface BooleanOperationpublic BooleanOperation groupEnd() throws QueryException
BooleanOperationgroupEnd in interface BooleanOperationQueryExceptionpublic Criteria compile() throws QueryException
Operationcompile in interface OperationQueryExceptionpublic BooleanOperation sortByAscending(List<String> fieldNames)
OperationsortByAscending in interface OperationfieldNames - the field names to sort onpublic BooleanOperation sortByDescending(List<String> fieldNames)
OperationsortByDescending in interface OperationfieldNames - the field names to sort onpublic BooleanOperation sortStringByAscending(List<String> fieldNames)
OperationsortStringByAscending in interface OperationfieldNames - the field names to sort onpublic BooleanOperation sortStringByDescending(List<String> fieldNames)
OperationsortStringByDescending in interface OperationfieldNames - the field names to sort onCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries