Uses of Class
org.apache.lucene.util.AttributeFactory
-
Packages that use AttributeFactory Package Description org.apache.lucene.analysis Text analysis.org.apache.lucene.analysis.cn.smart Analyzer for Simplified Chinese, which indexes words.org.apache.lucene.analysis.core Basic, general-purpose analysis components.org.apache.lucene.analysis.icu.segmentation Tokenizer that breaks text into words with the Unicode Text Segmentation algorithm.org.apache.lucene.analysis.ja Analyzer for Japanese.org.apache.lucene.analysis.ko Analyzer for Korean.org.apache.lucene.analysis.ngram Character n-gram tokenizers and filters.org.apache.lucene.analysis.path Analysis components for path-like strings such as filenames.org.apache.lucene.analysis.pattern Set of components for pattern-based (regex) analysis.org.apache.lucene.analysis.standard Fast, general-purpose grammar-based tokenizerStandardTokenizer
implements the Word Break rules from the Unicode Text Segmentation algorithm, as specified in Unicode Standard Annex #29.org.apache.lucene.analysis.th Analyzer for Thai.org.apache.lucene.analysis.util Utility functions for text analysis.org.apache.lucene.analysis.wikipedia Tokenizer that is aware of Wikipedia syntax.org.apache.lucene.collation Unicode collation support.org.apache.lucene.util Some utility classes. -
-
Uses of AttributeFactory in org.apache.lucene.analysis
Fields in org.apache.lucene.analysis declared as AttributeFactory Modifier and Type Field Description static AttributeFactory
TokenStream. DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DefaultAttributeFactory
instance that should be used for TokenStreams.Methods in org.apache.lucene.analysis that return AttributeFactory Modifier and Type Method Description protected AttributeFactory
Analyzer. attributeFactory(java.lang.String fieldName)
protected AttributeFactory
AnalyzerWrapper. attributeFactory(java.lang.String fieldName)
Constructors in org.apache.lucene.analysis with parameters of type AttributeFactory Constructor Description StringTokenStream(AttributeFactory attributeFactory, java.lang.String value, int length)
Tokenizer(AttributeFactory factory)
Construct a tokenizer with no input, awaiting a call toTokenizer.setReader(java.io.Reader)
to provide input.TokenStream(AttributeFactory factory)
A TokenStream using the supplied AttributeFactory for creating newAttribute
instances. -
Uses of AttributeFactory in org.apache.lucene.analysis.cn.smart
Methods in org.apache.lucene.analysis.cn.smart with parameters of type AttributeFactory Modifier and Type Method Description Tokenizer
HMMChineseTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.cn.smart with parameters of type AttributeFactory Constructor Description HMMChineseTokenizer(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 AttributeFactory Modifier and Type Method Description KeywordTokenizer
KeywordTokenizerFactory. create(AttributeFactory factory)
LetterTokenizer
LetterTokenizerFactory. create(AttributeFactory factory)
Tokenizer
WhitespaceTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.core with parameters of type AttributeFactory Constructor Description KeywordTokenizer(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
.UnicodeWhitespaceTokenizer(AttributeFactory factory)
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.icu.segmentation
Methods in org.apache.lucene.analysis.icu.segmentation with parameters of type AttributeFactory Modifier and Type Method Description ICUTokenizer
ICUTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.icu.segmentation with parameters of type AttributeFactory Constructor Description ICUTokenizer(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 AttributeFactory Modifier and Type Method Description JapaneseTokenizer
JapaneseTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.ja with parameters of type AttributeFactory Constructor Description JapaneseTokenizer(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 AttributeFactory Modifier and Type Method Description KoreanTokenizer
KoreanTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.ko with parameters of type AttributeFactory Constructor Description KoreanTokenizer(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 AttributeFactory Modifier and Type Method Description Tokenizer
EdgeNGramTokenizerFactory. create(AttributeFactory factory)
Tokenizer
NGramTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.ngram with parameters of type AttributeFactory Constructor Description EdgeNGramTokenizer(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.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 AttributeFactory Modifier and Type Method Description Tokenizer
PathHierarchyTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.path with parameters of type AttributeFactory Constructor Description PathHierarchyTokenizer(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 AttributeFactory Modifier and Type Method Description PatternTokenizer
PatternTokenizerFactory. create(AttributeFactory factory)
Split the input using configured patternSimplePatternSplitTokenizer
SimplePatternSplitTokenizerFactory. create(AttributeFactory factory)
SimplePatternTokenizer
SimplePatternTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.pattern with parameters of type AttributeFactory Constructor Description PatternTokenizer(AttributeFactory factory, java.util.regex.Pattern pattern, int group)
creates a new PatternTokenizer returning tokens from group (-1 for split functionality)SimplePatternSplitTokenizer(AttributeFactory factory, java.lang.String regexp, int maxDeterminizedStates)
SeeRegExp
for the accepted syntax.SimplePatternSplitTokenizer(AttributeFactory factory, Automaton dfa)
Runs a pre-built automaton.SimplePatternTokenizer(AttributeFactory factory, java.lang.String regexp, int maxDeterminizedStates)
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 AttributeFactory Modifier and Type Method Description ClassicTokenizer
ClassicTokenizerFactory. create(AttributeFactory factory)
StandardTokenizer
StandardTokenizerFactory. create(AttributeFactory factory)
UAX29URLEmailTokenizer
UAX29URLEmailTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.standard with parameters of type AttributeFactory Constructor Description ClassicTokenizer(AttributeFactory factory)
Creates a new ClassicTokenizer with a givenAttributeFactory
StandardTokenizer(AttributeFactory factory)
Creates a new StandardTokenizer with a givenAttributeFactory
UAX29URLEmailTokenizer(AttributeFactory factory)
Creates a new UAX29URLEmailTokenizer with a givenAttributeFactory
-
Uses of AttributeFactory in org.apache.lucene.analysis.th
Methods in org.apache.lucene.analysis.th with parameters of type AttributeFactory Modifier and Type Method Description Tokenizer
ThaiTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.th with parameters of type AttributeFactory Constructor Description ThaiTokenizer(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 AttributeFactory Modifier and Type Method Description abstract Tokenizer
TokenizerFactory. create(AttributeFactory factory)
Creates a TokenStream of the specified input using the given AttributeFactorystatic CharTokenizer
CharTokenizer. fromSeparatorCharPredicate(AttributeFactory factory, java.util.function.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, java.util.function.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 AttributeFactory Constructor Description CharTokenizer(AttributeFactory factory)
Creates a newCharTokenizer
instanceCharTokenizer(AttributeFactory factory, int maxTokenLen)
Creates a newCharTokenizer
instanceSegmentingTokenizerBase(AttributeFactory factory, java.text.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 AttributeFactory Modifier and Type Method Description WikipediaTokenizer
WikipediaTokenizerFactory. create(AttributeFactory factory)
Constructors in org.apache.lucene.analysis.wikipedia with parameters of type AttributeFactory Constructor Description WikipediaTokenizer(AttributeFactory factory, int tokenOutput, java.util.Set<java.lang.String> untokenizedTypes)
Creates a new instance of theWikipediaTokenizer
. -
Uses of AttributeFactory in org.apache.lucene.collation
Subclasses of AttributeFactory in org.apache.lucene.collation Modifier and Type Class Description class
CollationAttributeFactory
Converts each token into itsCollationKey
, and then encodes the bytes as an index term.class
ICUCollationAttributeFactory
Converts each token into itsCollationKey
, and then encodes bytes as an index term.Methods in org.apache.lucene.collation that return AttributeFactory Modifier and Type Method Description protected AttributeFactory
CollationKeyAnalyzer. attributeFactory(java.lang.String fieldName)
Constructors in org.apache.lucene.collation with parameters of type AttributeFactory Constructor Description CollationAttributeFactory(AttributeFactory delegate, java.text.Collator collator)
Create a CollationAttributeFactory, using the supplied Attribute Factory as the factory for all other attributes.ICUCollationAttributeFactory(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.util
Subclasses of AttributeFactory in org.apache.lucene.util Modifier and Type Class Description private static class
AttributeFactory.DefaultAttributeFactory
static class
AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
Expert: AttributeFactory returning an instance of the givenclazz
for the attributes it implements.Fields in org.apache.lucene.util declared as AttributeFactory Modifier and Type Field Description static 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 AttributeFactory
AttributeFactory.StaticImplementationAttributeFactory. delegate
private AttributeFactory
AttributeSource. factory
Methods in org.apache.lucene.util that return AttributeFactory Modifier and Type Method Description AttributeFactory
AttributeSource. getAttributeFactory()
returns the used AttributeFactory.static <A extends AttributeImpl>
AttributeFactoryAttributeFactory. getStaticImplementation(AttributeFactory delegate, java.lang.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 AttributeFactory Modifier and Type Method Description static <A extends AttributeImpl>
AttributeFactoryAttributeFactory. getStaticImplementation(AttributeFactory delegate, java.lang.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 AttributeFactory Constructor Description AttributeSource(AttributeFactory factory)
An AttributeSource using the suppliedAttributeFactory
for creating newAttribute
instances.StaticImplementationAttributeFactory(AttributeFactory delegate, java.lang.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.
-