Uses of Interface
org.apache.lucene.util.Attribute
-
Packages that use Attribute Package Description org.apache.lucene.analysis API and code to convert text into indexable/searchable tokens.org.apache.lucene.analysis.tokenattributes UsefulAttributes for text analysis.org.apache.lucene.util Some utility classes. -
-
Uses of Attribute in org.apache.lucene.analysis
Classes in org.apache.lucene.analysis that implement Attribute Modifier and Type Class Description classTokenA Token is an occurrence of a term from the text of a field.Method parameters in org.apache.lucene.analysis with type arguments of type Attribute Modifier and Type Method Description AttributeImplToken.TokenAttributeFactory. createAttributeInstance(Class<? extends Attribute> attClass) -
Uses of Attribute in org.apache.lucene.analysis.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.tokenattributes Modifier and Type Interface Description interfaceCharTermAttributeThe term text of a Token.interfaceFlagsAttributeThis attribute can be used to pass different flags down theTokenizerchain, eg from one TokenFilter to another one.interfaceKeywordAttributeThis attribute can be used to mark a token as a keyword.interfaceOffsetAttributeThe start and end character offset of a Token.interfacePayloadAttributeThe payload of a Token.interfacePositionIncrementAttributeThe positionIncrement determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.interfacePositionLengthAttributeThe positionLength determines how many positions this token spans.interfaceTermAttributeDeprecated.UseCharTermAttributeinstead.interfaceTypeAttributeA Token's lexical type.Classes in org.apache.lucene.analysis.tokenattributes that implement Attribute Modifier and Type Class Description classCharTermAttributeImplThe term text of a Token.classFlagsAttributeImplThis attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.classKeywordAttributeImplThis attribute can be used to mark a token as a keyword.classOffsetAttributeImplThe start and end character offset of a Token.classPayloadAttributeImplThe payload of a Token.classPositionIncrementAttributeImplThe positionIncrement determines the position of this token relative to the previous Token in aTokenStream, used in phrase searching.classPositionLengthAttributeImplclassTermAttributeImplDeprecated.This class is not used anymore.classTypeAttributeImplA Token's lexical type. -
Uses of Attribute in org.apache.lucene.util
Classes in org.apache.lucene.util that implement Attribute Modifier and Type Class Description classAttributeImplBase class for Attributes that can be added to aAttributeSource.Methods in org.apache.lucene.util with type parameters of type Attribute Modifier and Type Method Description <A extends Attribute>
AAttributeSource. addAttribute(Class<A> attClass)The caller must pass in a Class<? extends Attribute> value.<A extends Attribute>
AAttributeSource. getAttribute(Class<A> attClass)The caller must pass in a Class<? extends Attribute> value.Methods in org.apache.lucene.util that return types with arguments of type Attribute Modifier and Type Method Description Iterator<Class<? extends Attribute>>AttributeSource. getAttributeClassesIterator()Returns a new iterator that iterates the attribute classes in the same order they were added in.Method parameters in org.apache.lucene.util with type arguments of type Attribute Modifier and Type Method Description abstract AttributeImplAttributeSource.AttributeFactory. createAttributeInstance(Class<? extends Attribute> attClass)returns anAttributeImplfor the suppliedAttributeinterface class.booleanAttributeSource. hasAttribute(Class<? extends Attribute> attClass)The caller must pass in a Class<? extends Attribute> value.voidAttributeReflector. reflect(Class<? extends Attribute> attClass, String key, Object value)This method gets called for every property in anAttributeImpl/AttributeSourcepassing the class name of theAttribute, a key and the actual value.
-