|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryExpression
QueryExpression represents a query that could be performed in Search Engine.
Method Summary | |
---|---|
QueryExpression |
and(QueryExpression q) Combine the two QueryExpression with an "and" operation |
QueryExpression |
and(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.lang.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<java.lang.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 |
java.util.List<SortOrder> |
getSortOrder() Gets the list of SortOrder that search engine would use when runs this query |
int |
getStartIndex() Gets the starting index of which we want the query results to be returned from |
java.lang.String |
getStringFormat() Gets a String representation of the QueryExpression |
QueryExpression |
or(QueryExpression q) Combine the two QueryExpression with an "or" operation |
QueryExpression |
or(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.lang.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(java.util.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 |
Method Detail |
---|
java.lang.String getStringFormat()
QueryExpression and(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.lang.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(java.lang.String fieldname, Operation op, java.util.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(java.lang.String fieldname, Operation op, java.util.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(java.util.List<SortOrder> so)
so
- the list of SortOrderjava.util.List<SortOrder> getSortOrder()
com.fatwire.cs.core.util.BinaryTree<java.lang.Object> getBinaryTree()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.