Class 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 Detail

      • QueryCommand

        public QueryCommand()
    • Method Detail

      • getCursorMark

        public CursorMark getCursorMark()
      • 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​(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()
      • getSort

        public org.apache.lucene.search.Sort getSort()
      • setSort

        public QueryCommand setSort​(org.apache.lucene.search.Sort sort)
      • getOffset

        public int getOffset()
      • getLen

        public int getLen()
      • getSupersetMaxDoc

        public int getSupersetMaxDoc()
      • setSupersetMaxDoc

        public QueryCommand setSupersetMaxDoc​(int supersetMaxDoc)
      • getFlags

        public int getFlags()
      • replaceFlags

        public QueryCommand replaceFlags​(int flags)
      • clearFlags

        public QueryCommand clearFlags​(int flags)
      • getTimeAllowed

        public long getTimeAllowed()
      • setTimeAllowed

        public QueryCommand setTimeAllowed​(long timeAllowed)
      • 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)