Package org.apache.solr.search
Class QueryCommand
- java.lang.Object
-
- org.apache.solr.search.QueryCommand
-
public class QueryCommand extends Object
A query request command to avoid having to change the method signatures if we want to pass additional information to the searcher.
-
-
Constructor Summary
Constructors Constructor Description QueryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryCommand
clearFlags(int flags)
CursorMark
getCursorMark()
DocSet
getFilter()
List<org.apache.lucene.search.Query>
getFilterList()
int
getFlags()
int
getLen()
int
getMinExactCount()
int
getOffset()
org.apache.lucene.search.Query
getQuery()
boolean
getSegmentTerminateEarly()
org.apache.lucene.search.Sort
getSort()
int
getSupersetMaxDoc()
boolean
getTerminateEarly()
long
getTimeAllowed()
boolean
isNeedDocSet()
QueryCommand
replaceFlags(int flags)
QueryCommand
setCursorMark(CursorMark cursorMark)
QueryCommand
setFilter(DocSet filter)
QueryCommand
setFilterList(List<org.apache.lucene.search.Query> filterList)
QueryCommand
setFilterList(org.apache.lucene.search.Query f)
A simple setter to build a filterList from a queryQueryCommand
setFlags(int flags)
QueryCommand
setLen(int len)
QueryCommand
setMinExactCount(int count)
QueryCommand
setNeedDocSet(boolean needDocSet)
QueryCommand
setOffset(int offset)
QueryCommand
setQuery(org.apache.lucene.search.Query query)
QueryCommand
setSegmentTerminateEarly(boolean segmentSegmentTerminateEarly)
QueryCommand
setSort(org.apache.lucene.search.Sort sort)
QueryCommand
setSupersetMaxDoc(int supersetMaxDoc)
QueryCommand
setTerminateEarly(boolean segmentTerminateEarly)
QueryCommand
setTimeAllowed(long timeAllowed)
-
-
-
Method Detail
-
getCursorMark
public CursorMark getCursorMark()
-
setCursorMark
public QueryCommand setCursorMark(CursorMark cursorMark)
-
getQuery
public org.apache.lucene.search.Query getQuery()
-
setQuery
public QueryCommand setQuery(org.apache.lucene.search.Query query)
-
getFilterList
public List<org.apache.lucene.search.Query> getFilterList()
-
setFilterList
public QueryCommand setFilterList(List<org.apache.lucene.search.Query> filterList)
- Throws:
IllegalArgumentException
- if filter is not null.
-
setFilterList
public QueryCommand setFilterList(org.apache.lucene.search.Query f)
A simple setter to build a filterList from a query- Throws:
IllegalArgumentException
- if filter is not null.
-
getFilter
public DocSet getFilter()
-
setFilter
public QueryCommand setFilter(DocSet filter)
- Throws:
IllegalArgumentException
- if filterList is not null.
-
getSort
public org.apache.lucene.search.Sort getSort()
-
setSort
public QueryCommand setSort(org.apache.lucene.search.Sort sort)
-
getOffset
public int getOffset()
-
setOffset
public QueryCommand setOffset(int offset)
-
getLen
public int getLen()
-
setLen
public QueryCommand setLen(int len)
-
getSupersetMaxDoc
public int getSupersetMaxDoc()
-
setSupersetMaxDoc
public QueryCommand setSupersetMaxDoc(int supersetMaxDoc)
-
getFlags
public int getFlags()
-
replaceFlags
public QueryCommand replaceFlags(int flags)
-
setFlags
public QueryCommand setFlags(int flags)
-
clearFlags
public QueryCommand clearFlags(int flags)
-
getTimeAllowed
public long getTimeAllowed()
-
setTimeAllowed
public QueryCommand setTimeAllowed(long timeAllowed)
-
getMinExactCount
public int getMinExactCount()
-
setMinExactCount
public QueryCommand setMinExactCount(int count)
-
isNeedDocSet
public boolean isNeedDocSet()
-
setNeedDocSet
public QueryCommand setNeedDocSet(boolean needDocSet)
-
getTerminateEarly
public boolean getTerminateEarly()
-
setTerminateEarly
public QueryCommand setTerminateEarly(boolean segmentTerminateEarly)
-
getSegmentTerminateEarly
public boolean getSegmentTerminateEarly()
-
setSegmentTerminateEarly
public QueryCommand setSegmentTerminateEarly(boolean segmentSegmentTerminateEarly)
-
-