7 #ifndef FIELDCACHERANGEFILTER_H
8 #define FIELDCACHERANGEFILTER_H
54 static FieldCacheRangeFilterPtr newStringRange(
const String& field,
const String& lowerVal,
const String& upperVal,
bool includeLower,
bool includeUpper);
59 static FieldCacheRangeFilterPtr newByteRange(
const String& field, uint8_t lowerVal, uint8_t upperVal,
bool includeLower,
bool includeUpper);
69 static FieldCacheRangeFilterPtr newIntRange(
const String& field, int32_t lowerVal, int32_t upperVal,
bool includeLower,
bool includeUpper);
79 static FieldCacheRangeFilterPtr newLongRange(
const String& field, int64_t lowerVal, int64_t upperVal,
bool includeLower,
bool includeUpper);
89 static FieldCacheRangeFilterPtr newDoubleRange(
const String& field,
double lowerVal,
double upperVal,
bool includeLower,
bool includeUpper);
96 virtual String toString() = 0;
98 virtual int32_t hashCode() = 0;
101 virtual String getField();
104 virtual bool includesLower();
107 virtual bool includesUpper();
bool includeLower
Definition: FieldCacheRangeFilter.h:48
A range filter built on top of a cached single term field (in FieldCache).
Definition: FieldCacheRangeFilter.h:38
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< DoubleParser > DoubleParserPtr
Definition: LuceneTypes.h:328
bool includeUpper
Definition: FieldCacheRangeFilter.h:49
Abstract base class for restricting which documents may be returned during searching.
Definition: Filter.h:15
ParserPtr parser
Definition: FieldCacheRangeFilter.h:47
boost::shared_ptr< Parser > ParserPtr
Definition: LuceneTypes.h:401
boost::shared_ptr< ByteParser > ByteParserPtr
Definition: LuceneTypes.h:289
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IntParser > IntParserPtr
Definition: LuceneTypes.h:376
boost::shared_ptr< LongParser > LongParserPtr
Definition: LuceneTypes.h:378
boost::shared_ptr< FieldCacheRangeFilter > FieldCacheRangeFilterPtr
Definition: LuceneTypes.h:339