|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.query.parser.AbstractQuery
public abstract class AbstractQuery
Abstract helper for implementing a Query class. Handles input of the query string and finding the first leaf clause (term) in the clause hierarchy. Is thread safe. No methods return null.
| Constructor Summary | |
|---|---|
protected |
AbstractQuery(String queryStr)
Creates a new instance of AbstractQuery . |
| Method Summary | |
|---|---|
static Query |
createQuery(String string,
boolean blank,
Clause rootClause,
ParentFinder parentFinder)
|
TokenEvaluationEngine.State |
getEvaluationState()
Returns the object that holds State for any TokenEvaluationEngine actions. |
LeafClause |
getFirstLeafClause()
The first term (leaf clause) in the query. |
String |
getQueryString()
The original string the user entered for the search. |
int |
getTermCount()
Return the number of terms in this query. |
boolean |
isBlank()
Is the query blank (or just full of useless symbols). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface no.sesat.search.query.Query |
|---|
getParentFinder, getRootClause |
| Constructor Detail |
|---|
protected AbstractQuery(String queryStr)
queryStr - the query string as inputted from the user.| Method Detail |
|---|
public static Query createQuery(String string,
boolean blank,
Clause rootClause,
ParentFinder parentFinder)
public String getQueryString()
Query
getQueryString in interface Querypublic LeafClause getFirstLeafClause()
Query
getFirstLeafClause in interface Querypublic int getTermCount()
Query
getTermCount in interface Querypublic boolean isBlank()
Query
isBlank in interface Querypublic TokenEvaluationEngine.State getEvaluationState()
Query
getEvaluationState in interface Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||