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()
BooleanOperation
and
in interface BooleanOperation
public Query or()
BooleanOperation
or
in interface BooleanOperation
public BooleanOperation groupEnd() throws QueryException
BooleanOperation
groupEnd
in interface BooleanOperation
QueryException
public Criteria compile() throws QueryException
Operation
compile
in interface Operation
QueryException
public BooleanOperation sortByAscending(List<String> fieldNames)
Operation
sortByAscending
in interface Operation
fieldNames
- the field names to sort onpublic BooleanOperation sortByDescending(List<String> fieldNames)
Operation
sortByDescending
in interface Operation
fieldNames
- the field names to sort onpublic BooleanOperation sortStringByAscending(List<String> fieldNames)
Operation
sortStringByAscending
in interface Operation
fieldNames
- the field names to sort onpublic BooleanOperation sortStringByDescending(List<String> fieldNames)
Operation
sortStringByDescending
in interface Operation
fieldNames
- 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