public interface QueryExpression
Modifier and Type | Method and Description |
---|---|
QueryExpression |
and(QueryExpression q)
Combine the two QueryExpression with an "and" operation
|
QueryExpression |
and(String fieldname, Operation op, List values)
The method does an and operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
and(String fieldname, Operation op, List values, boolean negate)
The method does an and operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
and(String fieldname, Operation op, Object value)
The method does an and operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
and(String fieldname, Operation op, Object value, boolean negate)
The method does an and operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
com.fatwire.cs.core.util.BinaryTree<Object> |
getBinaryTree()
Gets the binary tree representation of all the query conditions specified in this QueryExpression
|
int |
getMaxResults()
Gets the max number of results that the search engine would return from this query
|
List<SortOrder> |
getSortOrder()
Gets the list of SortOrder that search engine would use when runs this query
|
int |
getStartIndex()
Gets the starting index from which to return the query results
|
String |
getStringFormat()
Gets a String representation of the QueryExpression
|
QueryExpression |
or(QueryExpression q)
Combine the two QueryExpression with an "or" operation
|
QueryExpression |
or(String fieldname, Operation op, List values)
The method does an or operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
or(String fieldname, Operation op, List values, boolean negate)
The method does an or operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
or(String fieldname, Operation op, Object value)
The method does an or operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
QueryExpression |
or(String fieldname, Operation op, Object value, boolean negate)
The method does an or operation between this QueryExpression and the query specified by fieldname, op and value and returns a new QueryExpression that represents the result of the and operation
|
void |
setMaxResults(int max)
Sets the max number of results that the search engine would return from this query
|
void |
setSortOrder(List<SortOrder> so)
Sets the list of SortOrder that search engine would use when runs this query
|
void |
setStartIndex(int start)
Sets the starting index of which we want the query results to be returned from
|
String getStringFormat()
QueryExpression and(String fieldname, Operation op, Object value)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalue
- the value of the additional queryQueryExpression and(String fieldname, Operation op, Object value, boolean negate)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalue
- the value of the additional querynegate
- whether the new Query is a negative condition which indicates "not" true for the additional queryQueryExpression and(String fieldname, Operation op, List values)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalues
- the values of the additional queryQueryExpression and(String fieldname, Operation op, List values, boolean negate)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalues
- the values of the additional querynegate
- whether the new Query is a negative condition which indicates "not" true for the additional queryQueryExpression or(String fieldname, Operation op, Object value)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalue
- the value of the additional queryQueryExpression or(String fieldname, Operation op, Object value, boolean negate)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalue
- the value of the additional querynegate
- whether the new Query is a negative condition which indicates "not" true for the additional queryQueryExpression or(String fieldname, Operation op, List values)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalues
- the values of the additional queryQueryExpression or(String fieldname, Operation op, List values, boolean negate)
fieldname
- the name of the field of the additional queryop
- the query operation of the additional queryvalues
- the values of the additional querynegate
- whether the new Query is a negative condition which indicates "not" true for the additional queryQueryExpression and(QueryExpression q)
q
- the QueryExpression to combine with the current oneQueryExpression or(QueryExpression q)
q
- the QueryExpression to combine with the current oneint getStartIndex()
void setStartIndex(int start)
start
- the starting indexint getMaxResults()
void setMaxResults(int max)
max
- the int number of max resultsvoid setSortOrder(List<SortOrder> so)
so
- the list of SortOrderList<SortOrder> getSortOrder()
com.fatwire.cs.core.util.BinaryTree<Object> getBinaryTree()