Package org.terrier.matching.matchops
Class DateRangeOp
- java.lang.Object
-
- org.terrier.matching.matchops.Operator
-
- org.terrier.matching.matchops.DateRangeOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class DateRangeOp extends Operator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
static java.lang.String
STRING_PREFIX
-
Fields inherited from class org.terrier.matching.matchops.Operator
IGNORE_LOW_IDF_TERMS
-
-
Constructor Summary
Constructors Constructor Description DateRangeOp(java.util.Date _lo, java.util.Date _hi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchingEntry
getMatcher(MatchingQueryTerms.QueryTermProperties qtp, Index index, Lexicon<java.lang.String> lexTerm, PostingIndex<Pointer> invTerm, CollectionStatistics collectionStats)
get an entry for matching for this query op.org.apache.commons.lang3.tuple.Pair<EntryStatistics,IterablePosting>
getPostingIterator(Index index)
get posting iterator for this query op.java.lang.String
toString()
-
-
-
Field Detail
-
STRING_PREFIX
public static final java.lang.String STRING_PREFIX
- See Also:
- Constant Field Values
-
logger
protected static final org.slf4j.Logger logger
-
-
Method Detail
-
getPostingIterator
public org.apache.commons.lang3.tuple.Pair<EntryStatistics,IterablePosting> getPostingIterator(Index index) throws java.io.IOException
Description copied from class:Operator
get posting iterator for this query op.- Specified by:
getPostingIterator
in classOperator
- Returns:
- Pair, but Pair.of(null,null) if term not found
- Throws:
java.io.IOException
-
getMatcher
public MatchingEntry getMatcher(MatchingQueryTerms.QueryTermProperties qtp, Index index, Lexicon<java.lang.String> lexTerm, PostingIndex<Pointer> invTerm, CollectionStatistics collectionStats) throws java.io.IOException
Description copied from class:Operator
get an entry for matching for this query op. calls getPostingIterator() internally- Specified by:
getMatcher
in classOperator
- Throws:
java.io.IOException
-
-