Package | Description |
---|---|
org.apache.lucene.analysis |
Text analysis.
|
org.apache.lucene.analysis.standard |
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. |
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
static AttributeFactory |
TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Default
AttributeFactory instance that should be used for TokenStreams. |
Modifier and Type | Method and Description |
---|---|
protected AttributeFactory |
AnalyzerWrapper.attributeFactory(String fieldName) |
protected AttributeFactory |
Analyzer.attributeFactory(String fieldName)
|
Constructor and Description |
---|
Tokenizer(AttributeFactory factory)
Construct a tokenizer with no input, awaiting a call to
Tokenizer.setReader(java.io.Reader) to
provide input. |
TokenStream(AttributeFactory factory)
A TokenStream using the supplied AttributeFactory for creating new
Attribute instances. |
Constructor and Description |
---|
StandardTokenizer(AttributeFactory factory)
Creates a new StandardTokenizer with a given
AttributeFactory |
Modifier and Type | Class and Description |
---|---|
static class |
AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
Expert: AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Modifier and Type | Field and Description |
---|---|
static AttributeFactory |
AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that creates
AttributeImpl s using the
class name of the supplied Attribute interface class by appending Impl to it. |
Modifier and Type | Method and Description |
---|---|
AttributeFactory |
AttributeSource.getAttributeFactory()
returns the used AttributeFactory.
|
static <A extends AttributeImpl> |
AttributeFactory.getStaticImplementation(AttributeFactory delegate,
Class<A> clazz)
Returns an AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Modifier and Type | Method and Description |
---|---|
static <A extends AttributeImpl> |
AttributeFactory.getStaticImplementation(AttributeFactory delegate,
Class<A> clazz)
Returns an AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Constructor and Description |
---|
AttributeSource(AttributeFactory factory)
An AttributeSource using the supplied
AttributeFactory for creating new Attribute instances. |
StaticImplementationAttributeFactory(AttributeFactory delegate,
Class<A> clazz)
Expert: Creates an AttributeFactory returning
clazz as instance for the
attributes it implements and for all other attributes calls the given delegate factory. |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.