Uses of Class
org.apache.lucene.util.AttributeFactory
Packages that use AttributeFactory
Package
Description
Text analysis.
Fast, general-purpose grammar-based tokenizers.
Analyzer for Simplified Chinese, which indexes words.
Basic, general-purpose analysis components.
Fast, general-purpose URLs and email addresses tokenizers.
Analysis components based on ICU
Tokenizer that breaks text into words with the Unicode Text Segmentation algorithm.
Analyzer for Japanese.
Analyzer for Korean.
Character n-gram tokenizers and filters.
Analysis components for path-like strings such as filenames.
Set of components for pattern-based (regex) 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.Analyzer for Thai.
Utility functions for text analysis.
Tokenizer that is aware of Wikipedia syntax.
Unicode collation support.
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 AttributeFactoryModifierConstructorDescription(package private)
StringTokenStream
(AttributeFactory attributeFactory, String value, int length) protected
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.classic
Methods in org.apache.lucene.analysis.classic with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.classic with parameters of type AttributeFactoryModifierConstructorDescriptionClassicTokenizer
(AttributeFactory factory) Creates a new ClassicTokenizer with a givenAttributeFactory
-
Uses of AttributeFactory in org.apache.lucene.analysis.cn.smart
Methods in org.apache.lucene.analysis.cn.smart with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.cn.smart with parameters of type AttributeFactoryModifierConstructorDescriptionHMMChineseTokenizer
(AttributeFactory factory) Creates a new HMMChineseTokenizer, supplying the AttributeFactory -
Uses of AttributeFactory in org.apache.lucene.analysis.core
Methods in org.apache.lucene.analysis.core with parameters of type AttributeFactoryModifier and TypeMethodDescriptionKeywordTokenizerFactory.create
(AttributeFactory factory) LetterTokenizerFactory.create
(AttributeFactory factory) WhitespaceTokenizerFactory.create
(AttributeFactory factory) Constructors in org.apache.lucene.analysis.core with parameters of type AttributeFactoryModifierConstructorDescriptionKeywordTokenizer
(AttributeFactory factory, int bufferSize) LetterTokenizer
(AttributeFactory factory) Construct a new LetterTokenizer using a givenAttributeFactory
.LetterTokenizer
(AttributeFactory factory, int maxTokenLen) Construct a new LetterTokenizer using a givenAttributeFactory
.Construct a new UnicodeWhitespaceTokenizer using a givenAttributeFactory
.UnicodeWhitespaceTokenizer
(AttributeFactory factory, int maxTokenLen) Construct a new UnicodeWhitespaceTokenizer using a givenAttributeFactory
.WhitespaceTokenizer
(AttributeFactory factory) Construct a new WhitespaceTokenizer using a givenAttributeFactory
.WhitespaceTokenizer
(AttributeFactory factory, int maxTokenLen) Construct a new WhitespaceTokenizer using a givenAttributeFactory
. -
Uses of AttributeFactory in org.apache.lucene.analysis.email
Methods in org.apache.lucene.analysis.email with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.email with parameters of type AttributeFactoryModifierConstructorDescriptionUAX29URLEmailTokenizer
(AttributeFactory factory) Creates a new UAX29URLEmailTokenizer with a givenAttributeFactory
-
Uses of AttributeFactory in org.apache.lucene.analysis.icu
Subclasses of AttributeFactory in org.apache.lucene.analysis.icuModifier and TypeClassDescriptionclass
Converts each token into itsCollationKey
, and then encodes bytes as an index term.Constructors in org.apache.lucene.analysis.icu with parameters of type AttributeFactoryModifierConstructorDescriptionICUCollationAttributeFactory
(AttributeFactory delegate, com.ibm.icu.text.Collator collator) Create an ICUCollationAttributeFactory, using the supplied Attribute Factory as the factory for all other attributes. -
Uses of AttributeFactory in org.apache.lucene.analysis.icu.segmentation
Methods in org.apache.lucene.analysis.icu.segmentation with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.icu.segmentation with parameters of type AttributeFactoryModifierConstructorDescriptionICUTokenizer
(AttributeFactory factory, ICUTokenizerConfig config) Construct a new ICUTokenizer that breaks text into words from the given Reader, using a tailored BreakIterator configuration. -
Uses of AttributeFactory in org.apache.lucene.analysis.ja
Methods in org.apache.lucene.analysis.ja with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.ja with parameters of type AttributeFactoryModifierConstructorDescriptionJapaneseTokenizer
(AttributeFactory factory, TokenInfoDictionary systemDictionary, UnknownDictionary unkDictionary, ConnectionCosts connectionCosts, UserDictionary userDictionary, boolean discardPunctuation, boolean discardCompoundToken, JapaneseTokenizer.Mode mode) Create a new JapaneseTokenizer, supplying a custom system dictionary and unknown dictionary.JapaneseTokenizer
(AttributeFactory factory, UserDictionary userDictionary, boolean discardPunctuation, boolean discardCompoundToken, JapaneseTokenizer.Mode mode) Create a new JapaneseTokenizer using the system and unknown dictionaries shipped with Lucene.JapaneseTokenizer
(AttributeFactory factory, UserDictionary userDictionary, boolean discardPunctuation, JapaneseTokenizer.Mode mode) Create a new JapaneseTokenizer using the system and unknown dictionaries shipped with Lucene. -
Uses of AttributeFactory in org.apache.lucene.analysis.ko
Methods in org.apache.lucene.analysis.ko with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.ko with parameters of type AttributeFactoryModifierConstructorDescriptionKoreanTokenizer
(AttributeFactory factory, TokenInfoDictionary systemDictionary, UnknownDictionary unkDictionary, ConnectionCosts connectionCosts, UserDictionary userDictionary, KoreanTokenizer.DecompoundMode mode, boolean outputUnknownUnigrams, boolean discardPunctuation) Create a new KoreanTokenizer supplying a custom system dictionary and unknown dictionary.KoreanTokenizer
(AttributeFactory factory, UserDictionary userDictionary, KoreanTokenizer.DecompoundMode mode, boolean outputUnknownUnigrams) Create a new KoreanTokenizer using the system and unknown dictionaries shipped with Lucene.KoreanTokenizer
(AttributeFactory factory, UserDictionary userDictionary, KoreanTokenizer.DecompoundMode mode, boolean outputUnknownUnigrams, boolean discardPunctuation) Create a new KoreanTokenizer using the system and unknown dictionaries shipped with Lucene. -
Uses of AttributeFactory in org.apache.lucene.analysis.ngram
Methods in org.apache.lucene.analysis.ngram with parameters of type AttributeFactoryModifier and TypeMethodDescriptionEdgeNGramTokenizerFactory.create
(AttributeFactory factory) NGramTokenizerFactory.create
(AttributeFactory factory) Constructors in org.apache.lucene.analysis.ngram with parameters of type AttributeFactoryModifierConstructorDescriptionEdgeNGramTokenizer
(AttributeFactory factory, int minGram, int maxGram) Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given rangeNGramTokenizer
(AttributeFactory factory, int minGram, int maxGram) Creates NGramTokenizer with given min and max n-grams.(package private)
NGramTokenizer
(AttributeFactory factory, int minGram, int maxGram, boolean edgesOnly) -
Uses of AttributeFactory in org.apache.lucene.analysis.path
Methods in org.apache.lucene.analysis.path with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.path with parameters of type AttributeFactoryModifierConstructorDescriptionPathHierarchyTokenizer
(AttributeFactory factory, char delimiter, char replacement, int skip) PathHierarchyTokenizer
(AttributeFactory factory, int bufferSize, char delimiter, char replacement, int skip) ReversePathHierarchyTokenizer
(AttributeFactory factory, char delimiter, char replacement, int skip) ReversePathHierarchyTokenizer
(AttributeFactory factory, int bufferSize, char delimiter, char replacement, int skip) -
Uses of AttributeFactory in org.apache.lucene.analysis.pattern
Methods in org.apache.lucene.analysis.pattern with parameters of type AttributeFactoryModifier and TypeMethodDescriptionPatternTokenizerFactory.create
(AttributeFactory factory) Split the input using configured patternSimplePatternSplitTokenizerFactory.create
(AttributeFactory factory) SimplePatternTokenizerFactory.create
(AttributeFactory factory) Constructors in org.apache.lucene.analysis.pattern with parameters of type AttributeFactoryModifierConstructorDescriptionPatternTokenizer
(AttributeFactory factory, Pattern pattern, int group) creates a new PatternTokenizer returning tokens from group (-1 for split functionality)SimplePatternSplitTokenizer
(AttributeFactory factory, String regexp, int determinizeWorkLimit) SeeRegExp
for the accepted syntax.SimplePatternSplitTokenizer
(AttributeFactory factory, Automaton dfa) Runs a pre-built automaton.SimplePatternTokenizer
(AttributeFactory factory, String regexp, int determinizeWorkLimit) SeeRegExp
for the accepted syntax.SimplePatternTokenizer
(AttributeFactory factory, Automaton dfa) Runs a pre-built automaton. -
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.analysis.th
Methods in org.apache.lucene.analysis.th with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.th with parameters of type AttributeFactoryModifierConstructorDescriptionThaiTokenizer
(AttributeFactory factory) Creates a new ThaiTokenizer, supplying the AttributeFactory -
Uses of AttributeFactory in org.apache.lucene.analysis.util
Methods in org.apache.lucene.analysis.util with parameters of type AttributeFactoryModifier and TypeMethodDescriptionstatic CharTokenizer
CharTokenizer.fromSeparatorCharPredicate
(AttributeFactory factory, IntPredicate separatorCharPredicate) Creates a new instance of CharTokenizer with the supplied attribute factory using a custom predicate, supplied as method reference or lambda expression.static CharTokenizer
CharTokenizer.fromTokenCharPredicate
(AttributeFactory factory, IntPredicate tokenCharPredicate) Creates a new instance of CharTokenizer with the supplied attribute factory using a custom predicate, supplied as method reference or lambda expression.Constructors in org.apache.lucene.analysis.util with parameters of type AttributeFactoryModifierConstructorDescriptionCharTokenizer
(AttributeFactory factory) Creates a newCharTokenizer
instanceCharTokenizer
(AttributeFactory factory, int maxTokenLen) Creates a newCharTokenizer
instanceSegmentingTokenizerBase
(AttributeFactory factory, BreakIterator iterator) Construct a new SegmenterBase, also supplying the AttributeFactory -
Uses of AttributeFactory in org.apache.lucene.analysis.wikipedia
Methods in org.apache.lucene.analysis.wikipedia with parameters of type AttributeFactoryConstructors in org.apache.lucene.analysis.wikipedia with parameters of type AttributeFactoryModifierConstructorDescriptionWikipediaTokenizer
(AttributeFactory factory, int tokenOutput, Set<String> untokenizedTypes) Creates a new instance of theWikipediaTokenizer
. -
Uses of AttributeFactory in org.apache.lucene.collation
Subclasses of AttributeFactory in org.apache.lucene.collationModifier and TypeClassDescriptionclass
Converts each token into itsCollationKey
, and then encodes the bytes as an index term.Methods in org.apache.lucene.collation that return AttributeFactoryModifier and TypeMethodDescriptionprotected AttributeFactory
CollationKeyAnalyzer.attributeFactory
(String fieldName) Constructors in org.apache.lucene.collation with parameters of type AttributeFactoryModifierConstructorDescriptionCollationAttributeFactory
(AttributeFactory delegate, Collator collator) Create a CollationAttributeFactory, using the supplied Attribute Factory as the factory for all other attributes. -
Uses of AttributeFactory in org.apache.lucene.util
Subclasses of AttributeFactory in org.apache.lucene.utilModifier and TypeClassDescriptionprivate static final class
static 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.private final AttributeFactory
AttributeFactory.StaticImplementationAttributeFactory.delegate
private final AttributeFactory
AttributeSource.factory
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.