Uses of Class
org.apache.lucene.util.IntsRef
-
Packages that use IntsRef Package Description org.apache.lucene.analysis.hunspell A Java implementation of Hunspell stemming and spell-checking algorithms (Hunspell
), and a stemming TokenFilter (HunspellStemFilter
) based on it.org.apache.lucene.analysis.ja Analyzer for Japanese.org.apache.lucene.analysis.ja.dict Kuromoji dictionary implementation.org.apache.lucene.analysis.ko Analyzer for Korean.org.apache.lucene.analysis.ko.dict Korean dictionary implementation.org.apache.lucene.codecs.blocktreeords Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc.index Misc index tools and index support.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.util Some utility classes.org.apache.lucene.util.automaton Finite-state automaton for regular expressions.org.apache.lucene.util.bkd Block KD-tree, implementing the generic spatial data structure described in this paper.org.apache.lucene.util.fst Finite state transducersorg.apache.lucene.util.graph Utility classes for working with token streams as graphs. -
-
Uses of IntsRef in org.apache.lucene.analysis.hunspell
Fields in org.apache.lucene.analysis.hunspell declared as IntsRef Modifier and Type Field Description private IntsRef
WordStorage.LazyFormReader. forms
Fields in org.apache.lucene.analysis.hunspell with type parameters of type IntsRef Modifier and Type Field Description (package private) FST<IntsRef>
Dictionary. prefixes
(package private) FST<IntsRef>
Dictionary. suffixes
Methods in org.apache.lucene.analysis.hunspell that return IntsRef Modifier and Type Method Description IntsRef
WordStorage.LazyFormReader. get()
private IntsRef
Dictionary. lookup(FST<IntsRef> fst, char[] word)
(package private) IntsRef
Dictionary. lookupPrefix(char[] word)
(package private) IntsRef
Dictionary. lookupSuffix(char[] word)
(package private) IntsRef
Dictionary. lookupWord(char[] word, int offset, int length)
Looks up Hunspell word forms from the dictionary(package private) IntsRef
WordStorage. lookupWord(char[] word, int offset, int length)
(package private) static IntsRef
Dictionary. nextArc(FST<IntsRef> fst, FST.Arc<IntsRef> arc, FST.BytesReader reader, IntsRef output, int ch)
Methods in org.apache.lucene.analysis.hunspell that return types with arguments of type IntsRef Modifier and Type Method Description private FST<IntsRef>
Dictionary. affixFST(java.util.TreeMap<java.lang.String,IntArrayList> affixes)
Methods in org.apache.lucene.analysis.hunspell with parameters of type IntsRef Modifier and Type Method Description (package private) boolean
Dictionary. hasFlag(IntsRef forms, char flag)
private int
Stemmer. morphDataId(IntsRef forms, int i)
(package private) static IntsRef
Dictionary. nextArc(FST<IntsRef> fst, FST.Arc<IntsRef> arc, FST.BytesReader reader, IntsRef output, int ch)
private void
GeneratingSuggester. processAffixIds(int affixLength, IntsRef affixIds, GeneratingSuggester.AffixProcessor processor)
private void
WordStorage. readForms(IntsRef forms, ByteArrayDataInput in, int length)
private java.lang.String
WordFormGenerator. toString(AffixKind kind, IntsRef input)
Method parameters in org.apache.lucene.analysis.hunspell with type arguments of type IntsRef Modifier and Type Method Description private boolean
Hunspell. checkCompoundRules(char[] wordChars, int offset, int length, java.util.List<IntsRef> words)
private boolean
Hunspell. checkLastCompoundPart(char[] wordChars, int start, int length, java.util.List<IntsRef> words)
private void
WordFormGenerator. fillAffixMap(FST<IntsRef> fst, AffixKind kind)
(package private) boolean
CompoundRule. fullyMatches(java.util.List<IntsRef> words)
private IntsRef
Dictionary. lookup(FST<IntsRef> fst, char[] word)
private boolean
CompoundRule. match(java.util.List<IntsRef> words, int patternIndex, int wordIndex, boolean fully)
private boolean
Hunspell. mayHaveCompoundRule(java.util.List<IntsRef> words)
(package private) boolean
CompoundRule. mayMatch(java.util.List<IntsRef> words)
(package private) static IntsRef
Dictionary. nextArc(FST<IntsRef> fst, FST.Arc<IntsRef> arc, FST.BytesReader reader, IntsRef output, int ch)
(package private) static IntsRef
Dictionary. nextArc(FST<IntsRef> fst, FST.Arc<IntsRef> arc, FST.BytesReader reader, IntsRef output, int ch)
(package private) void
WordStorage. processAllWords(int minLength, int maxLength, boolean suggestibleOnly, java.util.function.BiConsumer<CharsRef,java.util.function.Supplier<IntsRef>> processor)
private void
GeneratingSuggester. processSuggestibleWords(int minLength, int maxLength, java.util.function.BiConsumer<CharsRef,java.util.function.Supplier<IntsRef>> processor)
(package private) void
SuggestibleEntryCache. processSuggestibleWords(int minLength, int maxLength, java.util.function.BiConsumer<CharsRef,java.util.function.Supplier<IntsRef>> processor)
(package private) void
WordStorage. processSuggestibleWords(int minLength, int maxLength, java.util.function.BiConsumer<CharsRef,java.util.function.Supplier<IntsRef>> processor)
Calls the processor for every dictionary entry with length between minLength and maxLength, both ends inclusive, and at least one suggestible alternative (without NOSUGGEST, FORBIDDENWORD or ONLYINCOMPOUND flags). -
Uses of IntsRef in org.apache.lucene.analysis.ja
Fields in org.apache.lucene.analysis.ja declared as IntsRef Modifier and Type Field Description private IntsRef
JapaneseTokenizer. wordIdRef
-
Uses of IntsRef in org.apache.lucene.analysis.ja.dict
Methods in org.apache.lucene.analysis.ja.dict with parameters of type IntsRef Modifier and Type Method Description void
BinaryDictionary. lookupWordIds(int sourceId, IntsRef ref)
-
Uses of IntsRef in org.apache.lucene.analysis.ko
Fields in org.apache.lucene.analysis.ko declared as IntsRef Modifier and Type Field Description private IntsRef
KoreanTokenizer. wordIdRef
-
Uses of IntsRef in org.apache.lucene.analysis.ko.dict
Methods in org.apache.lucene.analysis.ko.dict with parameters of type IntsRef Modifier and Type Method Description void
BinaryDictionary. lookupWordIds(int sourceId, IntsRef ref)
-
Uses of IntsRef in org.apache.lucene.codecs.blocktreeords
Fields in org.apache.lucene.codecs.blocktreeords declared as IntsRef Modifier and Type Field Description IntsRef
OrdsSegmentTermsEnum.InputOutput. input
-
Uses of IntsRef in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type IntsRef Modifier and Type Method Description default void
PointValues.IntersectVisitor. visit(IntsRef ref)
Similar toPointValues.IntersectVisitor.visit(int)
, but a bulk visit and implements may have their optimizations. -
Uses of IntsRef in org.apache.lucene.misc.index
Fields in org.apache.lucene.misc.index declared as IntsRef Modifier and Type Field Description private IntsRef
BPIndexReorderer.ForwardIndex. bufferRef
private IntsRef
BPIndexReorderer.IndexReorderingTask. docIDs
Methods in org.apache.lucene.misc.index that return IntsRef Modifier and Type Method Description (package private) IntsRef
BPIndexReorderer.ForwardIndex. nextTerms()
Methods in org.apache.lucene.misc.index with parameters of type IntsRef Modifier and Type Method Description private void
BPIndexReorderer.IndexReorderingTask. computeDocFreqs(IntsRef docs, BPIndexReorderer.ForwardIndex forwardIndex, int[] docFreqs)
private boolean
BPIndexReorderer.IndexReorderingTask. shuffle(BPIndexReorderer.ForwardIndex forwardIndex, IntsRef docIDs, int midPoint, int[] leftDocFreqs, int[] rightDocFreqs, float[] biases, BitSet parents, int iter)
Shuffle doc IDs across both partitions so that each partition has lower gaps between consecutive postings.private static boolean
BPIndexReorderer. sorted(IntsRef intsRef)
Returns true if, and only if, the givenIntsRef
is sorted.Constructors in org.apache.lucene.misc.index with parameters of type IntsRef Constructor Description IndexReorderingTask(IntsRef docIDs, float[] biases, CloseableThreadLocal<BPIndexReorderer.PerThreadState> threadLocal, BitSet parents, int depth)
-
Uses of IntsRef in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell that return IntsRef Modifier and Type Method Description private static IntsRef
LuceneLevenshteinDistance. toIntsRef(java.lang.String s)
-
Uses of IntsRef in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document with type parameters of type IntsRef Modifier and Type Field Description private java.util.Map<IntsRef,java.lang.Float>
ContextQuery.ContextCompletionWeight. contextMap
private java.util.Map<IntsRef,ContextQuery.ContextMetaData>
ContextQuery. contexts
private java.util.Set<IntsRef>
FuzzyCompletionQuery.FuzzyCompletionWeight. refs
Methods in org.apache.lucene.search.suggest.document with parameters of type IntsRef Modifier and Type Method Description private void
ContextQuery.ContextCompletionWeight. setInnerWeight(IntsRef ref, int offset)
protected void
CompletionWeight. setNextMatch(IntsRef pathPrefix)
Set for every partial path in the index that matched the query automaton.protected void
ContextQuery.ContextCompletionWeight. setNextMatch(IntsRef pathPrefix)
protected void
FuzzyCompletionQuery.FuzzyCompletionWeight. setNextMatch(IntsRef pathPrefix)
Method parameters in org.apache.lucene.search.suggest.document with type arguments of type IntsRef Modifier and Type Method Description private static Automaton
ContextQuery. toContextAutomaton(java.util.Map<IntsRef,ContextQuery.ContextMetaData> contexts, boolean matchAllContexts)
private Automaton
FuzzyCompletionQuery. toLevenshteinAutomata(Automaton automaton, java.util.Set<IntsRef> refs)
Constructor parameters in org.apache.lucene.search.suggest.document with type arguments of type IntsRef Constructor Description ContextCompletionWeight(CompletionQuery query, Automaton automaton, CompletionWeight innerWeight, java.util.Map<IntsRef,java.lang.Float> contextMap, int[] contextLengths)
FuzzyCompletionWeight(CompletionQuery query, Automaton automaton, java.util.Set<IntsRef> refs)
-
Uses of IntsRef in org.apache.lucene.util
Fields in org.apache.lucene.util declared as IntsRef Modifier and Type Field Description private IntsRef
IntsRefBuilder. ref
Methods in org.apache.lucene.util that return IntsRef Modifier and Type Method Description IntsRef
IntsRef. clone()
Returns a shallow clone of this instance (the underlying ints are not copied and will be shared by both the returned object and this object.static IntsRef
IntsRef. deepCopyOf(IntsRef other)
Creates a new IntsRef that points to a copy of the ints fromother
IntsRef
IntsRefBuilder. get()
Return aIntsRef
that points to the internal content of this builder.IntsRef
IntsRefBuilder. toIntsRef()
Build a newCharsRef
that has the same content as this builder.Methods in org.apache.lucene.util with parameters of type IntsRef Modifier and Type Method Description int
IntsRef. compareTo(IntsRef other)
Signed int order comparisonvoid
IntsRefBuilder. copyInts(IntsRef ints)
Copies the given array into this instance.static IntsRef
IntsRef. deepCopyOf(IntsRef other)
Creates a new IntsRef that points to a copy of the ints fromother
boolean
IntsRef. intsEquals(IntsRef other)
static BytesRef
StringHelper. intsRefToBytesRef(IntsRef ints)
-
Uses of IntsRef in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as IntsRef Modifier and Type Field Description private static IntsRef
FiniteStringsIterator. EMPTY
Empty string.Methods in org.apache.lucene.util.automaton that return IntsRef Modifier and Type Method Description static IntsRef
Operations. getSingleton(Automaton a)
If this automaton accepts a single input, return it.IntsRef
FiniteStringsIterator. next()
Generate next finite string.IntsRef
LimitedFiniteStringsIterator. next()
Methods in org.apache.lucene.util.automaton with parameters of type IntsRef Modifier and Type Method Description static boolean
Operations. run(Automaton a, IntsRef s)
Returns true if the given string (expressed as unicode codepoints) is accepted by the automaton. -
Uses of IntsRef in org.apache.lucene.util.bkd
Fields in org.apache.lucene.util.bkd declared as IntsRef Modifier and Type Field Description private IntsRef
DocIdsWriter. scratchIntsRef
IntsRef to be used to iterate over the scratch buffer. -
Uses of IntsRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as IntsRef Modifier and Type Field Description private IntsRef
IntsRefFSTEnum. current
IntsRef
IntsRefFSTEnum.InputOutput. input
IntsRef
Util.Result. input
private static IntsRef
IntSequenceOutputs. NO_OUTPUT
private IntsRef
IntsRefFSTEnum. target
Methods in org.apache.lucene.util.fst that return IntsRef Modifier and Type Method Description IntsRef
IntSequenceOutputs. add(IntsRef prefix, IntsRef output)
IntsRef
IntSequenceOutputs. common(IntsRef output1, IntsRef output2)
IntsRef
IntSequenceOutputs. getNoOutput()
IntsRef
IntSequenceOutputs. read(DataInput in)
IntsRef
IntSequenceOutputs. subtract(IntsRef output, IntsRef inc)
static IntsRef
Util. toIntsRef(BytesRef input, IntsRefBuilder scratch)
Just takes unsigned byte values from the BytesRef and converts into an IntsRef.static IntsRef
Util. toUTF16(java.lang.CharSequence s, IntsRefBuilder scratch)
Just maps each UTF16 unit (char) to the ints in an IntsRef.static IntsRef
Util. toUTF32(char[] s, int offset, int length, IntsRefBuilder scratch)
Decodes the Unicode codepoints from the provided char[] and places them in the provided scratch IntsRef, which must not be null, returning it.static IntsRef
Util. toUTF32(java.lang.CharSequence s, IntsRefBuilder scratch)
Decodes the Unicode codepoints from the provided CharSequence and places them in the provided scratch IntsRef, which must not be null, returning it.Methods in org.apache.lucene.util.fst with parameters of type IntsRef Modifier and Type Method Description protected boolean
Util.TopNSearcher. acceptResult(IntsRef input, T output)
void
FSTCompiler. add(IntsRef input, T output)
Add the next input/output pair.IntsRef
IntSequenceOutputs. add(IntsRef prefix, IntsRef output)
IntsRef
IntSequenceOutputs. common(IntsRef output1, IntsRef output2)
static <T> T
Util. get(FST<T> fst, IntsRef input)
Looks up the output for this input, or null if the input is not accepted.java.lang.String
IntSequenceOutputs. outputToString(IntsRef output)
long
IntSequenceOutputs. ramBytesUsed(IntsRef output)
IntsRefFSTEnum.InputOutput<T>
IntsRefFSTEnum. seekCeil(IntsRef target)
Seeks to smallest term that's >= target.IntsRefFSTEnum.InputOutput<T>
IntsRefFSTEnum. seekExact(IntsRef target)
Seeks to exactly this term, returning null if the term doesn't exist.IntsRefFSTEnum.InputOutput<T>
IntsRefFSTEnum. seekFloor(IntsRef target)
Seeks to biggest term that's <= target.IntsRef
IntSequenceOutputs. subtract(IntsRef output, IntsRef inc)
static BytesRef
Util. toBytesRef(IntsRef input, BytesRefBuilder scratch)
Just converts IntsRef to BytesRef; you must ensure the int values fit into a byte.void
IntSequenceOutputs. write(IntsRef prefix, DataOutput out)
Constructors in org.apache.lucene.util.fst with parameters of type IntsRef Constructor Description Result(IntsRef input, T output)
-
Uses of IntsRef in org.apache.lucene.util.graph
Fields in org.apache.lucene.util.graph declared as IntsRef Modifier and Type Field Description private IntsRef
GraphTokenStreamFiniteStrings.FiniteStringsTokenStream. ids
Constructors in org.apache.lucene.util.graph with parameters of type IntsRef Constructor Description FiniteStringsTokenStream(IntsRef ids)
-