7#ifndef FIELDCACHESOURCE_H
8#define FIELDCACHESOURCE_H
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
A base class for ValueSource implementations that retrieve values for a single field from the FieldCa...
Definition FieldCacheSource.h:28
virtual bool cachedFieldSourceEquals(const FieldCacheSourcePtr &other)=0
Check if equals to another FieldCacheSource, already knowing that cache and field are equal.
virtual bool equals(const LuceneObjectPtr &other)
Needed for possible caching of query results - used by ValueSourceQuery#equals(LuceneObjectPtr).
FieldCacheSource(const String &field)
Create a cached field source for the input field.
virtual int32_t hashCode()
Needed for possible caching of query results - used by ValueSourceQuery#hashCode().
String field
Definition FieldCacheSource.h:37
virtual int32_t cachedFieldSourceHashCode()=0
Return a hash code of a FieldCacheSource, without the hash-codes of the field and the cache (those ar...
virtual ~FieldCacheSource()
virtual String description()
Description of field, used in explain()
virtual DocValuesPtr getCachedFieldValues(const FieldCachePtr &cache, const String &field, const IndexReaderPtr &reader)=0
Return cached DocValues for input field and reader.
virtual DocValuesPtr getValues(const IndexReaderPtr &reader)
Return the DocValues used by the function query.
Source of values for basic function queries.
Definition ValueSource.h:21
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< FieldCacheSource > FieldCacheSourcePtr
Definition LuceneTypes.h:345
boost::shared_ptr< DocValues > DocValuesPtr
Definition LuceneTypes.h:325
boost::shared_ptr< FieldCache > FieldCachePtr
Definition LuceneTypes.h:334
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157