Lucene++ - a full-featured, c++ search engine
API Documentation
A Token's lexical type. The Default value is "word". More...
#include <TypeAttribute.h>
Public Member Functions | |
TypeAttribute () | |
TypeAttribute (const String &type) | |
virtual | ~TypeAttribute () |
virtual String | getClassName () |
boost::shared_ptr< TypeAttribute > | shared_from_this () |
virtual String | toString () |
Returns a string representation of the object. More... | |
String | type () |
Returns this Token's lexical type. Defaults to "word". More... | |
void | setType (const String &type) |
Set the lexical type. More... | |
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 () |
Static Protected Member Functions | |
static const String & | DEFAULT_TYPE () |
Protected Attributes | |
String | _type |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Additional Inherited Members | |
![]() | |
LuceneObject () | |
A Token's lexical type. The Default value is "word".
Lucene::TypeAttribute::TypeAttribute | ( | ) |
Lucene::TypeAttribute::TypeAttribute | ( | const String & | type | ) |
|
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.
|
staticprotected |
|
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 |
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.
|
inline |
|
virtual |
Returns a string representation of the object.
Reimplemented from Lucene::LuceneObject.
String Lucene::TypeAttribute::type | ( | ) |
Returns this Token's lexical type. Defaults to "word".
|
protected |