7#ifndef FIELDCACHERANGEFILTER_H
8#define FIELDCACHERANGEFILTER_H
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
A range filter built on top of a cached single term field (in FieldCache).
Definition FieldCacheRangeFilter.h:38
static FieldCacheRangeFilterPtr newByteRange(const String &field, const ByteParserPtr &parser, uint8_t lowerVal, uint8_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getBytes(IndexReaderPtr, String, ByteParserPtr)....
static FieldCacheRangeFilterPtr newDoubleRange(const String &field, const DoubleParserPtr &parser, double lowerVal, double upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getDoubles(IndexReaderPtr, String,...
bool includeLower
Definition FieldCacheRangeFilter.h:48
virtual ParserPtr getParser()
Returns the current numeric parser.
virtual bool includesLower()
Returns true if the lower endpoint is inclusive.
virtual int32_t hashCode()=0
Return hash code for this object.
static FieldCacheRangeFilterPtr newDoubleRange(const String &field, double lowerVal, double upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getDoubles(IndexReaderPtr, String)....
static FieldCacheRangeFilterPtr newByteRange(const String &field, uint8_t lowerVal, uint8_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getBytes(IndexReaderPtr, String). This works with all...
virtual String getField()
Returns the field name for this filter.
bool includeUpper
Definition FieldCacheRangeFilter.h:49
virtual bool includesUpper()
Returns true if the upper endpoint is inclusive.
static FieldCacheRangeFilterPtr newIntRange(const String &field, const IntParserPtr &parser, int32_t lowerVal, int32_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getInts(IndexReaderPtr, String, IntParserPtr)....
static FieldCacheRangeFilterPtr newLongRange(const String &field, int64_t lowerVal, int64_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getLongs(IndexReaderPtr, String). This works with all...
static FieldCacheRangeFilterPtr newLongRange(const String &field, const LongParserPtr &parser, int64_t lowerVal, int64_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getLongs(IndexReaderPtr, String, LongParserPtr)....
static FieldCacheRangeFilterPtr newStringRange(const String &field, const String &lowerVal, const String &upperVal, bool includeLower, bool includeUpper)
Creates a string range filter using FieldCache#getStringIndex. This works with all fields containing ...
virtual bool equals(const LuceneObjectPtr &other)=0
Return whether two objects are equal.
virtual ~FieldCacheRangeFilter()
FieldCacheRangeFilter(const String &field, const ParserPtr &parser, bool includeLower, bool includeUpper)
ParserPtr parser
Definition FieldCacheRangeFilter.h:47
virtual String toString()=0
Returns a string representation of the object.
static FieldCacheRangeFilterPtr newIntRange(const String &field, int32_t lowerVal, int32_t upperVal, bool includeLower, bool includeUpper)
Creates a numeric range filter using FieldCache#getInts(IndexReaderPtr, String). This works with all ...
Abstract base class for restricting which documents may be returned during searching.
Definition Filter.h:15
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LongParser > LongParserPtr
Definition LuceneTypes.h:378
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< ByteParser > ByteParserPtr
Definition LuceneTypes.h:289
boost::shared_ptr< IntParser > IntParserPtr
Definition LuceneTypes.h:376
boost::shared_ptr< DoubleParser > DoubleParserPtr
Definition LuceneTypes.h:328
boost::shared_ptr< Parser > ParserPtr
Definition LuceneTypes.h:401
boost::shared_ptr< FieldCacheRangeFilter > FieldCacheRangeFilterPtr
Definition LuceneTypes.h:339