Save This Page
Home » lucene-3.0.1-src » org.apache.lucene.analysis.tokenattributes » [javadoc | source]
public interface: FlagsAttribute [javadoc | source]

All Implemented Interfaces:

All Known Implementing Classes:
    Token, FlagsAttributeImpl

This attribute can be used to pass different flags down the Tokenizer chain, eg from one TokenFilter to another one.
Method from org.apache.lucene.analysis.tokenattributes.FlagsAttribute Summary:
getFlags,   setFlags
Method from org.apache.lucene.analysis.tokenattributes.FlagsAttribute Detail:
 public int getFlags()
    EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.

    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 org.apache.lucene.analysis.TokenFilter s.

 public  void setFlags(int flags)