Uses of Class
org.apache.lucene.util.AttributeFactory
Packages that use AttributeFactory
Package
Description
Text analysis.
Fast, general-purpose grammar-based tokenizer
StandardTokenizer
implements the Word Break rules from the
Unicode Text Segmentation algorithm, as specified in Unicode Standard Annex #29.Some utility classes.
-
Uses of AttributeFactory in org.apache.lucene.analysis
Fields in org.apache.lucene.analysis declared as AttributeFactoryModifier and TypeFieldDescriptionstatic final AttributeFactory
TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DefaultAttributeFactory
instance that should be used for TokenStreams.Methods in org.apache.lucene.analysis that return AttributeFactoryModifier and TypeMethodDescriptionprotected AttributeFactory
Analyzer.attributeFactory
(String fieldName) protected final AttributeFactory
AnalyzerWrapper.attributeFactory
(String fieldName) Methods in org.apache.lucene.analysis with parameters of type AttributeFactoryModifier and TypeMethodDescriptionabstract Tokenizer
TokenizerFactory.create
(AttributeFactory factory) Creates a TokenStream of the specified input using the given AttributeFactoryConstructors in org.apache.lucene.analysis with parameters of type AttributeFactoryModifierConstructorDescriptionprotected
Tokenizer
(AttributeFactory factory) Construct a tokenizer with no input, awaiting a call toTokenizer.setReader(java.io.Reader)
to provide input.protected
TokenStream
(AttributeFactory factory) A TokenStream using the supplied AttributeFactory for creating newAttribute
instances. -
Uses of AttributeFactory in org.apache.lucene.analysis.standard
Methods in org.apache.lucene.analysis.standard with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.standard with parameters of type AttributeFactoryModifierConstructorDescriptionStandardTokenizer
(AttributeFactory factory) Creates a new StandardTokenizer with a givenAttributeFactory
-
Uses of AttributeFactory in org.apache.lucene.util
Subclasses of AttributeFactory in org.apache.lucene.utilModifier and TypeClassDescriptionstatic class
Expert: AttributeFactory returning an instance of the givenclazz
for the attributes it implements.Fields in org.apache.lucene.util declared as AttributeFactoryModifier and TypeFieldDescriptionstatic final AttributeFactory
AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that createsAttributeImpl
s using the class name of the suppliedAttribute
interface class by appendingImpl
to it.Methods in org.apache.lucene.util that return AttributeFactoryModifier and TypeMethodDescriptionfinal AttributeFactory
AttributeSource.getAttributeFactory()
returns the used AttributeFactory.static <A extends AttributeImpl>
AttributeFactoryAttributeFactory.getStaticImplementation
(AttributeFactory delegate, Class<A> clazz) Returns an AttributeFactory returning an instance of the givenclazz
for the attributes it implements.Methods in org.apache.lucene.util with parameters of type AttributeFactoryModifier and TypeMethodDescriptionstatic <A extends AttributeImpl>
AttributeFactoryAttributeFactory.getStaticImplementation
(AttributeFactory delegate, Class<A> clazz) Returns an AttributeFactory returning an instance of the givenclazz
for the attributes it implements.Constructors in org.apache.lucene.util with parameters of type AttributeFactoryModifierConstructorDescriptionAttributeSource
(AttributeFactory factory) An AttributeSource using the suppliedAttributeFactory
for creating newAttribute
instances.protected
StaticImplementationAttributeFactory
(AttributeFactory delegate, Class<A> clazz) Expert: Creates an AttributeFactory returningclazz
as instance for the attributes it implements and for all other attributes calls the given delegate factory.