Lucene++ - a full-featured, c++ search engine
API Documentation
Interface to parse doubles from document fields.
Definition: FieldCache.h:244
virtual Collection< double > getDoubles(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
virtual Collection< int32_t > getInts(const IndexReaderPtr &reader, const String &field, const IntParserPtr &parser)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< StringIndex > StringIndexPtr
Definition: LuceneTypes.h:460
virtual Collection< String > getStrings(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found, reads the term values in f...
virtual void purge(const IndexReaderPtr &r)=0
Drops all cache entries associated with this reader. NOTE: this reader must precisely match the reade...
virtual InfoStreamPtr getInfoStream()
virtual int32_t getCacheType()=0
virtual ~CreationPlaceholder()
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Stores term text values and document ordering data.
Definition: FieldCache.h:180
virtual Collection< uint8_t > getBytes(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
virtual boost::any getCustom()=0
static LongParserPtr NUMERIC_UTILS_LONG_PARSER()
A parser instance for long values encoded by NumericUtils#prefixCodedToLong(String),...
virtual boost::any getValue()=0
virtual int32_t parseInt(const String &string)
Return a integer representation of this field's value.
A unique Identifier/Description for each item in the FieldCache. Can be useful for logging/debugging.
Definition: FieldCache.h:255
StringIndex(Collection< int32_t > values, Collection< String > lookup)
int32_t binarySearchLookup(const String &key)
Maintains caches of term values.
Definition: FieldCache.h:17
static IntParserPtr DEFAULT_INT_PARSER()
The default parser for int values, which are encoded by StringUtils::toInt.
virtual LuceneObjectPtr getReaderKey()=0
Collection< String > lookup
All the term values, in natural order.
Definition: FieldCache.h:185
static FieldCachePtr DEFAULT()
The cache used internally by sorting and range query classes.
virtual int64_t parseLong(const String &string)
Return a long representation of this field's value.
virtual void setInfoStream(const InfoStreamPtr &stream)
If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to Fie...
Definition: AbstractAllTermDocs.h:12
Marker interface as super-interface to all parsers. It is used to specify a custom parser to {}.
Definition: FieldCache.h:200
@ CACHE_STRING
Definition: FieldCache.h:29
Base class for all Lucene classes.
Definition: LuceneObject.h:31
boost::shared_ptr< DoubleParser > DoubleParserPtr
Definition: LuceneTypes.h:328
@ CACHE_LONG
Definition: FieldCache.h:27
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
static const int32_t STRING_INDEX
Indicator for StringIndex values in the cache. NOTE: the value assigned to this constant must not be ...
Definition: FieldCache.h:35
boost::shared_ptr< LongParser > LongParserPtr
Definition: LuceneTypes.h:378
boost::shared_ptr< IntParser > IntParserPtr
Definition: LuceneTypes.h:376
#define LUCENE_INTERFACE(Name)
Definition: LuceneObject.h:19
virtual Collection< int32_t > getInts(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
@ CACHE_DOUBLE
Definition: FieldCache.h:28
virtual uint8_t parseByte(const String &string)
Return a single Byte representation of this field's value.
Collection< int32_t > order
For each document, an index into the lookup array.
Definition: FieldCache.h:192
static ByteParserPtr DEFAULT_BYTE_PARSER()
The default parser for byte values, which are encoded by StringUtils::toInt.
virtual Collection< int64_t > getLongs(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
Interface to parse longs from document fields.
Definition: FieldCache.h:232
virtual void purgeAllCaches()=0
Instructs the FieldCache to forcibly expunge all entries from the underlying caches....
boost::shared_ptr< ByteParser > ByteParserPtr
Definition: LuceneTypes.h:289
virtual String getFieldName()=0
boost::any value
Definition: FieldCache.h:173
virtual ~FieldCacheEntry()
boost::shared_ptr< FieldCache > FieldCachePtr
Definition: LuceneTypes.h:334
@ CACHE_INT
Definition: FieldCache.h:26
virtual StringIndexPtr getStringIndex(const IndexReaderPtr &reader, const String &field)
Checks the internal cache for an appropriate entry, and if none are found reads the term values in fi...
virtual Collection< double > getDoubles(const IndexReaderPtr &reader, const String &field, const DoubleParserPtr &parser)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
virtual String toString()
Returns a string representation of the object.
boost::shared_ptr< InfoStream > InfoStreamPtr
Definition: LuceneTypes.h:532
static IntParserPtr NUMERIC_UTILS_INT_PARSER()
A parser instance for int values encoded by NumericUtils#prefixCodedToInt(String),...
CacheType
Specifies whether and how a field should be stored.
Definition: FieldCache.h:24
virtual Collection< int64_t > getLongs(const IndexReaderPtr &reader, const String &field, const LongParserPtr &parser)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
virtual double parseDouble(const String &string)
Return a double representation of this field's value.
static DoubleParserPtr NUMERIC_UTILS_DOUBLE_PARSER()
A parser instance for double values encoded by NumericUtils, eg. when indexed via NumericField/Numeri...
virtual Collection< uint8_t > getBytes(const IndexReaderPtr &reader, const String &field, const ByteParserPtr &parser)
Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field a...
Interface to parse ints from document fields.
Definition: FieldCache.h:220
static DoubleParserPtr DEFAULT_DOUBLE_PARSER()
The default parser for double values, which are encoded by StringUtils::toDouble.
virtual Collection< FieldCacheEntryPtr > getCacheEntries()=0
Generates an array of CacheEntry objects representing all items currently in the FieldCache.
Interface to parse bytes from document fields.
Definition: FieldCache.h:208
static LongParserPtr DEFAULT_LONG_PARSER()
The default parser for int values, which are encoded by StringUtils::toLong.
Definition: FieldCache.h:170
clucene.sourceforge.net