Lucene++ - a full-featured, c++ search engine
API Documentation
This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one. More...
#include <FlagsAttribute.h>
Public Member Functions | |
FlagsAttribute () | |
virtual | ~FlagsAttribute () |
virtual String | getClassName () |
boost::shared_ptr< FlagsAttribute > | shared_from_this () |
virtual String | toString () |
Returns a string representation of the object. More... | |
virtual int32_t | getFlags () |
Get the bitset for any bits that have been set. This is completely distinct from TypeAttribute#type(), although they do share similar purposes. The flags can be used to encode information about the token for use by other TokenFilters. More... | |
virtual void | setFlags (int32_t flags) |
virtual void | clear () |
Clears the values in this Attribute and resets it to its default value. If this implementation implements more than one Attribute interface it clears all. More... | |
virtual bool | equals (const LuceneObjectPtr &other) |
All values used for computation of hashCode() should be checked here for equality. More... | |
virtual int32_t | hashCode () |
Subclasses must implement this method and should compute a hashCode similar to this: More... | |
virtual void | copyTo (const AttributePtr &target) |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports. More... | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Shallow clone. Subclasses must override this if they need to clone any members deeply. More... | |
![]() | |
virtual | ~Attribute () |
boost::shared_ptr< Attribute > | shared_from_this () |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. More... | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. More... | |
![]() | |
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 () |
![]() | |
static String | _getClassName () |
Protected Attributes | |
int32_t | flags |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Additional Inherited Members | |
![]() | |
LuceneObject () | |
This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.
Lucene::FlagsAttribute::FlagsAttribute | ( | ) |
|
virtual |
|
inlinestatic |
|
virtual |
Clears the values in this Attribute and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
Implements Lucene::Attribute.
|
virtual |
Shallow clone. Subclasses must override this if they need to clone any members deeply.
base | clone reference - null when called initially, then set in top virtual override. |
Implements Lucene::Attribute.
|
virtual |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
Implements Lucene::Attribute.
|
virtual |
All values used for computation of hashCode() should be checked here for equality.
see also LuceneObject#equals(Object)
Implements Lucene::Attribute.
|
inlinevirtual |
Reimplemented from Lucene::Attribute.
|
virtual |
Get the bitset for any bits that have been set. This is completely distinct from TypeAttribute#type(), although they do share similar purposes. The flags can be used to encode information about the token for use by other TokenFilters.
|
virtual |
Subclasses must implement this method and should compute a hashCode similar to this:
int32_t hashCode() { int32_t code = startOffset; code = code * 31 + endOffset; return code; }
see also equals(Object)
Implements Lucene::Attribute.
|
virtual |
|
inline |
|
virtual |
Returns a string representation of the object.
Reimplemented from Lucene::LuceneObject.
|
protected |