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 voidclear()voidcopyTo(org.apache.lucene.util.AttributeImpl target)booleanisTaggable()Getter for the taggable state of the current TokenvoidreflectWith(org.apache.lucene.util.AttributeReflector reflector)voidsetTaggable(boolean lookup)Setter for the taggable state.
-
-
-
Method Detail
-
isTaggable
public boolean isTaggable()
Description copied from interface:TaggingAttributeGetter for the taggable state of the current Token- Specified by:
isTaggablein interfaceTaggingAttribute- Returns:
- the state
-
setTaggable
public void setTaggable(boolean lookup)
Description copied from interface:TaggingAttributeSetter for the taggable state. Typically called by code withinTokenStream.incrementToken().- Specified by:
setTaggablein interfaceTaggingAttribute- Parameters:
lookup- the state
-
clear
public void clear()
- Specified by:
clearin classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyToin classorg.apache.lucene.util.AttributeImpl
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
- Specified by:
reflectWithin classorg.apache.lucene.util.AttributeImpl
-
-