This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.
More...
#include <FlagsAttribute.h>
This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.
◆ FlagsAttribute()
| Lucene::FlagsAttribute::FlagsAttribute |
( |
| ) |
|
◆ ~FlagsAttribute()
| virtual Lucene::FlagsAttribute::~FlagsAttribute |
( |
| ) |
|
|
virtual |
◆ _getClassName()
| String Lucene::FlagsAttribute::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ clear()
| virtual void Lucene::FlagsAttribute::clear |
( |
| ) |
|
|
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.
◆ clone()
Shallow clone. Subclasses must override this if they need to clone any members deeply.
- Parameters
-
| base | clone reference - null when called initially, then set in top virtual override. |
Implements Lucene::Attribute.
◆ copyTo()
| virtual void Lucene::FlagsAttribute::copyTo |
( |
const AttributePtr & | target | ) |
|
|
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.
◆ equals()
| virtual bool Lucene::FlagsAttribute::equals |
( |
const LuceneObjectPtr & | other | ) |
|
|
virtual |
◆ getClassName()
| virtual String Lucene::FlagsAttribute::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getFlags()
| virtual int32_t Lucene::FlagsAttribute::getFlags |
( |
| ) |
|
|
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.
◆ hashCode()
| virtual int32_t Lucene::FlagsAttribute::hashCode |
( |
| ) |
|
|
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.
◆ setFlags()
| virtual void Lucene::FlagsAttribute::setFlags |
( |
int32_t | flags | ) |
|
|
virtual |
◆ shared_from_this()
| boost::shared_ptr< FlagsAttribute > Lucene::FlagsAttribute::shared_from_this |
( |
| ) |
|
|
inline |
◆ toString()
| virtual String Lucene::FlagsAttribute::toString |
( |
| ) |
|
|
virtual |
◆ flags
| int32_t Lucene::FlagsAttribute::flags |
|
protected |
The documentation for this class was generated from the following file: