Package org.apache.solr.handler.tagger
Class TaggingAttributeImpl
- java.lang.Object
-
- org.apache.lucene.util.AttributeImpl
-
- org.apache.solr.handler.tagger.TaggingAttributeImpl
-
- All Implemented Interfaces:
Cloneable
,org.apache.lucene.util.Attribute
,TaggingAttribute
public class TaggingAttributeImpl extends org.apache.lucene.util.AttributeImpl implements TaggingAttribute
Implementation of theTaggingAttribute
-
-
Field Summary
-
Fields inherited from interface org.apache.solr.handler.tagger.TaggingAttribute
DEFAULT_TAGGABLE
-
-
Constructor Summary
Constructors Constructor Description TaggingAttributeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
copyTo(org.apache.lucene.util.AttributeImpl target)
boolean
isTaggable()
Getter for the taggable state of the current Tokenvoid
reflectWith(org.apache.lucene.util.AttributeReflector reflector)
void
setTaggable(boolean lookup)
Setter for the taggable state.
-
-
-
Method Detail
-
isTaggable
public boolean isTaggable()
Description copied from interface:TaggingAttribute
Getter for the taggable state of the current Token- Specified by:
isTaggable
in interfaceTaggingAttribute
- Returns:
- the state
-
setTaggable
public void setTaggable(boolean lookup)
Description copied from interface:TaggingAttribute
Setter for the taggable state. Typically called by code withinTokenStream.incrementToken()
.- Specified by:
setTaggable
in interfaceTaggingAttribute
- Parameters:
lookup
- the state
-
clear
public void clear()
- Specified by:
clear
in classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyTo
in classorg.apache.lucene.util.AttributeImpl
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
- Specified by:
reflectWith
in classorg.apache.lucene.util.AttributeImpl
-
-