Uses of Class
org.apache.lucene.util.BytesRef
-
Packages that use BytesRef Package Description org.apache.lucene.analysis.synonym Analysis components for Synonyms.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.fst Finite-state based autosuggest.org.apache.lucene.util Some utility classes.org.apache.lucene.util.fst Finite state transducers -
-
Uses of BytesRef in org.apache.lucene.analysis.synonym
Fields in org.apache.lucene.analysis.synonym with type parameters of type BytesRef Modifier and Type Field Description FST<BytesRef>SynonymMap. fstmap>Constructor parameters in org.apache.lucene.analysis.synonym with type arguments of type BytesRef Constructor Description SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext) -
Uses of BytesRef in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell that return BytesRef Modifier and Type Method Description BytesRefTermFreqIterator.TermFreqIteratorWrapper. next()Methods in org.apache.lucene.search.spell that return types with arguments of type BytesRef Modifier and Type Method Description Comparator<BytesRef>TermFreqIterator.TermFreqIteratorWrapper. getComparator() -
Uses of BytesRef in org.apache.lucene.search.suggest
Methods in org.apache.lucene.search.suggest that return BytesRef Modifier and Type Method Description BytesRefBytesRefList. get(BytesRef spare, int ord)Returns the n'th element of thisBytesRefListBytesRefBufferingTermFreqIteratorWrapper. next()BytesRefSortedTermFreqIteratorWrapper. next()BytesRefUnsortedTermFreqIteratorWrapper. next()Methods in org.apache.lucene.search.suggest that return types with arguments of type BytesRef Modifier and Type Method Description Comparator<BytesRef>BufferingTermFreqIteratorWrapper. getComparator()Comparator<BytesRef>SortedTermFreqIteratorWrapper. getComparator()Methods in org.apache.lucene.search.suggest with parameters of type BytesRef Modifier and Type Method Description intBytesRefList. append(BytesRef bytes)Appends a copy of the givenBytesRefto thisBytesRefList.protected longSortedTermFreqIteratorWrapper. decode(BytesRef scratch, ByteArrayDataInput tmpInput)protected voidSortedTermFreqIteratorWrapper. encode(Sort.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, long weight)BytesRefBytesRefList. get(BytesRef spare, int ord)Returns the n'th element of thisBytesRefListMethod parameters in org.apache.lucene.search.suggest with type arguments of type BytesRef Modifier and Type Method Description BytesRefIteratorBytesRefList. iterator(Comparator<BytesRef> comp)Returns aBytesRefIteratorwith point in time semantics.Constructor parameters in org.apache.lucene.search.suggest with type arguments of type BytesRef Constructor Description SortedTermFreqIteratorWrapper(TermFreqIterator source, Comparator<BytesRef> comparator)SortedTermFreqIteratorWrapper(TermFreqIterator source, Comparator<BytesRef> comparator, boolean compareRawBytes) -
Uses of BytesRef in org.apache.lucene.search.suggest.fst
Fields in org.apache.lucene.search.suggest.fst declared as BytesRef Modifier and Type Field Description BytesRefFSTCompletion.Completion. utf8Fields in org.apache.lucene.search.suggest.fst with type parameters of type BytesRef Modifier and Type Field Description static Comparator<BytesRef>Sort. DEFAULT_COMPARATORMethods in org.apache.lucene.search.suggest.fst that return types with arguments of type BytesRef Modifier and Type Method Description Comparator<BytesRef>BytesRefSorter. getComparator()Comparator<BytesRef>ExternalRefSorter. getComparator()Comparator<BytesRef>InMemorySorter. getComparator()Comparator<BytesRef>Sort. getComparator()Methods in org.apache.lucene.search.suggest.fst with parameters of type BytesRef Modifier and Type Method Description voidBytesRefSorter. add(BytesRef utf8)Adds a single suggestion entry (possibly compound with its bucket).voidExternalRefSorter. add(BytesRef utf8)voidFSTCompletionBuilder. add(BytesRef utf8, int bucket)Appends a single suggestion and its weight to the internal buffers.voidInMemorySorter. add(BytesRef utf8)booleanSort.ByteSequencesReader. read(BytesRef ref)Reads the next entry into the providedBytesRef.voidSort.ByteSequencesWriter. write(BytesRef ref)Constructor parameters in org.apache.lucene.search.suggest.fst with type arguments of type BytesRef Constructor Description InMemorySorter(Comparator<BytesRef> comparator)Sort(Comparator<BytesRef> comparator)Sort(Comparator<BytesRef> comparator, Sort.BufferSize ramBufferSize, File tempDirectory, int maxTempfiles)All-details constructor. -
Uses of BytesRef in org.apache.lucene.util
Methods in org.apache.lucene.util that return BytesRef Modifier and Type Method Description BytesRefBytesRef. clone()BytesRefByteBlockPool. copyFrom(BytesRef bytes)static BytesRefBytesRef. deepCopyOf(BytesRef other)Creates a new BytesRef that points to a copy of the bytes fromotherBytesRefPagedBytes.Reader. fill(BytesRef b, long start)Reads length as 1 or 2 byte vInt prefix, starting at start.BytesRefPagedBytes.Reader. fillSlice(BytesRef b, long start, int length)Gets a slice out ofPagedBytesstarting at start with a given length.BytesRefPagedBytes.Reader. fillSliceWithPrefix(BytesRef b, long start)Gets a slice out ofPagedBytesstarting at start, the length is read as 1 or 2 byte vInt prefix.BytesRefBytesRefHash. get(int ord, BytesRef ref)Populates and returns aBytesRefwith the bytes for the given ord.BytesRefBytesRefIterator. next()Increments the iteration to the nextBytesRefin the iterator.BytesRefByteBlockPool. setBytesRef(BytesRef term, int textStart)Methods in org.apache.lucene.util that return types with arguments of type BytesRef Modifier and Type Method Description Comparator<BytesRef>BytesRefIterator. getComparator()Return theBytesRefComparator used to sort terms provided by the iterator.static Comparator<BytesRef>BytesRef. getUTF8SortedAsUnicodeComparator()static Comparator<BytesRef>BytesRef. getUTF8SortedAsUTF16Comparator()Methods in org.apache.lucene.util with parameters of type BytesRef Modifier and Type Method Description intBytesRefHash. add(BytesRef bytes)Adds a newBytesRefintBytesRefHash. add(BytesRef bytes, int code)Adds a newBytesRefwith a pre-calculated hash code.voidBytesRef. append(BytesRef other)Appends the bytes from the givenBytesRefbooleanBytesRef. bytesEquals(BytesRef other)Expert: compares the bytes against another BytesRef, returning true if the bytes are equal.static CharSequence_TestUtil. bytesToCharSequence(BytesRef ref, Random random)intBytesRef. compareTo(BytesRef other)Unsigned byte order comparisonvoidByteBlockPool. copy(BytesRef bytes)Copies the givenBytesRefat the current positions (ByteBlockPool.byteUptoacross buffer boundariesvoidPagedBytes. copy(BytesRef bytes)Copy BytesRef invoidPagedBytes. copy(BytesRef bytes, BytesRef out)Copy BytesRef in, setting BytesRef out to the result.voidBytesRef. copyBytes(BytesRef other)Copies the bytes from the givenBytesRefBytesRefByteBlockPool. copyFrom(BytesRef bytes)longPagedBytes. copyUsingLengthPrefix(BytesRef bytes)Copy bytes in, writing the length as a 1 or 2 byte vInt prefix.static BytesRefBytesRef. deepCopyOf(BytesRef other)Creates a new BytesRef that points to a copy of the bytes fromotherbooleanBytesRef. endsWith(BytesRef other)BytesRefPagedBytes.Reader. fill(BytesRef b, long start)Reads length as 1 or 2 byte vInt prefix, starting at start.intPagedBytes.Reader. fillAndGetIndex(BytesRef b, long start)Reads length as 1 or 2 byte vInt prefix, starting at start.longPagedBytes.Reader. fillAndGetStart(BytesRef b, long start)Reads length as 1 or 2 byte vInt prefix, starting at start and returns the start offset of the next part, suitable as start parameter on next call to sequentially read allBytesRef.BytesRefPagedBytes.Reader. fillSlice(BytesRef b, long start, int length)Gets a slice out ofPagedBytesstarting at start with a given length.BytesRefPagedBytes.Reader. fillSliceWithPrefix(BytesRef b, long start)Gets a slice out ofPagedBytesstarting at start, the length is read as 1 or 2 byte vInt prefix.BytesRefBytesRefHash. get(int ord, BytesRef ref)Populates and returns aBytesRefwith the bytes for the given ord.BytesRefByteBlockPool. setBytesRef(BytesRef term, int textStart)booleanBytesRef. startsWith(BytesRef other)static voidUnicodeUtil. UTF16toUTF8(char[] source, int offset, int length, BytesRef result)Encode characters from a char[] source, starting at offset for length chars.static voidUnicodeUtil. UTF16toUTF8(CharSequence s, int offset, int length, BytesRef result)Encode characters from this String, starting at offset for length characters.static intUnicodeUtil. UTF16toUTF8WithHash(char[] source, int offset, int length, BytesRef result)Encode characters from a char[] source, starting at offset for length chars.static voidUnicodeUtil. UTF8toUTF16(BytesRef bytesRef, CharsRef chars)Utility method forUnicodeUtil.UTF8toUTF16(byte[], int, int, CharsRef)Method parameters in org.apache.lucene.util with type arguments of type BytesRef Modifier and Type Method Description int[]BytesRefHash. sort(Comparator<BytesRef> comp)Returns the values array sorted by the referenced byte values. -
Uses of BytesRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as BytesRef Modifier and Type Field Description BytesRefBytesRefFSTEnum.InputOutput. inputMethods in org.apache.lucene.util.fst that return BytesRef Modifier and Type Method Description BytesRefByteSequenceOutputs. add(BytesRef prefix, BytesRef output)BytesRefByteSequenceOutputs. common(BytesRef output1, BytesRef output2)BytesRefByteSequenceOutputs. getNoOutput()BytesRefByteSequenceOutputs. read(DataInput in)BytesRefByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)static BytesRefUtil. toBytesRef(IntsRef input, BytesRef scratch)Just converts IntsRef to BytesRef; you must ensure the int values fit into a byte.Methods in org.apache.lucene.util.fst with parameters of type BytesRef Modifier and Type Method Description BytesRefByteSequenceOutputs. add(BytesRef prefix, BytesRef output)BytesRefByteSequenceOutputs. common(BytesRef output1, BytesRef output2)static <T> TUtil. get(FST<T> fst, BytesRef input)Looks up the output for this input, or null if the input is not acceptedStringByteSequenceOutputs. outputToString(BytesRef output)BytesRefFSTEnum.InputOutput<T>BytesRefFSTEnum. seekCeil(BytesRef target)Seeks to smallest term that's >= target.BytesRefFSTEnum.InputOutput<T>BytesRefFSTEnum. seekExact(BytesRef target)Seeks to exactly this term, returning null if the term doesn't exist.BytesRefFSTEnum.InputOutput<T>BytesRefFSTEnum. seekFloor(BytesRef target)Seeks to biggest term that's <= target.BytesRefByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)static BytesRefUtil. toBytesRef(IntsRef input, BytesRef scratch)Just converts IntsRef to BytesRef; you must ensure the int values fit into a byte.static IntsRefUtil. toIntsRef(BytesRef input, IntsRef scratch)Just takes unsigned byte values from the BytesRef and converts into an IntsRef.voidByteSequenceOutputs. write(BytesRef prefix, DataOutput out)
-