Uses of Class
org.apache.lucene.util.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
Modifier and TypeFieldDescriptionstatic final AttributeFactory
TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DefaultAttributeFactory
instance that should be used for TokenStreams.Modifier and TypeMethodDescriptionprotected AttributeFactory
Analyzer.attributeFactory
(String fieldName) protected final AttributeFactory
AnalyzerWrapper.attributeFactory
(String fieldName) Modifier and TypeMethodDescriptionabstract Tokenizer
TokenizerFactory.create
(AttributeFactory factory) Creates a TokenStream of the specified input using the given 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
ModifierConstructorDescriptionStandardTokenizer
(AttributeFactory factory) Creates a new StandardTokenizer with a givenAttributeFactory
-
Uses of AttributeFactory in org.apache.lucene.util
Modifier and TypeClassDescriptionstatic class
Expert: AttributeFactory returning an instance of the givenclazz
for the attributes it implements.Modifier 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.Modifier 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.Modifier 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.ModifierConstructorDescriptionAttributeSource
(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.