Lucene++ - a full-featured, c++ search engine
API Documentation
Source of values for basic function queries. More...
#include <ValueSource.h>
Inheritance diagram for Lucene::ValueSource:Public Member Functions | |
| virtual | ~ValueSource () |
| virtual String | getClassName () |
| boost::shared_ptr< ValueSource > | shared_from_this () |
| virtual DocValuesPtr | getValues (const IndexReaderPtr &reader)=0 |
| Return the DocValues used by the function query. More... | |
| virtual String | description ()=0 |
| Description of field, used in explain() More... | |
| virtual String | toString () |
| Returns a string representation of the object. More... | |
| virtual bool | equals (const LuceneObjectPtr &other)=0 |
Needed for possible caching of query results - used by ValueSourceQuery#equals(LuceneObjectPtr). More... | |
| virtual int32_t | hashCode ()=0 |
Needed for possible caching of query results - used by ValueSourceQuery#hashCode(). More... | |
Public Member Functions inherited from Lucene::LuceneObject | |
| virtual | ~LuceneObject () |
| virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. More... | |
| virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
| Return clone of this object. More... | |
| virtual int32_t | hashCode () |
| Return hash code for this object. More... | |
| virtual bool | equals (const LuceneObjectPtr &other) |
| Return whether two objects are equal. More... | |
| virtual int32_t | compareTo (const LuceneObjectPtr &other) |
| Compare two objects. More... | |
| virtual String | toString () |
| Returns a string representation of the object. More... | |
Public Member Functions inherited from Lucene::LuceneSync | |
| virtual | ~LuceneSync () |
| virtual SynchronizePtr | getSync () |
| Return this object synchronize lock. More... | |
| virtual LuceneSignalPtr | getSignal () |
| Return this object signal. More... | |
| virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout. More... | |
| virtual void | unlock () |
| Unlock this object. More... | |
| virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread. More... | |
| virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout. More... | |
| virtual void | notifyAll () |
| Notify all threads waiting for signal. More... | |
Static Public Member Functions | |
| static String | _getClassName () |
Additional Inherited Members | |
Protected Member Functions inherited from Lucene::LuceneObject | |
| LuceneObject () | |
Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Source of values for basic function queries.
At its default/simplest form, values - one per doc - are used as the score of that doc.
Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.
|
virtual |
|
inlinestatic |
|
pure virtual |
Description of field, used in explain()
Implemented in Lucene::ByteFieldSource, Lucene::DoubleFieldSource, Lucene::FieldCacheSource, Lucene::IntFieldSource, Lucene::OrdFieldSource, and Lucene::ReverseOrdFieldSource.
|
pure virtual |
Needed for possible caching of query results - used by ValueSourceQuery#equals(LuceneObjectPtr).
Reimplemented from Lucene::LuceneObject.
Implemented in Lucene::FieldCacheSource, Lucene::OrdFieldSource, and Lucene::ReverseOrdFieldSource.
|
inlinevirtual |
|
pure virtual |
Return the DocValues used by the function query.
| reader | The IndexReader used to read these values. If any caching is involved, that caching would also be IndexReader based. |
Implemented in Lucene::FieldCacheSource, Lucene::OrdFieldSource, and Lucene::ReverseOrdFieldSource.
|
pure virtual |
Needed for possible caching of query results - used by ValueSourceQuery#hashCode().
Reimplemented from Lucene::LuceneObject.
Implemented in Lucene::FieldCacheSource, Lucene::OrdFieldSource, and Lucene::ReverseOrdFieldSource.
|
inline |
|
virtual |
Returns a string representation of the object.
Reimplemented from Lucene::LuceneObject.