Uses of Class
org.apache.lucene.util.BytesRef
Packages that use BytesRef
Package
Description
Text analysis.
General-purpose attributes for text analysis.
Codecs API: API for customization of the encoding and structure of the index.
Compressing helper classes.
Lucene 9.0 file format.
BlockTree terms dictionary.
Lucene 9.0 compressing format.
The logical representation of a
Document
for indexing and
searching.Code to maintain and access indices.
Code to search indices.
Some utility classes.
Finite-state automaton for regular expressions.
Block KD-tree, implementing the generic spatial data structure described in this paper.
Finite state transducers
-
Uses of BytesRef in org.apache.lucene.analysis
Methods in org.apache.lucene.analysis that return BytesRefModifier and TypeMethodDescriptionprotected BytesRef
TokenStreamToAutomaton.changeToken
(BytesRef in) Subclass and implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph.final BytesRef
Normalize a string down to the representation that it would have in the index.Methods in org.apache.lucene.analysis with parameters of type BytesRefModifier and TypeMethodDescriptionprotected BytesRef
TokenStreamToAutomaton.changeToken
(BytesRef in) Subclass and implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph. -
Uses of BytesRef in org.apache.lucene.analysis.tokenattributes
Methods in org.apache.lucene.analysis.tokenattributes that return BytesRefModifier and TypeMethodDescriptionBytesTermAttributeImpl.getBytesRef()
CharTermAttributeImpl.getBytesRef()
TermToBytesRefAttribute.getBytesRef()
Retrieve this attribute's BytesRef.PayloadAttribute.getPayload()
Returns this Token's payload.PayloadAttributeImpl.getPayload()
Methods in org.apache.lucene.analysis.tokenattributes with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
BytesTermAttribute.setBytesRef
(BytesRef bytes) Sets theBytesRef
of the termvoid
BytesTermAttributeImpl.setBytesRef
(BytesRef bytes) void
PayloadAttribute.setPayload
(BytesRef payload) Sets this Token's payload.void
PayloadAttributeImpl.setPayload
(BytesRef payload) Constructors in org.apache.lucene.analysis.tokenattributes with parameters of type BytesRefModifierConstructorDescriptionPayloadAttributeImpl
(BytesRef payload) Initialize this attribute with the given payload. -
Uses of BytesRef in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return BytesRefMethods in org.apache.lucene.codecs with parameters of type BytesRefModifier and TypeMethodDescriptionabstract void
PushPostingsWriterBase.addPosition
(int position, BytesRef payload, int startOffset, int endOffset) Add a new position and payload, and start/end offset.abstract void
TermVectorsWriter.addPosition
(int position, int startOffset, int endOffset, BytesRef payload) Adds a term position and offsetsabstract void
SetpackedValue
with a reference to the packed bytes of the i-th value.abstract void
Adds a term and its term frequencyfreq
.abstract BlockTermState
PostingsWriterBase.writeTerm
(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) Write all postings for one term; use the providedTermsEnum
to pull aPostingsEnum
.final BlockTermState
PushPostingsWriterBase.writeTerm
(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) -
Uses of BytesRef in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionabstract void
Decompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) Decompress bytes that were stored between offsetsoffset
andoffset+length
in the original stream from the compressed streamin
tobytes
. -
Uses of BytesRef in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Lucene90PostingsWriter.addPosition
(int position, BytesRef payload, int startOffset, int endOffset) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.blocktree
Methods in org.apache.lucene.codecs.lucene90.blocktree that return BytesRefMethods in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRefModifier and TypeMethodDescriptionFieldReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.compressing
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Lucene90CompressingTermVectorsWriter.addPosition
(int position, int startOffset, int endOffset, BytesRef payload) void
-
Uses of BytesRef in org.apache.lucene.document
Methods in org.apache.lucene.document that return BytesRefModifier and TypeMethodDescriptionField.binaryValue()
final BytesRef
Document.getBinaryValue
(String name) Returns an array of bytes for the first (or only) field that has the name specified as the method parameter.final BytesRef[]
Document.getBinaryValues
(String name) Returns an array of byte arrays for of the fields that have the name specified as the method parameter.static BytesRef
DoublePoint.pack
(double... point) Pack a double point into a BytesRefstatic BytesRef
FloatPoint.pack
(float... point) Pack a float point into a BytesRefstatic BytesRef
IntPoint.pack
(int... point) Pack an integer point into a BytesRefstatic BytesRef
LongPoint.pack
(long... point) Pack a long point into a BytesRefMethods in org.apache.lucene.document with parameters of type BytesRefModifier and TypeMethodDescriptionstatic Query
SortedDocValuesField.newSlowExactQuery
(String field, BytesRef value) Create a query for matching an exactBytesRef
value.static Query
SortedSetDocValuesField.newSlowExactQuery
(String field, BytesRef value) Create a query for matching an exactBytesRef
value.static Query
SortedDocValuesField.newSlowRangeQuery
(String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive) Create a range query that matches all documents whose value is betweenlowerValue
andupperValue
included.static Query
SortedSetDocValuesField.newSlowRangeQuery
(String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive) Create a range query that matches all documents whose value is betweenlowerValue
andupperValue
.void
DoublePoint.setBytesValue
(BytesRef bytes) void
Field.setBytesValue
(BytesRef value) Expert: change the value of this field.void
FloatPoint.setBytesValue
(BytesRef bytes) void
InetAddressPoint.setBytesValue
(BytesRef bytes) void
IntPoint.setBytesValue
(BytesRef bytes) void
LongPoint.setBytesValue
(BytesRef bytes) Constructors in org.apache.lucene.document with parameters of type BytesRefModifierConstructorDescriptionBinaryDocValuesField
(String name, BytesRef value) Create a new binary DocValues field.Field
(String name, BytesRef bytes, IndexableFieldType type) Create field with binary value.SortedDocValuesField
(String name, BytesRef bytes) Create a new sorted DocValues field.SortedSetDocValuesField
(String name, BytesRef bytes) Create a new sorted DocValues field.StoredField
(String name, BytesRef value) Create a stored-only field with the given binary value.StoredField
(String name, BytesRef bytes, FieldType type) Expert: allows you to customize theFieldType
.StringField
(String name, BytesRef value, Field.Store stored) Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token. -
Uses of BytesRef in org.apache.lucene.index
Fields in org.apache.lucene.index declared as BytesRefModifier and TypeFieldDescriptionprotected BytesRef
FilteredTermsEnum.actualTerm
Which term the enum is currently positioned to.Methods in org.apache.lucene.index that return BytesRefModifier and TypeMethodDescriptionabstract BytesRef
BinaryDocValues.binaryValue()
Returns the binary value for the current document ID.FilterBinaryDocValues.binaryValue()
IndexableField.binaryValue()
Non-null if this field has a binary valueRandomAccessVectorValues.binaryValue
(int targetOrd) Return the vector indexed at the given ordinal value as an array of bytes in a BytesRef; these are the bytes corresponding to the float array.VectorValues.binaryValue()
Return the binary encoded vector value for the current document ID.final BytesRef
Term.bytes()
Returns the bytes of this term, these should not be modified.MultiTerms.getMax()
Terms.getMax()
Returns the largest term (in lexicographic order) in the field.MultiTerms.getMin()
Terms.getMin()
Returns the smallest term (in lexicographic order) in the field.FilterLeafReader.FilterPostingsEnum.getPayload()
MultiPostingsEnum.getPayload()
abstract BytesRef
PostingsEnum.getPayload()
Returns the payload at this position, or null if no payload was indexed.SlowImpactsEnum.getPayload()
FilterSortedDocValues.lookupOrd
(int ord) FilterSortedSetDocValues.lookupOrd
(long ord) MultiDocValues.MultiSortedDocValues.lookupOrd
(int ord) MultiDocValues.MultiSortedSetDocValues.lookupOrd
(long ord) abstract BytesRef
SortedDocValues.lookupOrd
(int ord) Retrieves the value for the specified ordinal.abstract BytesRef
SortedSetDocValues.lookupOrd
(long ord) Retrieves the value for the specified ordinal.ExitableDirectoryReader.ExitableTermsEnum.next()
FilteredTermsEnum.next()
FilterLeafReader.FilterTermsEnum.next()
MultiTermsEnum.next()
PrefixCodedTerms.TermIterator.next()
protected BytesRef
AutomatonTermsEnum.nextSeekTerm
(BytesRef term) protected BytesRef
FilteredTermsEnum.nextSeekTerm
(BytesRef currentTerm) On the first call toFilteredTermsEnum.next()
or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)
returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEK
orFilteredTermsEnum.AcceptStatus.NO_AND_SEEK
, this method will be called to eventually seek the underlying TermsEnum to a new position.FilteredTermsEnum.term()
FilterLeafReader.FilterTermsEnum.term()
MultiTermsEnum.term()
abstract BytesRef
TermsEnum.term()
Returns current term.Methods in org.apache.lucene.index with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatus
Returns true if the term matches the automaton.protected abstract FilteredTermsEnum.AcceptStatus
Return if term is accepted, not accepted or the iteration should ended (and possibly seek).protected FilteredTermsEnum.AcceptStatus
void
add a term.static PostingsEnum
MultiTerms.getTermPostingsEnum
(IndexReader r, String field, BytesRef term) ReturnsPostingsEnum
for the specified field and term.static PostingsEnum
MultiTerms.getTermPostingsEnum
(IndexReader r, String field, BytesRef term, int flags) ReturnsPostingsEnum
for the specified field and term, with control over whether freqs, positions, offsets or payloads are required.ExitableDirectoryReader.ExitableTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) MultiTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Terms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton
.int
FilterSortedDocValues.lookupTerm
(BytesRef key) long
FilterSortedSetDocValues.lookupTerm
(BytesRef key) int
SortedDocValues.lookupTerm
(BytesRef key) Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.long
SortedSetDocValues.lookupTerm
(BytesRef key) Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.protected BytesRef
AutomatonTermsEnum.nextSeekTerm
(BytesRef term) protected BytesRef
FilteredTermsEnum.nextSeekTerm
(BytesRef currentTerm) On the first call toFilteredTermsEnum.next()
or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)
returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEK
orFilteredTermsEnum.AcceptStatus.NO_AND_SEEK
, this method will be called to eventually seek the underlying TermsEnum to a new position.This enum does not support seeking!abstract TermsEnum.SeekStatus
Seeks to the specified term, if it exists, or to the next (ceiling) term.boolean
void
boolean
This enum does not support seeking!void
This enum does not support seeking!boolean
void
boolean
abstract boolean
Attempts to seek to the exact term, returning true if the term is found.abstract void
Expert: Seeks a specific position byTermState
previously obtained fromTermsEnum.termState()
.protected final void
FilteredTermsEnum.setInitialSeekTerm
(BytesRef term) Use this method to set the initialBytesRef
to seek before iterating.static final String
Returns human-readable form of the term text.long
IndexWriter.updateBinaryDocValue
(Term term, String field, BytesRef value) Constructors in org.apache.lucene.index with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.search
Methods in org.apache.lucene.search that return BytesRefModifier and TypeMethodDescriptionMaxNonCompetitiveBoostAttribute.getCompetitiveTerm()
This is the term ornull
of the term that triggered the boost change.MaxNonCompetitiveBoostAttributeImpl.getCompetitiveTerm()
TermRangeQuery.getLowerTerm()
Returns the lower value of this range queryMultiPhraseQuery.UnionFullPostingsEnum.getPayload()
MultiPhraseQuery.UnionPostingsEnum.getPayload()
TermRangeQuery.getUpperTerm()
Returns the upper value of this range queryFuzzyTermsEnum.next()
abstract BytesRef
PointInSetQuery.Stream.next()
FuzzyTermsEnum.term()
final BytesRef
TermStatistics.term()
The term text.FieldComparator.TermOrdValComparator.value
(int slot) FieldComparator.TermValComparator.value
(int slot) Methods in org.apache.lucene.search that return types with arguments of type BytesRefMethods in org.apache.lucene.search with parameters of type BytesRefModifier and TypeMethodDescriptionint
FieldComparator.TermOrdValComparator.compareValues
(BytesRef val1, BytesRef val2) int
FieldComparator.TermValComparator.compareValues
(BytesRef val1, BytesRef val2) boolean
void
void
MaxNonCompetitiveBoostAttribute.setCompetitiveTerm
(BytesRef competitiveTerm) This is the term ornull
of the term that triggered the boost change.void
MaxNonCompetitiveBoostAttributeImpl.setCompetitiveTerm
(BytesRef competitiveTerm) void
FieldComparator.TermOrdValComparator.setTopValue
(BytesRef value) void
FieldComparator.TermValComparator.setTopValue
(BytesRef value) static Automaton
PrefixQuery.toAutomaton
(BytesRef prefix) Build an automaton accepting all terms with the specified prefix.static Automaton
TermRangeQuery.toAutomaton
(BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) Method parameters in org.apache.lucene.search with type arguments of type BytesRefConstructors in org.apache.lucene.search with parameters of type BytesRefModifierConstructorDescriptionPhraseQuery
(int slop, String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions infield
, and at a maximum edit distance ofslop
.PhraseQuery
(String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions infield
.TermInSetQuery
(String field, BytesRef... terms) Creates a newTermInSetQuery
from the given array of terms.TermRangeQuery
(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) Constructs a query selecting all terms greater/equal thanlowerTerm
but less/equal thanupperTerm
.TermRangeQuery
(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query selecting all terms greater/equal thanlowerTerm
but less/equal thanupperTerm
.TermStatistics
(BytesRef term, long docFreq, long totalTermFreq) Creates statistics instance for a term.Constructor parameters in org.apache.lucene.search with type arguments of type BytesRefModifierConstructorDescriptionTermInSetQuery
(String field, Collection<BytesRef> terms) Creates a newTermInSetQuery
from the given collection of terms. -
Uses of BytesRef in org.apache.lucene.util
Fields in org.apache.lucene.util declared as BytesRefModifier and TypeFieldDescriptionstatic final BytesRef
UnicodeUtil.BIG_TERM
A binary term consisting of a number of 0xff bytes, likely to be bigger than other terms (e.g.Fields in org.apache.lucene.util with type parameters of type BytesRefModifier and TypeFieldDescriptionstatic final Comparator<BytesRef>
OfflineSorter.DEFAULT_COMPARATOR
Default comparator: sorts in binary (codepoint) orderMethods in org.apache.lucene.util that return BytesRefModifier and TypeMethodDescriptionBytesRef.clone()
Returns a shallow clone of this instance (the underlying bytes are not copied and will be shared by both the returned object and this object.static BytesRef
BytesRef.deepCopyOf
(BytesRef other) Creates a new BytesRef that points to a copy of the bytes fromother
BytesRefArray.get
(BytesRefBuilder spare, int index) Returns the n'th element of thisBytesRefArray
BytesRefBuilder.get()
Return aBytesRef
that points to the internal content of this builder.Populates and returns aBytesRef
with the bytes for the given bytesID.static BytesRef
StringHelper.intsRefToBytesRef
(IntsRef ints) BytesRefIterator.next()
Increments the iteration to the nextBytesRef
in the iterator.OfflineSorter.ByteSequencesReader.next()
Reads the next entry into the providedBytesRef
.BytesRefBuilder.toBytesRef()
Build a newBytesRef
that has the same content as this buffer.Methods in org.apache.lucene.util that return types with arguments of type BytesRefModifier and TypeMethodDescriptionOfflineSorter.getComparator()
Returns the comparator in use to sort entriesMethods in org.apache.lucene.util with parameters of type BytesRefModifier and TypeMethodDescriptionint
Adds a newBytesRef
void
Appends the bytes in the providedBytesRef
at the current position.int
Appends a copy of the givenBytesRef
to thisBytesRefArray
.void
Append the provided bytes to this builder.protected abstract int
Return the unsigned byte to use for comparison at indexi
, or-1
if all bytes that are useful for comparisons are exhausted.static int
StringHelper.bytesDifference
(BytesRef priorTerm, BytesRef currentTerm) Compares twoBytesRef
, element by element, and returns the number of elements common to both arrays (from the start of each).boolean
BytesRef.bytesEquals
(BytesRef other) Expert: compares the bytes against another BytesRef, returning true if the bytes are equal.static int
UnicodeUtil.codePointCount
(BytesRef utf8) Returns the number of code points in this UTF8 sequence.int
int
Unsigned byte order comparisonvoid
Copy BytesRef in, setting BytesRef out to the result.void
Replace the content of this builder with the provided bytes.long
PagedBytes.copyUsingLengthPrefix
(BytesRef bytes) Copy bytes in, writing the length as a 1 or 2 byte vInt prefix.void
CharsRefBuilder.copyUTF8Bytes
(BytesRef bytes) Copy the provided bytes, interpreted as UTF-8 bytes.void
IntsRefBuilder.copyUTF8Bytes
(BytesRef bytes) Copy the given UTF-8 bytes into this builder.static BytesRef
BytesRef.deepCopyOf
(BytesRef other) Creates a new BytesRef that points to a copy of the bytes fromother
static boolean
Returnstrue
iff the ref ends with the given suffix.void
Reads length as 1 or 2 byte vInt prefix, starting at start.void
Gets a slice out ofPagedBytes
starting at start with a given length.int
Returns the id of the givenBytesRef
.Populates and returns aBytesRef
with the bytes for the given bytesID.static int
StringHelper.murmurhash3_x86_32
(BytesRef bytes, int seed) void
ByteBlockPool.setBytesRef
(BytesRef term, int textStart) void
ByteBlockPool.setRawBytesRef
(BytesRef ref, long offset) static int
StringHelper.sortKeyLength
(BytesRef priorTerm, BytesRef currentTerm) Returns the length ofcurrentTerm
needed for use as a sort key.static boolean
StringHelper.startsWith
(byte[] ref, BytesRef prefix) Returnstrue
iff the ref starts with the given prefix.static boolean
StringHelper.startsWith
(BytesRef ref, BytesRef prefix) Returnstrue
iff the ref starts with the given prefix.static int
UnicodeUtil.UTF8toUTF16
(BytesRef bytesRef, char[] chars) Utility method forUnicodeUtil.UTF8toUTF16(byte[], int, int, char[])
static int
UnicodeUtil.UTF8toUTF32
(BytesRef utf8, int[] ints) This method assumes valid UTF8 input.final void
Writes a BytesRef.Method parameters in org.apache.lucene.util with type arguments of type BytesRefModifier and TypeMethodDescriptionBytesRefArray.iterator
(Comparator<BytesRef> comp) Returns aBytesRefIterator
with point in time semantics.BytesRefArray.sort
(Comparator<BytesRef> comp, IntBinaryOperator tieComparator) Returns aBytesRefArray.SortState
representing the order of elements in this array.Constructor parameters in org.apache.lucene.util with type arguments of type BytesRefModifierConstructorDescriptionOfflineSorter
(Directory dir, String tempFileNamePrefix, Comparator<BytesRef> comparator) Defaults constructor with a custom comparator.OfflineSorter
(Directory dir, String tempFileNamePrefix, Comparator<BytesRef> comparator, OfflineSorter.BufferSize ramBufferSize, int maxTempfiles, int valueLength, ExecutorService exec, int maxPartitionsInRAM) All-details constructor. -
Uses of BytesRef in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRef
CompiledAutomaton.commonSuffixRef
Shared common suffix accepted by the automaton.final BytesRef
CompiledAutomaton.term
ForCompiledAutomaton.AUTOMATON_TYPE.SINGLE
this is the singleton term.Methods in org.apache.lucene.util.automaton that return BytesRefModifier and TypeMethodDescriptionCompiledAutomaton.floor
(BytesRef input, BytesRefBuilder output) Finds largest term accepted by this Automaton, that's <= the provided input term.static BytesRef
Operations.getCommonPrefixBytesRef
(Automaton a) Returns the longest BytesRef that is a prefix of all accepted strings and visits each state at most once.static BytesRef
Operations.getCommonSuffixBytesRef
(Automaton a) Returns the longest BytesRef that is a suffix of all accepted strings.Methods in org.apache.lucene.util.automaton with parameters of type BytesRefModifier and TypeMethodDescriptionCompiledAutomaton.floor
(BytesRef input, BytesRefBuilder output) Finds largest term accepted by this Automaton, that's <= the provided input term.static Automaton
Automata.makeBinary
(BytesRef term) Returns a new (deterministic) automaton that accepts the single given binary term.static Automaton
Automata.makeBinaryInterval
(BytesRef min, boolean minInclusive, BytesRef max, boolean maxInclusive) Creates a new deterministic, minimal automaton accepting all binary terms in the specified interval.Method parameters in org.apache.lucene.util.automaton with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic Automaton
DaciukMihovAutomatonBuilder.build
(Collection<BytesRef> input) Build a minimal, deterministic automaton from a sorted list ofBytesRef
representing strings in UTF-8.static Automaton
Automata.makeStringUnion
(Collection<BytesRef> utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRef
s representing UTF-8 encoded strings. -
Uses of BytesRef in org.apache.lucene.util.bkd
Methods in org.apache.lucene.util.bkd that return BytesRefModifier and TypeMethodDescriptionPointValue.packedValue()
Returns the packed values for the dimensionsPointValue.packedValueDocIDBytes()
Returns the byte representation of the packed value together with the docIDMethods in org.apache.lucene.util.bkd with parameters of type BytesRefModifier and TypeMethodDescriptionstatic void
MutablePointTreeReaderUtils.partition
(BKDConfig config, int maxDoc, int splitDim, int commonPrefixLen, MutablePointTree reader, int from, int to, int mid, BytesRef scratch1, BytesRef scratch2) Partition points aroundmid
.static void
MutablePointTreeReaderUtils.sortByDim
(BKDConfig config, int sortedDim, int[] commonPrefixLengths, MutablePointTree reader, int from, int to, BytesRef scratch1, BytesRef scratch2) Sort points on the given dimension. -
Uses of BytesRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as BytesRefMethods in org.apache.lucene.util.fst that return BytesRefModifier and TypeMethodDescriptionByteSequenceOutputs.getNoOutput()
static BytesRef
Util.toBytesRef
(IntsRef input, BytesRefBuilder 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 BytesRefModifier and TypeMethodDescriptionstatic <T> T
Looks up the output for this input, or null if the input is not acceptedByteSequenceOutputs.outputToString
(BytesRef output) long
ByteSequenceOutputs.ramBytesUsed
(BytesRef output) Seeks to smallest term that's >= target.Seeks to exactly this term, returning null if the term doesn't exist.Seeks to biggest term that's <= target.static IntsRef
Util.toIntsRef
(BytesRef input, IntsRefBuilder scratch) Just takes unsigned byte values from the BytesRef and converts into an IntsRef.void
ByteSequenceOutputs.write
(BytesRef prefix, DataOutput out)