Uses of Class
org.apache.lucene.util.BytesRef
Packages that use BytesRef
Package
Description
Text analysis.
Analysis components based on ICU
Additional ICU-specific Attributes for text analysis.
Miscellaneous Tokenstreams.
Provides various convenience classes for creating payloads on Tokens.
Analysis components for Synonyms.
Analysis components for Synonyms using Word2Vec model.
General-purpose attributes for text analysis.
Compressing helper classes.
BlockTree terms dictionary.
Lucene 5.0 file format.
Lucene 5.0 compressing format.
Components from the Lucene 8.0 index format.
Lucene 8.4 file format.
Lucene 8.7 file format.
Lucene 9.0 file format.
Lucene 9.12 file format.
Lucene 9.9 file format.
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a
structured document).
Uses already seen data (the indexed documents) to classify new documents.
Codecs API: API for customization of the encoding and structure of the index.
Pluggable term index / block terms dictionary implementations.
Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.
Codec PostingsFormat for fast access to low-frequency terms such as primary key fields.
Compressing helper classes.
Lucene 10.1 file format.
Lucene 9.0 file format.
BlockTree terms dictionary.
Lucene 9.0 compressing format.
Term dictionary, DocValues or Postings formats that are read entirely into memory.
Simpletext Codec: writes human readable postings.
Pluggable term index / block terms dictionary implementations.
Pluggable term index / block terms dictionary implementations.
Unicode collation support.
Custom
AttributeImpl
for indexing collation keys as index terms.The logical representation of a
Document
for indexing and
searching.Faceted search.
Provides FacetSets faceting capabilities which allows users to facet on high dimensional field
values.
Taxonomy of Categories.
Code to maintain and access indices.
High-performance single-document main memory Apache Lucene fulltext search index.
Miscellaneous Lucene utilities that don't really fit anywhere else.
Misc extensions of the Document/Field API.
Misc index tools and index support.
Misc search implementations.
Monitoring framework
A variety of functions to use with FunctionQuery.
Intervals queries
The payloads package provides Query mechanisms for finding and using payloads.
A simple query parser implemented with JavaCC.
Standard Lucene Query Nodes.
A primary-key postings format that associates a version (long) with each term and can provide
fail-fast lookups by ID and version.
This package contains several point types:
BigIntegerPoint
for 128-bit
integers
LatLonPoint
for latitude/longitude
geospatial points
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Comparators, used to compare hits so as to determine their sort order when collecting the top
results with
TopFieldCollector
.Grouping.
Support for index-time and query-time joins.
Suggest alternate spellings for words.
Support for Autocomplete/Autosuggest
Analyzer based autosuggest.
Support for document suggestion
Finite-state based autosuggest.
Ternary Search Tree based autosuggest.
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
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.icu
Fields in org.apache.lucene.analysis.icu declared as BytesRef -
Uses of BytesRef in org.apache.lucene.analysis.icu.tokenattributes
Methods in org.apache.lucene.analysis.icu.tokenattributes that return BytesRef -
Uses of BytesRef in org.apache.lucene.analysis.miscellaneous
Fields in org.apache.lucene.analysis.miscellaneous with type parameters of type BytesRefModifier and TypeFieldDescriptionStemmerOverrideFilter.StemmerOverrideMap.fst
StemmerOverrideFilter.scratchArc
Methods in org.apache.lucene.analysis.miscellaneous that return BytesRefModifier and TypeMethodDescriptionprotected BytesRef
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken
(BytesRef in) StemmerOverrideFilter.StemmerOverrideMap.get
(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader) Returns the value mapped to the given key ornull
if the key is not in the FST dictionary.ConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl.getBytesRef()
Methods in org.apache.lucene.analysis.miscellaneous with parameters of type BytesRefModifier and TypeMethodDescriptionprotected BytesRef
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken
(BytesRef in) Method parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRefModifier and TypeMethodDescriptionStemmerOverrideFilter.StemmerOverrideMap.get
(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader) Returns the value mapped to the given key ornull
if the key is not in the FST dictionary.Constructor parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRefModifierConstructorDescriptionStemmerOverrideMap
(FST<BytesRef> fst, boolean ignoreCase) Creates a newStemmerOverrideFilter.StemmerOverrideMap
-
Uses of BytesRef in org.apache.lucene.analysis.payloads
Fields in org.apache.lucene.analysis.payloads declared as BytesRefMethods in org.apache.lucene.analysis.payloads that return BytesRefModifier and TypeMethodDescriptionAbstractEncoder.encode
(char[] buffer) FloatEncoder.encode
(char[] buffer, int offset, int length) IdentityEncoder.encode
(char[] buffer, int offset, int length) IntegerEncoder.encode
(char[] buffer, int offset, int length) PayloadEncoder.encode
(char[] buffer) PayloadEncoder.encode
(char[] buffer, int offset, int length) Convert a char array to aBytesRef
-
Uses of BytesRef in org.apache.lucene.analysis.synonym
Fields in org.apache.lucene.analysis.synonym declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
SynonymFilter.scratchBytes
Deprecated.private final BytesRef
SynonymGraphFilter.scratchBytes
Fields in org.apache.lucene.analysis.synonym with type parameters of type BytesRefModifier and TypeFieldDescriptionSynonymFilter.fst
Deprecated.SynonymGraphFilter.fst
SynonymMap.fst
map<input word, list<ord>>SynonymFilter.scratchArc
Deprecated.SynonymGraphFilter.scratchArc
Methods in org.apache.lucene.analysis.synonym with parameters of type BytesRefModifier and TypeMethodDescriptionprivate void
Deprecated.private void
SynonymGraphFilter.bufferOutputTokens
(BytesRef bytes, int matchInputLength) Expands the output graph into the necessary tokens, adding synonyms as side paths parallel to the input tokens, and buffers them in the output token buffer.Constructor parameters in org.apache.lucene.analysis.synonym with type arguments of type BytesRefModifierConstructorDescriptionSynonymMap
(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext) -
Uses of BytesRef in org.apache.lucene.analysis.synonym.word2vec
Fields in org.apache.lucene.analysis.synonym.word2vec declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
TermAndBoost.term
The field for theterm
record component.Methods in org.apache.lucene.analysis.synonym.word2vec that return BytesRefModifier and TypeMethodDescription(package private) static BytesRef
Dl4jModelReader.decodeB64Term
(String term) TermAndBoost.term()
Returns the value of theterm
record component.Word2VecModel.termValue
(int targetOrd) Methods in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRefModifier and TypeMethodDescriptionWord2VecSynonymProvider.getSynonyms
(BytesRef term, int maxSynonymsPerTerm, float minAcceptedSimilarity) float[]
Word2VecModel.vectorValue
(BytesRef term) Constructors in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRefModifierConstructorDescriptionTermAndBoost
(BytesRef term, float boost) Creates a new TermAndBoost -
Uses of BytesRef in org.apache.lucene.analysis.tokenattributes
Fields in org.apache.lucene.analysis.tokenattributes declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
BytesTermAttributeImpl.bytes
private BytesRef
PayloadAttributeImpl.payload
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.backward_codecs.compressing
Methods in org.apache.lucene.backward_codecs.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
CompressionMode.DeflateDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) abstract 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.backward_codecs.lucene40.blocktree
Fields in org.apache.lucene.backward_codecs.lucene40.blocktree declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
IntersectTermsEnum.commonSuffix
(package private) final BytesRef
FieldReader.maxTerm
(package private) final BytesRef
FieldReader.minTerm
(package private) static final BytesRef
Lucene40BlockTreeTermsReader.NO_OUTPUT
(package private) BytesRef
IntersectTermsEnumFrame.outputPrefix
(package private) final BytesRef
FieldReader.rootCode
private BytesRef
IntersectTermsEnum.savedStartTerm
private final BytesRef
IntersectTermsEnum.term
Fields in org.apache.lucene.backward_codecs.lucene40.blocktree with type parameters of type BytesRefModifier and TypeFieldDescriptionIntersectTermsEnumFrame.arc
SegmentTermsEnumFrame.arc
Lucene40BlockTreeTermsReader.FST_OUTPUTS
IntersectTermsEnum.fstOutputs
FieldReader.index
Methods in org.apache.lucene.backward_codecs.lucene40.blocktree that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
IntersectTermsEnum._next()
FieldReader.getMax()
FieldReader.getMin()
IntersectTermsEnum.next()
SegmentTermsEnum.next()
private static BytesRef
Lucene40BlockTreeTermsReader.readBytesRef
(IndexInput in) IntersectTermsEnum.term()
SegmentTermsEnum.term()
Methods in org.apache.lucene.backward_codecs.lucene40.blocktree that return types with arguments of type BytesRefModifier and TypeMethodDescriptionIntersectTermsEnum.getArc
(int ord) SegmentTermsEnum.getArc
(int ord) Methods in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRefModifier and TypeMethodDescriptionFieldReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) (package private) void
private boolean
SegmentTermsEnumFrame.prefixMatches
(BytesRef target) (package private) SegmentTermsEnumFrame
void
SegmentTermsEnumFrame.scanToFloorFrame
(BytesRef target) SegmentTermsEnumFrame.scanToTerm
(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermLeaf
(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermNonLeaf
(BytesRef target, boolean exactOnly) boolean
boolean
void
private void
IntersectTermsEnum.seekToStartTerm
(BytesRef target) void
SegmentTermsEnumFrame.setFloorData
(ByteArrayDataInput in, BytesRef source) private boolean
IntersectTermsEnum.setSavedStartTerm
(BytesRef startTerm) (package private) void
Method parameters in org.apache.lucene.backward_codecs.lucene40.blocktree with type arguments of type BytesRefModifier and TypeMethodDescription(package private) SegmentTermsEnumFrame
(package private) SegmentTermsEnumFrame
Constructors in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRefModifierConstructorDescription(package private)
FieldReader
(Lucene40BlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, BytesRef rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput metaIn, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) IntersectTermsEnum
(FieldReader fr, TransitionAccessor automaton, ByteRunnable runAutomaton, BytesRef commonSuffix, BytesRef startTerm) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene50
Fields in org.apache.lucene.backward_codecs.lucene50 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
Lucene50PostingsReader.BlockImpactsEverythingEnum.payload
(package private) final BytesRef
Lucene50PostingsReader.EverythingEnum.payload
Methods in org.apache.lucene.backward_codecs.lucene50 that return BytesRefModifier and TypeMethodDescriptionLucene50PostingsReader.BlockDocsEnum.getPayload()
Lucene50PostingsReader.BlockImpactsEverythingEnum.getPayload()
Lucene50PostingsReader.BlockImpactsPostingsEnum.getPayload()
Lucene50PostingsReader.EverythingEnum.getPayload()
-
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene50.compressing
Fields in org.apache.lucene.backward_codecs.lucene50.compressing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
Lucene50CompressingStoredFieldsReader.BlockState.bytes
private final BytesRef
Lucene50CompressingTermVectorsReader.TVPostingsEnum.payload
private final BytesRef
Lucene50CompressingTermVectorsReader.TVFields.payloadBytes
private final BytesRef
Lucene50CompressingTermVectorsReader.TVTerms.payloadBytes
private BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum.payloads
private final BytesRef
Lucene50CompressingStoredFieldsReader.BlockState.spare
private final BytesRef
Lucene50CompressingTermVectorsReader.TVFields.suffixBytes
private final BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum.term
private final BytesRef
Lucene50CompressingTermVectorsReader.TVTerms.termBytes
Methods in org.apache.lucene.backward_codecs.lucene50.compressing that return BytesRefModifier and TypeMethodDescriptionLucene50CompressingTermVectorsReader.TVPostingsEnum.getPayload()
Lucene50CompressingTermVectorsReader.TVTermsEnum.next()
Lucene50CompressingTermVectorsReader.TVTermsEnum.term()
Methods in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Lucene50CompressingTermVectorsReader.TVPostingsEnum.reset
(int freq, int positionIndex, int[] positions, int[] startOffsets, int[] lengths, BytesRef payloads, int[] payloadIndex) (package private) void
Lucene50CompressingTermVectorsReader.TVTermsEnum.reset
(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloads, ByteArrayDataInput in) Constructors in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRefModifierConstructorDescriptionTVFields
(int[] fieldNums, int[] fieldFlags, int[] fieldNumOffs, int[] numTerms, int[] fieldLengths, int[][] prefixLengths, int[][] suffixLengths, int[][] termFreqs, int[][] positionIndex, int[][] positions, int[][] startOffsets, int[][] lengths, BytesRef payloadBytes, int[][] payloadIndex, BytesRef suffixBytes) (package private)
TVTerms
(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloadBytes, BytesRef termBytes) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene80
Fields in org.apache.lucene.backward_codecs.lucene80 declared as BytesRefModifier and TypeFieldDescription(package private) BytesRef
Lucene80DocValuesProducer.TermsDict.blockBuffer
(package private) final BytesRef
Lucene80DocValuesProducer.TermsDict.term
private final BytesRef
Lucene80DocValuesProducer.BinaryDecoder.uncompressedBytesRef
Methods in org.apache.lucene.backward_codecs.lucene80 that return BytesRefModifier and TypeMethodDescription(package private) BytesRef
Lucene80DocValuesProducer.BinaryDecoder.decode
(int docNumber) private BytesRef
Lucene80DocValuesProducer.TermsDict.getFirstTermFromBlock
(long block) private BytesRef
Lucene80DocValuesProducer.TermsDict.getTermFromIndex
(long index) Lucene80DocValuesProducer.BaseSortedDocValues.lookupOrd
(int ord) Lucene80DocValuesProducer.BaseSortedSetDocValues.lookupOrd
(long ord) Lucene80DocValuesProducer.TermsDict.next()
Lucene80DocValuesProducer.TermsDict.term()
Methods in org.apache.lucene.backward_codecs.lucene80 with parameters of type BytesRefModifier and TypeMethodDescription(package private) void
int
Lucene80DocValuesProducer.BaseSortedDocValues.lookupTerm
(BytesRef key) long
Lucene80DocValuesProducer.BaseSortedSetDocValues.lookupTerm
(BytesRef key) private long
private long
Lucene80DocValuesProducer.TermsDict.seekTermsIndex
(BytesRef text) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene84
Fields in org.apache.lucene.backward_codecs.lucene84 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
Lucene84PostingsReader.BlockImpactsEverythingEnum.payload
(package private) final BytesRef
Lucene84PostingsReader.EverythingEnum.payload
Methods in org.apache.lucene.backward_codecs.lucene84 that return BytesRefModifier and TypeMethodDescriptionLucene84PostingsReader.BlockDocsEnum.getPayload()
Lucene84PostingsReader.BlockImpactsDocsEnum.getPayload()
Lucene84PostingsReader.BlockImpactsEverythingEnum.getPayload()
Lucene84PostingsReader.BlockImpactsPostingsEnum.getPayload()
Lucene84PostingsReader.EverythingEnum.getPayload()
-
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene87
Methods in org.apache.lucene.backward_codecs.lucene87 with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) void
LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) private void
DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor.doDecompress
(DataInput in, Inflater decompressor, BytesRef bytes) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene90
Fields in org.apache.lucene.backward_codecs.lucene90 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
Lucene90PostingsReader.BlockImpactsEverythingEnum.payload
(package private) final BytesRef
Lucene90PostingsReader.EverythingEnum.payload
Methods in org.apache.lucene.backward_codecs.lucene90 that return BytesRefModifier and TypeMethodDescriptionLucene90PostingsReader.BlockDocsEnum.getPayload()
Lucene90PostingsReader.BlockImpactsDocsEnum.getPayload()
Lucene90PostingsReader.BlockImpactsEverythingEnum.getPayload()
Lucene90PostingsReader.BlockImpactsPostingsEnum.getPayload()
Lucene90PostingsReader.EverythingEnum.getPayload()
Methods in org.apache.lucene.backward_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.backward_codecs.lucene912
Fields in org.apache.lucene.backward_codecs.lucene912 declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRef
Lucene912PostingsReader.BlockImpactsEnum.level0SerializedImpacts
protected final BytesRef
Lucene912PostingsReader.BlockImpactsEnum.level1SerializedImpacts
(package private) final BytesRef
Lucene912PostingsReader.EverythingEnum.payload
Methods in org.apache.lucene.backward_codecs.lucene912 that return BytesRefModifier and TypeMethodDescriptionLucene912PostingsReader.BlockDocsEnum.getPayload()
Lucene912PostingsReader.BlockImpactsEnum.getPayload()
Lucene912PostingsReader.EverythingEnum.getPayload()
-
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene99
Fields in org.apache.lucene.backward_codecs.lucene99 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
Lucene99PostingsReader.BlockImpactsEverythingEnum.payload
(package private) final BytesRef
Lucene99PostingsReader.EverythingEnum.payload
Methods in org.apache.lucene.backward_codecs.lucene99 that return BytesRefModifier and TypeMethodDescriptionLucene99PostingsReader.BlockDocsEnum.getPayload()
Lucene99PostingsReader.BlockImpactsDocsEnum.getPayload()
Lucene99PostingsReader.BlockImpactsEverythingEnum.getPayload()
Lucene99PostingsReader.BlockImpactsPostingsEnum.getPayload()
Lucene99PostingsReader.EverythingEnum.getPayload()
-
Uses of BytesRef in org.apache.lucene.classification
Fields in org.apache.lucene.classification with type parameters of type BytesRefModifier and TypeFieldDescriptionCachingNaiveBayesClassifier.cclasses
CachingNaiveBayesClassifier.classTermFreq
CachingNaiveBayesClassifier.termCClassHitCache
Methods in org.apache.lucene.classification that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBM25NBClassifier.assignClass
(String inputDocument) KNearestFuzzyClassifier.assignClass
(String text) KNearestNeighborClassifier.assignClass
(String text) SimpleNaiveBayesClassifier.assignClass
(String inputDocument) private List
<ClassificationResult<BytesRef>> BM25NBClassifier.assignClassNormalizedList
(String inputDocument) Calculate probabilities for all classes for a given input textprotected List
<ClassificationResult<BytesRef>> CachingNaiveBayesClassifier.assignClassNormalizedList
(String inputDocument) Transforms values into a range between 0 and 1protected List
<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.assignClassNormalizedList
(String inputDocument) Calculate probabilities for all classes for a given input textprivate List
<ClassificationResult<BytesRef>> KNearestFuzzyClassifier.buildListFromTopDocs
(TopDocs topDocs) build a list of classification results from search resultsprotected List
<ClassificationResult<BytesRef>> KNearestNeighborClassifier.buildListFromTopDocs
(TopDocs topDocs) build a list of classification results from search resultsprivate List
<ClassificationResult<BytesRef>> CachingNaiveBayesClassifier.calculateLogLikelihood
(String[] tokenizedText) protected ClassificationResult
<BytesRef> KNearestNeighborClassifier.classifyFromTopDocs
(TopDocs knnResults) TODOBM25NBClassifier.getClasses
(String text) BM25NBClassifier.getClasses
(String text, int max) KNearestFuzzyClassifier.getClasses
(String text) KNearestFuzzyClassifier.getClasses
(String text, int max) KNearestNeighborClassifier.getClasses
(String text) KNearestNeighborClassifier.getClasses
(String text, int max) SimpleNaiveBayesClassifier.getClasses
(String text) SimpleNaiveBayesClassifier.getClasses
(String text, int max) CachingNaiveBayesClassifier.getWordFreqForClassess
(String word) private ArrayList
<ClassificationResult<BytesRef>> BM25NBClassifier.normClassificationResults
(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableprotected ArrayList
<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.normClassificationResults
(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableMethod parameters in org.apache.lucene.classification with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate ArrayList
<ClassificationResult<BytesRef>> BM25NBClassifier.normClassificationResults
(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableprotected ArrayList
<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.normClassificationResults
(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score available -
Uses of BytesRef in org.apache.lucene.classification.document
Methods in org.apache.lucene.classification.document that return types with arguments of type BytesRefModifier and TypeMethodDescriptionKNearestNeighborDocumentClassifier.assignClass
(Document document) SimpleNaiveBayesDocumentClassifier.assignClass
(Document document) private List
<ClassificationResult<BytesRef>> SimpleNaiveBayesDocumentClassifier.assignNormClasses
(Document inputDocument) KNearestNeighborDocumentClassifier.getClasses
(Document document) KNearestNeighborDocumentClassifier.getClasses
(Document document, int max) SimpleNaiveBayesDocumentClassifier.getClasses
(Document document) SimpleNaiveBayesDocumentClassifier.getClasses
(Document document, int max) -
Uses of BytesRef in org.apache.lucene.codecs
Fields in org.apache.lucene.codecs declared as BytesRefMethods in org.apache.lucene.codecs that return BytesRefModifier and TypeMethodDescriptionDocValuesConsumer.MergedTermsEnum.next()
DocValuesConsumer.MergedTermsEnum.term()
Methods in org.apache.lucene.codecs with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatus
abstract 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 void
StoredFieldsWriter.writeField
(FieldInfo info, BytesRef value) Writes a stored binary value.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.blockterms
Fields in org.apache.lucene.codecs.blockterms declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum.nextIndexTerm
(package private) BytesRef
BlockTermsReader.FieldAndTerm.term
private final BytesRef
FixedGapTermsIndexReader.IndexEnum.term
Methods in org.apache.lucene.codecs.blockterms that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum._next()
BlockTermsReader.FieldReader.SegmentTermsEnum.next()
BlockTermsReader.FieldReader.SegmentTermsEnum.term()
FixedGapTermsIndexReader.IndexEnum.term()
abstract BytesRef
TermsIndexReaderBase.FieldIndexEnum.term()
VariableGapTermsIndexReader.IndexEnum.term()
Methods in org.apache.lucene.codecs.blockterms with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
FixedGapTermsIndexWriter.SimpleFieldWriter.add
(BytesRef text, TermStats stats, long termsFilePointer) abstract void
void
VariableGapTermsIndexWriter.FSTFieldWriter.add
(BytesRef text, TermStats stats, long termsFilePointer) boolean
FixedGapTermsIndexWriter.SimpleFieldWriter.checkIndexTerm
(BytesRef text, TermStats stats) abstract boolean
TermsIndexWriterBase.FieldWriter.checkIndexTerm
(BytesRef text, TermStats stats) boolean
VariableGapTermsIndexWriter.FSTFieldWriter.checkIndexTerm
(BytesRef text, TermStats stats) protected int
FixedGapTermsIndexWriter.indexedTermPrefixLength
(BytesRef priorTerm, BytesRef indexedTerm) NOTE: if your codec does not sort in unicode code point order, you must override this method, to simply return indexedTerm.length.protected int
VariableGapTermsIndexWriter.indexedTermPrefixLength
(BytesRef priorTerm, BytesRef indexedTerm) NOTE: if your codec does not sort in unicode code point order, you must override this method, to simply return indexedTerm.length.boolean
VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector.isIndexTerm
(BytesRef term, TermStats stats) boolean
VariableGapTermsIndexWriter.EveryNTermSelector.isIndexTerm
(BytesRef term, TermStats stats) abstract boolean
VariableGapTermsIndexWriter.IndexTermSelector.isIndexTerm
(BytesRef term, TermStats stats) Called sequentially on every term being written, returning true if this term should be indexedlong
abstract long
Seeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that termlong
void
private int
BlockTermsWriter.TermsWriter.sharedPrefix
(BytesRef term1, BytesRef term2) (package private) void
BlockTermsWriter.TermsWriter.write
(BytesRef text, TermsEnum termsEnum, NormsProducer norms) -
Uses of BytesRef in org.apache.lucene.codecs.blocktreeords
Fields in org.apache.lucene.codecs.blocktreeords declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
FSTOrdsOutputs.Output.bytes
The field for thebytes
record component.private final BytesRef
OrdsIntersectTermsEnum.commonSuffixRef
private final BytesRef
OrdsBlockTreeTermsWriter.FieldMetaData.maxTerm
The field for themaxTerm
record component.(package private) final BytesRef
OrdsFieldReader.maxTerm
private final BytesRef
OrdsBlockTreeTermsWriter.FieldMetaData.minTerm
The field for theminTerm
record component.(package private) final BytesRef
OrdsFieldReader.minTerm
private static final BytesRef
FSTOrdsOutputs.NO_BYTES
final BytesRef
OrdsBlockTreeTermsWriter.PendingBlock.prefix
private BytesRef
OrdsIntersectTermsEnum.savedStartTerm
private final BytesRef
OrdsIntersectTermsEnum.term
Methods in org.apache.lucene.codecs.blocktreeords that return BytesRefModifier and TypeMethodDescriptionFSTOrdsOutputs.Output.bytes()
Returns the value of thebytes
record component.OrdsFieldReader.getMax()
OrdsFieldReader.getMin()
OrdsBlockTreeTermsWriter.FieldMetaData.maxTerm()
Returns the value of themaxTerm
record component.OrdsBlockTreeTermsWriter.FieldMetaData.minTerm()
Returns the value of theminTerm
record component.OrdsIntersectTermsEnum.next()
OrdsSegmentTermsEnum.next()
private static BytesRef
OrdsBlockTreeTermsReader.readBytesRef
(IndexInput in) OrdsIntersectTermsEnum.term()
OrdsSegmentTermsEnum.term()
Methods in org.apache.lucene.codecs.blocktreeords with parameters of type BytesRefModifier and TypeMethodDescriptionOrdsFieldReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) private boolean
OrdsSegmentTermsEnumFrame.prefixMatches
(BytesRef target) private void
Pushes the new term to the top of the stack, and writes new blocks.void
OrdsSegmentTermsEnumFrame.scanToFloorFrame
(BytesRef target) OrdsSegmentTermsEnumFrame.scanToTerm
(BytesRef target, boolean exactOnly) OrdsSegmentTermsEnumFrame.scanToTermLeaf
(BytesRef target, boolean exactOnly) OrdsSegmentTermsEnumFrame.scanToTermNonLeaf
(BytesRef target, boolean exactOnly) boolean
boolean
void
private void
OrdsIntersectTermsEnum.seekToStartTerm
(BytesRef target) void
OrdsSegmentTermsEnumFrame.setFloorData
(ByteArrayDataInput in, BytesRef source) private boolean
OrdsIntersectTermsEnum.setSavedStartTerm
(BytesRef startTerm) void
OrdsBlockTreeTermsWriter.TermsWriter.write
(BytesRef text, TermsEnum termsEnum, NormsProducer norms) Writes one term's worth of postings.private static void
OrdsBlockTreeTermsWriter.writeBytesRef
(IndexOutput out, BytesRef bytes) Constructors in org.apache.lucene.codecs.blocktreeords with parameters of type BytesRefModifierConstructorDescriptionprivate
FieldMetaData
(FieldInfo fieldInfo, FSTOrdsOutputs.Output rootCode, long numTerms, long indexStartFP, long sumTotalTermFreq, long sumDocFreq, int docCount, BytesRef minTerm, BytesRef maxTerm) Creates an instance of aFieldMetaData
record class.(package private)
OrdsFieldReader
(OrdsBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, FSTOrdsOutputs.Output rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) OrdsIntersectTermsEnum
(OrdsFieldReader fr, CompiledAutomaton compiled, BytesRef startTerm) Creates an instance of aOutput
record class.PendingBlock
(BytesRef prefix, long fp, boolean hasTerms, long totalTermCount, boolean isFloor, int floorLeadByte, List<OrdsBlockTreeTermsWriter.SubIndex> subIndices) PendingTerm
(BytesRef term, BlockTermState state) -
Uses of BytesRef in org.apache.lucene.codecs.bloom
Methods in org.apache.lucene.codecs.bloom that return BytesRefModifier and TypeMethodDescriptionBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.getMax()
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.getMin()
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.next()
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.term()
Methods in org.apache.lucene.codecs.bloom with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Records a value in the set.The main method required for a Bloom filter which, given a value determines set membership.abstract long
Hashes the contents of the referenced bytesfinal long
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.prepareSeekExact
(BytesRef text) BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.seekCeil
(BytesRef text) boolean
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.seekExact
(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
CompressionMode.DeflateDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) abstract 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.lucene101
Fields in org.apache.lucene.codecs.lucene101 declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
Lucene101PostingsReader.BlockPostingsEnum.level0SerializedImpacts
private final BytesRef
Lucene101PostingsReader.BlockPostingsEnum.level1SerializedImpacts
(package private) final BytesRef
Lucene101PostingsReader.BlockPostingsEnum.payload
Methods in org.apache.lucene.codecs.lucene101 that return BytesRefMethods in org.apache.lucene.codecs.lucene101 with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Lucene101PostingsWriter.addPosition
(int position, BytesRef payload, int startOffset, int endOffset) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90
Fields in org.apache.lucene.codecs.lucene90 declared as BytesRefModifier and TypeFieldDescription(package private) BytesRef
Lucene90DocValuesProducer.TermsDict.blockBuffer
(package private) final BytesRef
Lucene90DocValuesProducer.TermsDict.term
Methods in org.apache.lucene.codecs.lucene90 that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
Lucene90DocValuesProducer.TermsDict.getFirstTermFromBlock
(long block) private BytesRef
Lucene90DocValuesProducer.TermsDict.getTermFromIndex
(long index) Lucene90DocValuesProducer.BaseSortedDocValues.lookupOrd
(int ord) Lucene90DocValuesProducer.BaseSortedSetDocValues.lookupOrd
(long ord) Lucene90DocValuesProducer.TermsDict.next()
Lucene90DocValuesProducer.TermsDict.term()
Methods in org.apache.lucene.codecs.lucene90 with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) void
LZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) private void
DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor.doDecompress
(DataInput in, Inflater decompressor, BytesRef bytes) int
Lucene90DocValuesProducer.BaseSortedDocValues.lookupTerm
(BytesRef key) long
Lucene90DocValuesProducer.BaseSortedSetDocValues.lookupTerm
(BytesRef key) private long
private long
Lucene90DocValuesProducer.TermsDict.seekTermsIndex
(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.blocktree
Fields in org.apache.lucene.codecs.lucene90.blocktree declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
IntersectTermsEnum.commonSuffix
(package private) BytesRef
SegmentTermsEnum.OutputAccumulator.current
(package private) final BytesRef
FieldReader.maxTerm
(package private) final BytesRef
FieldReader.minTerm
(package private) static final BytesRef
Lucene90BlockTreeTermsReader.NO_OUTPUT
(package private) BytesRef[]
SegmentTermsEnum.OutputAccumulator.outputs
final BytesRef
Lucene90BlockTreeTermsWriter.PendingBlock.prefix
(package private) final BytesRef
FieldReader.rootCode
private BytesRef
IntersectTermsEnum.savedStartTerm
private final BytesRef
IntersectTermsEnum.term
Fields in org.apache.lucene.codecs.lucene90.blocktree with type parameters of type BytesRefModifier and TypeFieldDescriptionIntersectTermsEnumFrame.arc
SegmentTermsEnumFrame.arc
Lucene90BlockTreeTermsReader.FST_OUTPUTS
FieldReader.index
Lucene90BlockTreeTermsWriter.PendingBlock.index
Lucene90BlockTreeTermsWriter.PendingBlock.subIndices
Methods in org.apache.lucene.codecs.lucene90.blocktree that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
IntersectTermsEnum._next()
FieldReader.getMax()
FieldReader.getMin()
IntersectTermsEnum.next()
SegmentTermsEnum.next()
private static BytesRef
Lucene90BlockTreeTermsReader.readBytesRef
(IndexInput in) IntersectTermsEnum.term()
SegmentTermsEnum.term()
Methods in org.apache.lucene.codecs.lucene90.blocktree that return types with arguments of type BytesRefModifier and TypeMethodDescriptionIntersectTermsEnum.getArc
(int ord) SegmentTermsEnum.getArc
(int ord) Methods in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRefModifier and TypeMethodDescriptionSegmentTermsEnumFrame.binarySearchTermLeaf
(BytesRef target, boolean exactOnly) FieldReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) (package private) void
(package private) void
private boolean
SegmentTermsEnumFrame.prefixMatches
(BytesRef target) SegmentTermsEnum.prepareSeekExact
(BytesRef target) private IOBooleanSupplier
SegmentTermsEnum.prepareSeekExact
(BytesRef target, boolean prefetch) (package private) void
(package private) SegmentTermsEnumFrame
private void
Pushes the new term to the top of the stack, and writes new blocks.void
SegmentTermsEnumFrame.scanToFloorFrame
(BytesRef target) SegmentTermsEnumFrame.scanToTerm
(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermLeaf
(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermNonLeaf
(BytesRef target, boolean exactOnly) boolean
boolean
void
private void
IntersectTermsEnum.seekToStartTerm
(BytesRef target) private boolean
IntersectTermsEnum.setSavedStartTerm
(BytesRef startTerm) (package private) void
void
Lucene90BlockTreeTermsWriter.TermsWriter.write
(BytesRef text, TermsEnum termsEnum, NormsProducer norms) Writes one term's worth of postings.private static void
Lucene90BlockTreeTermsWriter.writeBytesRef
(DataOutput out, BytesRef bytes) Method parameters in org.apache.lucene.codecs.lucene90.blocktree with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate void
Lucene90BlockTreeTermsWriter.PendingBlock.append
(FSTCompiler<BytesRef> fstCompiler, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef) private void
Lucene90BlockTreeTermsWriter.PendingBlock.append
(FSTCompiler<BytesRef> fstCompiler, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef) (package private) SegmentTermsEnumFrame
(package private) SegmentTermsEnumFrame
(package private) SegmentTermsEnumFrame
Constructors in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRefModifierConstructorDescription(package private)
FieldReader
(Lucene90BlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, BytesRef rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput metaIn, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) IntersectTermsEnum
(FieldReader fr, TransitionAccessor automaton, ByteRunnable runAutomaton, BytesRef commonSuffix, BytesRef startTerm) PendingBlock
(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<BytesRef>> subIndices) PendingTerm
(BytesRef term, BlockTermState state) Constructor parameters in org.apache.lucene.codecs.lucene90.blocktree with type arguments of type BytesRefModifierConstructorDescriptionPendingBlock
(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<BytesRef>> subIndices) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.compressing
Fields in org.apache.lucene.codecs.lucene90.compressing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
Lucene90CompressingStoredFieldsReader.BlockState.bytes
private final BytesRef
Lucene90CompressingTermVectorsWriter.lastTerm
private final BytesRef
Lucene90CompressingTermVectorsReader.TVPostingsEnum.payload
private final BytesRef
Lucene90CompressingTermVectorsReader.TVFields.payloadBytes
private final BytesRef
Lucene90CompressingTermVectorsReader.TVTerms.payloadBytes
private BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum.payloads
private final BytesRef
Lucene90CompressingStoredFieldsReader.BlockState.spare
private final BytesRef
Lucene90CompressingTermVectorsReader.TVFields.suffixBytes
private final BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum.term
private final BytesRef
Lucene90CompressingTermVectorsReader.TVTerms.termBytes
Methods in org.apache.lucene.codecs.lucene90.compressing that return BytesRefModifier and TypeMethodDescriptionLucene90CompressingTermVectorsReader.TVPostingsEnum.getPayload()
Lucene90CompressingTermVectorsReader.TVTermsEnum.next()
Lucene90CompressingTermVectorsReader.TVTermsEnum.term()
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
Lucene90CompressingTermVectorsReader.TVPostingsEnum.reset
(int freq, int positionIndex, int[] positions, int[] startOffsets, int[] lengths, BytesRef payloads, int[] payloadIndex) (package private) void
Lucene90CompressingTermVectorsReader.TVTermsEnum.reset
(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloads, ByteArrayDataInput in) void
void
Lucene90CompressingStoredFieldsWriter.writeField
(FieldInfo info, BytesRef value) Constructors in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRefModifierConstructorDescriptionTVFields
(int[] fieldNums, int[] fieldFlags, int[] fieldNumOffs, int[] numTerms, int[] fieldLengths, int[][] prefixLengths, int[][] suffixLengths, int[][] termFreqs, int[][] positionIndex, int[][] positions, int[][] startOffsets, int[][] lengths, BytesRef payloadBytes, int[][] payloadIndex, BytesRef suffixBytes) (package private)
TVTerms
(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloadBytes, BytesRef termBytes) -
Uses of BytesRef in org.apache.lucene.codecs.memory
Fields in org.apache.lucene.codecs.memory declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.commonSuffixRef
private final BytesRef
DirectPostingsFormat.HighFreqPostingsEnum.payload
private final BytesRef
DirectPostingsFormat.LowFreqPostingsEnum.payload
private final BytesRef
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.scratch
private final BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum.scratch
(package private) BytesRef
FSTTermsReader.TermsReader.SegmentTermsEnum.term
Methods in org.apache.lucene.codecs.memory that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum.doSeekCeil
(BytesRef target) DirectPostingsFormat.HighFreqDocsEnum.getPayload()
DirectPostingsFormat.HighFreqPostingsEnum.getPayload()
DirectPostingsFormat.LowFreqDocsEnum.getPayload()
DirectPostingsFormat.LowFreqDocsEnumNoPos.getPayload()
DirectPostingsFormat.LowFreqDocsEnumNoTF.getPayload()
DirectPostingsFormat.LowFreqPostingsEnum.getPayload()
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.next()
DirectPostingsFormat.DirectField.DirectTermsEnum.next()
FSTTermsReader.TermsReader.IntersectTermsEnum.next()
FSTTermsReader.TermsReader.SegmentTermsEnum.next()
private BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum.setTerm()
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.term()
DirectPostingsFormat.DirectField.DirectTermsEnum.term()
FSTTermsReader.TermsReader.IntersectTermsEnum.term()
FSTTermsReader.TermsReader.SegmentTermsEnum.term()
Methods in org.apache.lucene.codecs.memory with parameters of type BytesRefModifier and TypeMethodDescription(package private) int
private BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum.doSeekCeil
(BytesRef target) private int
void
FSTTermsWriter.TermsWriter.finishTerm
(BytesRef text, BlockTermState state) DirectPostingsFormat.DirectField.intersect
(CompiledAutomaton compiled, BytesRef startTerm) FSTTermsReader.TermsReader.intersect
(CompiledAutomaton compiled, BytesRef startTerm) boolean
void
boolean
void
Constructors in org.apache.lucene.codecs.memory with parameters of type BytesRefModifierConstructorDescriptionDirectIntersectTermsEnum
(CompiledAutomaton compiled, BytesRef startTerm) (package private)
IntersectTermsEnum
(CompiledAutomaton compiled, BytesRef startTerm) -
Uses of BytesRef in org.apache.lucene.codecs.simpletext
Fields in org.apache.lucene.codecs.simpletext declared as BytesRefModifier and TypeFieldDescription(package private) static final BytesRef
SimpleTextFieldInfosFormat.ATT_KEY
(package private) static final BytesRef
SimpleTextFieldInfosFormat.ATT_VALUE
private final BytesRef
SimpleTextKnnVectorsReader.SimpleTextByteVectorValues.binaryValue
static final BytesRef
SimpleTextPointsWriter.BLOCK_COUNT
static final BytesRef
SimpleTextPointsWriter.BLOCK_DOC_ID
static final BytesRef
SimpleTextPointsWriter.BLOCK_FP
static final BytesRef
SimpleTextPointsWriter.BLOCK_VALUE
static final BytesRef
SimpleTextPointsWriter.BYTES_PER_DIM
(package private) static final BytesRef
SimpleTextUtil.CHECKSUM
(package private) static final BytesRef
SimpleTextSkipWriter.CHILD_POINTER
(package private) static final BytesRef
SimpleTextFieldInfosFormat.DATA_DIM_COUNT
(package private) static final BytesRef
SimpleTextFieldInfosFormat.DIM_NUM_BYTES
(package private) static final BytesRef
SimpleTextFieldsWriter.DOC
(package private) static final BytesRef
SimpleTextLiveDocsFormat.DOC
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.DOC
(package private) static final BytesRef
SimpleTextTermVectorsWriter.DOC
static final BytesRef
SimpleTextPointsWriter.DOC_COUNT
(package private) static final BytesRef
SimpleTextDocValuesWriter.DOCCOUNT
(package private) static final BytesRef
SimpleTextFieldInfosFormat.DOCVALUES
(package private) static final BytesRef
SimpleTextFieldInfosFormat.DOCVALUES_GEN
(package private) static final BytesRef
SimpleTextFieldInfosFormat.DOCVALUES_SKIP_INDEX
private static final BytesRef
SimpleTextKnnVectorsReader.EMPTY
(package private) static final BytesRef
SimpleTextDocValuesWriter.END
(package private) static final BytesRef
SimpleTextFieldsWriter.END
(package private) static final BytesRef
SimpleTextLiveDocsFormat.END
static final BytesRef
SimpleTextPointsWriter.END
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.END
(package private) static final BytesRef
SimpleTextTermVectorsWriter.END
(package private) static final BytesRef
SimpleTextFieldsWriter.END_OFFSET
(package private) static final BytesRef
SimpleTextTermVectorsWriter.ENDOFFSET
(package private) static final BytesRef
SimpleTextDocValuesWriter.FIELD
(package private) static final BytesRef
SimpleTextFieldsWriter.FIELD
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.FIELD
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELD
static final BytesRef
SimpleTextPointsWriter.FIELD_COUNT
static final BytesRef
SimpleTextPointsWriter.FIELD_FP
static final BytesRef
SimpleTextPointsWriter.FIELD_FP_NAME
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.FIELD_NAME
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.FIELD_NUMBER
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELDNAME
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELDOFFSETS
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELDPAYLOADS
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELDPOSITIONS
(package private) static final BytesRef
SimpleTextTermVectorsWriter.FIELDTERMCOUNT
(package private) static final BytesRef
SimpleTextFieldsWriter.FREQ
(package private) static final BytesRef
SimpleTextSkipWriter.FREQ
(package private) static final BytesRef
SimpleTextCompoundFormat.HEADER
(package private) static final BytesRef
SimpleTextSkipWriter.IMPACT
(package private) static final BytesRef
SimpleTextSkipWriter.IMPACTS
(package private) static final BytesRef
SimpleTextSkipWriter.IMPACTS_END
static final BytesRef
SimpleTextPointsWriter.INDEX_COUNT
(package private) static final BytesRef
SimpleTextFieldInfosFormat.INDEX_DIM_COUNT
(package private) static final BytesRef
SimpleTextFieldInfosFormat.INDEXOPTIONS
(package private) static final BytesRef
SimpleTextDocValuesWriter.LENGTH
(package private) static final BytesRef
SimpleTextSkipWriter.LEVEL
(package private) static final BytesRef
SimpleTextSkipWriter.LEVEL_LENGTH
static final BytesRef
SimpleTextPointsWriter.MAX_LEAF_POINTS
static final BytesRef
SimpleTextPointsWriter.MAX_VALUE
(package private) static final BytesRef
SimpleTextDocValuesWriter.MAXLENGTH
(package private) static final BytesRef
SimpleTextDocValuesWriter.MAXVALUE
static final BytesRef
SimpleTextPointsWriter.MIN_VALUE
(package private) static final BytesRef
SimpleTextDocValuesWriter.MINVALUE
(package private) static final BytesRef
SimpleTextFieldInfosFormat.NAME
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.NAME
(package private) static final BytesRef
SimpleTextSkipWriter.NORM
(package private) static final BytesRef
SimpleTextFieldInfosFormat.NORMS
(package private) static final BytesRef
SimpleTextFieldInfosFormat.NUM_ATTS
static final BytesRef
SimpleTextPointsWriter.NUM_DATA_DIMS
static final BytesRef
SimpleTextPointsWriter.NUM_INDEX_DIMS
(package private) static final BytesRef
SimpleTextFieldInfosFormat.NUMBER
(package private) static final BytesRef
SimpleTextFieldInfosFormat.NUMFIELDS
(package private) static final BytesRef
SimpleTextTermVectorsWriter.NUMFIELDS
(package private) static final BytesRef
SimpleTextDocValuesWriter.NUMVALUES
(package private) static final BytesRef
SimpleTextDocValuesWriter.ORDPATTERN
(package private) static final BytesRef
SimpleTextDocValuesWriter.ORIGIN
(package private) static final BytesRef
SimpleTextFieldInfosFormat.PARENT
(package private) static final BytesRef
SimpleTextDocValuesWriter.PATTERN
private BytesRef
SimpleTextFieldsReader.SimpleTextPostingsEnum.payload
(package private) static final BytesRef
SimpleTextFieldsWriter.PAYLOAD
(package private) static final BytesRef
SimpleTextTermVectorsWriter.PAYLOAD
private BytesRef[]
SimpleTextTermVectorsReader.SimpleTVPostings.payloads
private BytesRef[]
SimpleTextTermVectorsReader.SimpleTVPostingsEnum.payloads
(package private) static final BytesRef
SimpleTextFieldInfosFormat.PAYLOADS
static final BytesRef
SimpleTextPointsWriter.POINT_COUNT
(package private) static final BytesRef
SimpleTextFieldsWriter.POS
(package private) static final BytesRef
SimpleTextTermVectorsWriter.POSITION
(package private) final BytesRef
SimpleTextBKDWriter.scratchBytesRef1
(package private) final BytesRef
SimpleTextBKDWriter.scratchBytesRef2
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_ATT_KEY
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_ATT_VALUE
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_DIAG_KEY
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_DIAG_VALUE
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_DOCCOUNT
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_FILE
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_HAS_BLOCKS
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_ID
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_MIN_VERSION
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_NUM_ATT
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_NUM_DIAG
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_NUM_FILES
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_SORT
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_SORT_BYTES
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_SORT_NAME
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_SORT_TYPE
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_USECOMPOUND
(package private) static final BytesRef
SimpleTextSegmentInfoFormat.SI_VERSION
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.SIZE
(package private) static final BytesRef
SimpleTextLiveDocsFormat.SIZE
(package private) static final BytesRef
SimpleTextSkipWriter.SKIP_DOC
(package private) static final BytesRef
SimpleTextSkipWriter.SKIP_DOC_FP
(package private) static final BytesRef
SimpleTextSkipWriter.SKIP_LIST
(package private) static final BytesRef
SimpleTextFieldInfosFormat.SOFT_DELETES
static final BytesRef
SimpleTextPointsWriter.SPLIT_COUNT
static final BytesRef
SimpleTextPointsWriter.SPLIT_DIM
static final BytesRef
SimpleTextPointsWriter.SPLIT_VALUE
(package private) static final BytesRef
SimpleTextFieldsWriter.START_OFFSET
(package private) static final BytesRef
SimpleTextTermVectorsWriter.STARTOFFSET
(package private) static final BytesRef
SimpleTextFieldInfosFormat.STORETV
(package private) static final BytesRef
SimpleTextFieldInfosFormat.STORETVOFF
(package private) static final BytesRef
SimpleTextFieldInfosFormat.STORETVPOS
(package private) static final BytesRef
SimpleTextCompoundFormat.TABLE
(package private) static final BytesRef
SimpleTextCompoundFormat.TABLEEND
(package private) static final BytesRef
SimpleTextCompoundFormat.TABLENAME
(package private) static final BytesRef
SimpleTextCompoundFormat.TABLEPOS
(package private) static final BytesRef
SimpleTextCompoundFormat.TABLESTART
(package private) static final BytesRef
SimpleTextFieldsWriter.TERM
(package private) static final BytesRef
SimpleTextTermVectorsWriter.TERMFREQ
(package private) static final BytesRef
SimpleTextTermVectorsWriter.TERMTEXT
(package private) static final BytesRef
SimpleTextDocValuesWriter.TYPE
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_BINARY
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_DOUBLE
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_FLOAT
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_INT
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_LONG
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.TYPE_STRING
(package private) static final BytesRef
SimpleTextStoredFieldsWriter.VALUE
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.VECTOR_DATA_LENGTH
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.VECTOR_DATA_OFFSET
(package private) static final BytesRef
SimpleTextKnnVectorsWriter.VECTOR_DIMENSION
(package private) static final BytesRef
SimpleTextFieldInfosFormat.VECTOR_ENCODING
(package private) static final BytesRef
SimpleTextFieldInfosFormat.VECTOR_NUM_DIMS
(package private) static final BytesRef
SimpleTextFieldInfosFormat.VECTOR_SIMILARITY
Fields in org.apache.lucene.codecs.simpletext with type parameters of type BytesRefModifier and TypeFieldDescription(package private) Map.Entry
<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTermsEnum.current
(package private) Iterator
<Map.Entry<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings>> SimpleTextTermVectorsReader.SimpleTVTermsEnum.iterator
(package private) final SortedMap
<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTerms.terms
(package private) SortedMap
<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTermsEnum.terms
Methods in org.apache.lucene.codecs.simpletext that return BytesRefModifier and TypeMethodDescriptionstatic BytesRef
SimpleTextUtil.fromBytesRefString
(String s) Inverse oftoString()
.SimpleTextFieldsReader.SimpleTextDocsEnum.getPayload()
SimpleTextFieldsReader.SimpleTextPostingsEnum.getPayload()
SimpleTextTermVectorsReader.SimpleTVDocsEnum.getPayload()
SimpleTextTermVectorsReader.SimpleTVPostingsEnum.getPayload()
SimpleTextFieldsReader.SimpleTextTermsEnum.next()
SimpleTextTermVectorsReader.SimpleTVTermsEnum.next()
SimpleTextFieldsReader.SimpleTextTermsEnum.term()
SimpleTextTermVectorsReader.SimpleTVTermsEnum.term()
Methods in org.apache.lucene.codecs.simpletext with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
SimpleTextTermVectorsWriter.addPosition
(int position, int startOffset, int endOffset, BytesRef payload) private boolean
private int
SimpleTextBKDReader.SimpleTextPointTree.parseInt
(BytesRefBuilder scratch, BytesRef prefix) private int
private int
private int
SimpleTextLiveDocsFormat.parseIntAt
(BytesRef bytes, int offset, CharsRefBuilder scratch) private long
private long
private void
SimpleTextStoredFieldsReader.readField
(BytesRef type, FieldInfo fieldInfo, StoredFieldVisitor visitor) private int
SimpleTextKnnVectorsReader.readInt
(IndexInput in, BytesRef field) private long
SimpleTextKnnVectorsReader.readLong
(IndexInput in, BytesRef field) private String
SimpleTextKnnVectorsReader.readString
(IndexInput in, BytesRef field) void
SimpleTextTermVectorsReader.SimpleTVPostingsEnum.reset
(int[] positions, int[] startOffsets, int[] endOffsets, BytesRef[] payloads) boolean
private boolean
SimpleTextBKDReader.SimpleTextPointTree.startsWith
(BytesRefBuilder scratch, BytesRef prefix) private boolean
SimpleTextDocValuesReader.startsWith
(BytesRef prefix) Used only in ctor:private boolean
SimpleTextKnnVectorsReader.startsWith
(BytesRef prefix) private boolean
SimpleTextPointsReader.startsWith
(BytesRef prefix) void
private String
SimpleTextBKDReader.SimpleTextPointTree.stripPrefix
(BytesRefBuilder scratch, BytesRef prefix) private String
SimpleTextCompoundFormat.stripPrefix
(BytesRefBuilder scratch, BytesRef prefix) private String
SimpleTextDocValuesReader.stripPrefix
(BytesRef prefix) Used only in ctor:private String
SimpleTextKnnVectorsReader.stripPrefix
(BytesRef prefix) private String
SimpleTextPointsReader.stripPrefix
(BytesRef prefix) private boolean
SimpleTextBKDWriter.valueInBounds
(BytesRef packedValue, byte[] minPackedValue, byte[] maxPackedValue) Called only in assertprivate void
SimpleTextBKDWriter.write
(IndexOutput out, BytesRef b) private void
private void
SimpleTextKnnVectorsWriter.write
(IndexOutput out, BytesRef b) private void
SimpleTextPointsWriter.write
(IndexOutput out, BytesRef b) private void
private void
static void
SimpleTextUtil.write
(DataOutput out, BytesRef b) private void
SimpleTextKnnVectorsWriter.writeField
(IndexOutput out, BytesRef fieldName, int value) private void
SimpleTextKnnVectorsWriter.writeField
(IndexOutput out, BytesRef fieldName, long value) private void
SimpleTextKnnVectorsWriter.writeField
(IndexOutput out, BytesRef fieldName, String value) void
SimpleTextStoredFieldsWriter.writeField
(FieldInfo info, BytesRef value) Method parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate boolean
SimpleTextBKDWriter.valuesInOrderAndBounds
(int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, IntFunction<BytesRef> values, int[] docs, int docsOffset) protected void
SimpleTextBKDWriter.writeLeafBlockPackedValues
(IndexOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues) Constructor parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRefModifierConstructorDescription(package private)
-
Uses of BytesRef in org.apache.lucene.codecs.uniformsplit
Fields in org.apache.lucene.codecs.uniformsplit declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRef
IntersectBlockReader.commonSuffix
protected final BytesRef
BlockLine.Serializer.currentTerm
protected BytesRef
BlockWriter.lastTerm
protected BytesRef
FieldMetadata.lastTerm
protected final BytesRef
IntersectBlockReader.AutomatonNextTermCalculator.linearUpperBound
protected BytesRef
BlockReader.scratchBlockBytes
protected BytesRef
BlockWriter.scratchBytesRef
protected BytesRef
IntersectBlockReader.seekTerm
Set this when our current mode is seeking to this term.protected BytesRef
TermBytes.term
Methods in org.apache.lucene.codecs.uniformsplit that return BytesRefModifier and TypeMethodDescriptionDecodes all the bytes of one block in a single operation.protected BytesRef
BlockReader.decodeBlockBytesIfNeeded
(int numBlockBytes) FieldMetadata.getLastTerm()
UniformSplitTerms.getMax()
TermBytes.getTerm()
BlockReader.next()
IntersectBlockReader.next()
protected BytesRef
IntersectBlockReader.AutomatonNextTermCalculator.nextSeekTerm
(BytesRef term) protected BytesRef
BlockReader.nextTerm()
Moves to the next term line and reads it, it may be in the next block.protected BytesRef
IntersectBlockReader.nextTermInBlockMatching()
Finds the next block line that matches (accepted by the automaton), or null when at end of block.BlockReader.term()
Methods in org.apache.lucene.codecs.uniformsplit with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
void
Adds a [block key - block file pointer] entry to the dictionary.protected void
BlockWriter.addLine
(BytesRef term, BlockTermState blockTermState, IndexDictionary.Builder dictionaryBuilder) Adds a newBlockLine
term for the current field.protected int
BlockReader.compareToMiddleAndJump
(BytesRef searchedTerm) Compares the searched term to the middle term of the block.static int
TermBytes.computeMdpLength
(BytesRef previousTerm, BytesRef currentTerm) Computes the length of the minimal distinguishing prefix (MDP) between a current term and its previous term (terms are alphabetically sorted).protected void
BlockReader.initializeHeader
(BytesRef searchedTerm, long targetBlockStartFP) Reads and setsBlockReader.blockHeader
.UniformSplitTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) protected boolean
BlockReader.isBeyondLastTerm
(BytesRef searchedTerm, long blockStartFP) Indicates whether the searched term is beyond the last term of the field.protected boolean
BlockReader.isCurrentTerm
(BytesRef searchedTerm) protected boolean
IntersectBlockReader.AutomatonNextTermCalculator.isLinearState
(BytesRef term) True if the current state of the automata is best iterated linearly (without seeking).protected BytesRef
IntersectBlockReader.AutomatonNextTermCalculator.nextSeekTerm
(BytesRef term) static long
RamUsageUtil.ramBytesUsed
(BytesRef bytesRef) protected void
long
long
Seeks the given term in theIndexDictionary
and returns its corresponding block file pointer.boolean
void
Positions thisBlockReader
without re-seeking the term dictionary.boolean
void
protected TermsEnum.SeekStatus
BlockReader.seekInBlock
(BytesRef searchedTerm) Seeks to the provided term in this block.protected TermsEnum.SeekStatus
BlockReader.seekInBlock
(BytesRef searchedTerm, long blockStartFP) Seeks to the provided term in the block starting at the provided file pointer.void
FieldMetadata.setLastTerm
(BytesRef lastTerm) Constructors in org.apache.lucene.codecs.uniformsplit with parameters of type BytesRefModifierConstructorDescriptionFieldMetadata
(long dictionaryStartFP, long firstBlockStartFP, long lastBlockStartFP, BytesRef lastTerm) Constructs immutable virtual field metadata for reading.protected
IntersectBlockReader
(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder) -
Uses of BytesRef in org.apache.lucene.collation
Fields in org.apache.lucene.collation declared as BytesRef -
Uses of BytesRef in org.apache.lucene.collation.tokenattributes
Methods in org.apache.lucene.collation.tokenattributes that return BytesRef -
Uses of BytesRef in org.apache.lucene.document
Fields in org.apache.lucene.document declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
KeywordField.binaryValue
private BytesRef
StoredValue.binaryValue
private BytesRef
StringField.binaryValue
private BytesRef
ShapeDocValues.Writer.bytesRef
private final BytesRef
ShapeDocValues.data
the binary doc valueprivate final BytesRef
FeatureDoubleValuesSource.featureName
private final BytesRef
FeatureSortField.FeatureComparator.featureName
private final BytesRef
SortedSetDocValuesRangeQuery.lowerValue
private final BytesRef
SortedSetDocValuesRangeQuery.upperValue
private BytesRef
Field.BinaryTokenStream.value
Methods in org.apache.lucene.document that return BytesRefModifier and TypeMethodDescriptionBinaryRangeDocValues.binaryValue()
DoubleField.binaryValue()
Field.binaryValue()
FloatField.binaryValue()
IntField.binaryValue()
KeywordField.binaryValue()
LongField.binaryValue()
protected BytesRef
ShapeDocValues.binaryValue()
returns the encoded doc values field as aBytesRef
StringField.binaryValue()
private BytesRef
ShapeDocValues.computeBinaryValue
(List<ShapeField.DecodedTriangle> tessellation) 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.StoredValue.getBinaryValue()
Retrieve a binary value.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.(package private) BytesRef
ShapeDocValues.Writer.getBytesRef()
private static BytesRef
BinaryPoint.pack
(byte[]... point) 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 LatLonShapeDocValuesField
LatLonShape.createDocValueField
(String fieldName, BytesRef binaryValue) create aLatLonShapeDocValuesField
from an existing encoded representationstatic XYShapeDocValuesField
XYShape.createDocValueField
(String fieldName, BytesRef binaryValue) create aXYShapeDocValuesField
from an existing encoded representationstatic LatLonShapeDocValues
LatLonShape.createLatLonShapeDocValues
(BytesRef bytesRef) Factory method for creating theLatLonShapeDocValues
static XYShapeDocValues
XYShape.createXYShapeDocValues
(BytesRef bytesRef) Factory method for creating theXYShapeDocValues
protected abstract ShapeDocValues
BaseShapeDocValuesQuery.getShapeDocValues
(BytesRef binaryValue) protected ShapeDocValues
LatLonShapeDocValuesQuery.getShapeDocValues
(BytesRef binaryValue) protected ShapeDocValues
XYShapeDocValuesQuery.getShapeDocValues
(BytesRef binaryValue) static SortedDocValuesField
SortedDocValuesField.indexedField
(String name, BytesRef bytes) Creates a newSortedDocValuesField
with the specified 64-bit long value that also creates askip index
.static SortedSetDocValuesField
SortedSetDocValuesField.indexedField
(String name, BytesRef bytes) Creates a newSortedSetDocValuesField
with the specified 64-bit long value that also creates askip index
.static Query
KeywordField.newExactQuery
(String field, BytesRef value) Create a query for matching an exactBytesRef
value.static 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
StoredValue.setBinaryValue
(BytesRef value) Set a binary value.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
KeywordField.setBytesValue
(BytesRef value) void
LongPoint.setBytesValue
(BytesRef bytes) void
StringField.setBytesValue
(BytesRef value) void
static void
Unpack a BytesRef into a long point.Method parameters in org.apache.lucene.document with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic Query
KeywordField.newSetQuery
(String field, Collection<BytesRef> values) Create a query for matching any of a set of providedBytesRef
values.static Query
SortedDocValuesField.newSlowSetQuery
(String field, Collection<BytesRef> values) Create a query matching any of the specified values.static Query
SortedSetDocValuesField.newSlowSetQuery
(String field, Collection<BytesRef> values) Create a query matching any of the specified values.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.KeywordField
(String name, BytesRef value, Field.Store stored) Creates a new KeywordField.protected
LatLonShapeDocValues
(BytesRef binaryValue) protected ctor for instantiating a lat lon doc value based on an already retrieved binary formatprotected
LatLonShapeDocValuesField
(String name, BytesRef binaryValue) Creates aLatLonShapeDocValueField
from a given serialized value(package private)
creates the docvalue reader from the binary value(package private)
ShapeComparator
(BytesRef binaryValue) (package private)
ShapeDocValues
(BytesRef binaryValue) Creates aShapeDocValues
instance from a given serialized valueSortedDocValuesField
(String name, BytesRef bytes) Create a new sorted DocValues field.private
SortedDocValuesField
(String name, BytesRef bytes, FieldType fieldType) SortedSetDocValuesField
(String name, BytesRef bytes) Create a new sorted DocValues field.private
SortedSetDocValuesField
(String name, BytesRef bytes, FieldType fieldType) (package private)
SortedSetDocValuesRangeQuery
(String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive) 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
.StoredValue
(BytesRef value) Ctor for binary values.StringField
(String name, BytesRef value, Field.Store stored) Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token.protected
XYShapeDocValues
(BytesRef binaryValue) protected ctor for instantiating a cartesian doc value based on an already retrieved binary formatprotected
XYShapeDocValuesField
(String name, BytesRef binaryValue) Creates aXYShapeDocValueField
from a given serialized value -
Uses of BytesRef in org.apache.lucene.facet
Methods in org.apache.lucene.facet that return types with arguments of type BytesRef -
Uses of BytesRef in org.apache.lucene.facet.facetset
Methods in org.apache.lucene.facet.facetset that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef
FacetSetsField.toPackedValues
(FacetSet... facetSets) Methods in org.apache.lucene.facet.facetset with parameters of type BytesRefModifier and TypeMethodDescriptionint
Decodes the facet set dimension values into the given destination buffer and returns the number of bytes read.static int
FacetSetDecoder.decodeInts
(BytesRef bytesRef, int start, long[] dest) An implementation ofFacetSetDecoder.decode(BytesRef, int, long[])
for int/float dimension values which were encoded withIntFacetSet
andFloatFacetSet
respectively.static int
FacetSetDecoder.decodeLongs
(BytesRef bytesRef, int start, long[] dest) An implementation ofFacetSetDecoder.decode(BytesRef, int, long[])
for long/double dimension values which were encoded withLongFacetSet
andDoubleFacetSet
respectively.Constructors in org.apache.lucene.facet.facetset with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.facet.taxonomy
Fields in org.apache.lucene.facet.taxonomy declared as BytesRefMethods in org.apache.lucene.facet.taxonomy that return BytesRefModifier and TypeMethodDescriptionstatic BytesRef
FloatAssociationFacetField.floatToBytesRef
(float v) Encodes afloat
as a 4-byteBytesRef
.static BytesRef
IntAssociationFacetField.intToBytesRef
(int v) Encodes anint
as a 4-byteBytesRef
, big-endian.Methods in org.apache.lucene.facet.taxonomy with parameters of type BytesRefModifier and TypeMethodDescriptionstatic float
FloatAssociationFacetField.bytesRefToFloat
(BytesRef b) Decodes a previously encodedfloat
.static int
IntAssociationFacetField.bytesRefToInt
(BytesRef b) Decodes a previously encodedint
.Constructors in org.apache.lucene.facet.taxonomy with parameters of type BytesRefModifierConstructorDescriptionAssociationFacetField
(BytesRef assoc, String dim, String... path) Creates this fromdim
andpath
and an association -
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.(package private) BytesRef
FieldUpdatesBuffer.BufferedUpdate.binaryValue
a binary value or null if this buffer holds numeric updates(package private) final BytesRef
PrefixCodedTerms.TermIterator.bytes
(package private) BytesRef
Term.bytes
private final BytesRef
AutomatonTermsEnum.commonSuffixRef
private BytesRef
MultiTermsEnum.current
private BytesRef
TermsEnumIndex.currentTerm
(package private) final BytesRef
TermVectorsConsumer.flushTerm
Scratch term used by TermVectorsConsumerPerField.finishDocument.private BytesRef
FilteredTermsEnum.initialSeekTerm
private BytesRef
MultiTermsEnum.lastSeek
private BytesRef
FrozenBufferedUpdates.TermDocsIterator.lastTerm
private final BytesRef
AutomatonTermsEnum.linearUpperBound
private final BytesRef
FreqProxTermsWriter.SortingPostingsEnum.payload
private BytesRef
FrozenBufferedUpdates.TermDocsIterator.readerTerm
(package private) final BytesRef
FreqProxFields.FreqProxTermsEnum.scratch
(package private) final BytesRef
SortedDocValuesWriter.BufferedSortedDocValues.scratch
(package private) final BytesRef
SortedSetDocValuesWriter.BufferedSortedSetDocValues.scratch
private final BytesRef
SingleTermsEnum.singleRef
(package private) BytesRef
BufferedUpdatesStream.SegmentState.term
(package private) BytesRef
FieldUpdatesBuffer.BufferedUpdate.termValue
The update terms value.private final BytesRef
BinaryDocValuesFieldUpdates.Iterator.value
private final BytesRef
DocValuesUpdate.BinaryDocValuesUpdate.value
Methods in org.apache.lucene.index that return BytesRefModifier and TypeMethodDescriptionabstract BytesRef
BinaryDocValues.binaryValue()
Returns the binary value for the current document ID.(package private) BytesRef
BinaryDocValuesFieldUpdates.Iterator.binaryValue()
BinaryDocValuesWriter.BufferedBinaryDocValues.binaryValue()
BinaryDocValuesWriter.SortingBinaryDocValues.binaryValue()
(package private) abstract BytesRef
DocValuesFieldUpdates.Iterator.binaryValue()
Returns a binary value for the current document if this iterator is a binary value iterator.protected abstract BytesRef
DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates.binaryValue()
FilterBinaryDocValues.binaryValue()
IndexableField.binaryValue()
Non-null if this field has a binary valueIndexingChain.ReservedField.binaryValue()
(package private) BytesRef
NumericDocValuesFieldUpdates.Iterator.binaryValue()
protected BytesRef
NumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates.binaryValue()
Term.bytes()
Returns the bytes of this term, these should not be modified.ExitableDirectoryReader.ExitableTerms.getMax()
MultiTerms.getMax()
Terms.getMax()
Returns the largest term (in lexicographic order) in the field.ExitableDirectoryReader.ExitableTerms.getMin()
MultiTerms.getMin()
Terms.getMin()
Returns the smallest term (in lexicographic order) in the field.FilterLeafReader.FilterPostingsEnum.getPayload()
FreqProxFields.FreqProxDocsEnum.getPayload()
FreqProxFields.FreqProxPostingsEnum.getPayload()
FreqProxTermsWriter.SortingDocsEnum.getPayload()
FreqProxTermsWriter.SortingPostingsEnum.getPayload()
MappingMultiPostingsEnum.getPayload()
MultiPostingsEnum.getPayload()
abstract BytesRef
PostingsEnum.getPayload()
Returns the payload at this position, or null if no payload was indexed.SlowImpactsEnum.getPayload()
(package private) BytesRef
DocValuesUpdate.BinaryDocValuesUpdate.getValue()
FilterSortedDocValues.lookupOrd
(int ord) FilterSortedSetDocValues.lookupOrd
(long ord) MultiDocValues.MultiSortedDocValues.lookupOrd
(int ord) MultiDocValues.MultiSortedSetDocValues.lookupOrd
(long ord) SingletonSortedSetDocValues.lookupOrd
(long ord) abstract BytesRef
SortedDocValues.lookupOrd
(int ord) Retrieves the value for the specified ordinal.SortedDocValuesWriter.BufferedSortedDocValues.lookupOrd
(int ord) SortedDocValuesWriter.SortingSortedDocValues.lookupOrd
(int ord) abstract BytesRef
SortedSetDocValues.lookupOrd
(long ord) Retrieves the value for the specified ordinal.SortedSetDocValuesWriter.BufferedSortedSetDocValues.lookupOrd
(long ord) SortedSetDocValuesWriter.SortingSortedSetDocValues.lookupOrd
(long ord) ExitableDirectoryReader.ExitableTermsEnum.next()
FilteredTermsEnum.next()
FilterLeafReader.FilterTermsEnum.next()
FreqProxFields.FreqProxTermsEnum.next()
MultiTermsEnum.next()
PrefixCodedTerms.TermIterator.next()
SortedDocValuesTermsEnum.next()
SortedSetDocValuesTermsEnum.next()
(package private) BytesRef
TermsEnumIndex.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.private BytesRef
FieldUpdatesBuffer.BufferedUpdateIterator.nextTerm()
(package private) static BytesRef
FilteredTermsEnum.term()
FilterLeafReader.FilterTermsEnum.term()
FreqProxFields.FreqProxTermsEnum.term()
MultiTermsEnum.term()
SortedDocValuesTermsEnum.term()
SortedSetDocValuesTermsEnum.term()
abstract BytesRef
TermsEnum.term()
Returns current term.(package private) BytesRef
TermsEnumIndex.term()
Methods in org.apache.lucene.index that return types with arguments of type BytesRefMethods 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
(package private) abstract void
(package private) void
(package private) void
void
add a term.(package private) void
Called once per inverted token.private void
SortedDocValuesWriter.addOneValue
(BytesRef value) private void
SortedSetDocValuesWriter.addOneValue
(BytesRef value) void
PointValuesWriter.addPackedValue
(int docID, BytesRef value) (package private) void
void
void
void
private boolean
FrozenBufferedUpdates.TermDocsIterator.assertSorted
(BytesRef term) private static void
CheckIndex.checkTermsIntersect
(Terms terms, Automaton automaton, BytesRef startTerm) private int
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.void
ExitableDirectoryReader.ExitableTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) FreqProxTermsWriter.SortingTerms.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) long
SingletonSortedSetDocValues.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.(package private) DocIdSetIterator
(package private) static long
TermsEnumIndex.prefix8ToComparableUnsignedLong
(BytesRef term) Copy the first 8 bytes of the given term as a comparable unsigned long.BaseTermsEnum.prepareSeekExact
(BytesRef text) FilteredTermsEnum.prepareSeekExact
(BytesRef text) This enum does not support seeking!FilterLeafReader.FilterTermsEnum.prepareSeekExact
(BytesRef text) abstract IOBooleanSupplier
TermsEnum.prepareSeekExact
(BytesRef text) private boolean
(package private) static BytesRef
This enum does not support seeking!abstract TermsEnum.SeekStatus
Seeks to the specified term, if it exists, or to the next (ceiling) term.(package private) TermsEnum.SeekStatus
boolean
void
boolean
This enum does not support seeking!void
This enum does not support seeking!boolean
void
boolean
boolean
void
boolean
void
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()
.(package private) boolean
(package private) final void
Resets the field and text of a Term.protected final void
FilteredTermsEnum.setInitialSeekTerm
(BytesRef term) Use this method to set the initialBytesRef
to seek before iterating.private void
static 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 BytesRefModifierConstructorDescription(package private)
BinaryDocValuesUpdate
(Term term, String field, BytesRef value) private
BinaryDocValuesUpdate
(Term term, String field, BytesRef value, int docIDUpTo) (package private)
Iterator
(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen) SingleTermsEnum
(TermsEnum tenum, BytesRef termText) Creates a newSingleTermsEnum
.Constructs a Term with the given field and bytes. -
Uses of BytesRef in org.apache.lucene.index.memory
Fields in org.apache.lucene.index.memory declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.br
(package private) BytesRef
MemoryIndex.BinaryDocValuesProducer.dvBytesValuesSet
private BytesRef[]
MemoryIndex.Info.pointValues
Methods in org.apache.lucene.index.memory that return BytesRefModifier and TypeMethodDescriptionMemoryIndex.MemoryIndexReader.MemoryPostingsEnum.getPayload()
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.next()
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.term()
Methods in org.apache.lucene.index.memory with parameters of type BytesRefModifier and TypeMethodDescriptionprivate final int
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.binarySearch
(BytesRef b, BytesRef bytesRef, int low, int high, BytesRefHash hash, int[] ords) boolean
void
private static SortedDocValues
MemoryIndex.sortedDocValues
(BytesRef value) private void
MemoryIndex.storePointValues
(MemoryIndex.Info info, BytesRef pointValue) private void
MemoryIndex.storeTerm
(MemoryIndex.Info info, BytesRef term) -
Uses of BytesRef in org.apache.lucene.misc
Fields in org.apache.lucene.misc declared as BytesRefConstructors in org.apache.lucene.misc with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.misc.document
Methods in org.apache.lucene.misc.document that return BytesRef -
Uses of BytesRef in org.apache.lucene.misc.index
Fields in org.apache.lucene.misc.index with type parameters of type BytesRefConstructor parameters in org.apache.lucene.misc.index with type arguments of type BytesRef -
Uses of BytesRef in org.apache.lucene.misc.search
Methods in org.apache.lucene.misc.search that return BytesRefMethods in org.apache.lucene.misc.search with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as BytesRefModifier and TypeFieldDescriptionprivate static final BytesRef
WritableQueryIndex.EMPTY
(package private) final BytesRef
TermFilteredPresearcher.BytesRefHashIterator.scratch
private final BytesRef
RegexpQueryHandler.wildcardTokenBytes
Methods in org.apache.lucene.monitor that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]
MultipassTermFilteredPresearcher.convertHash
(BytesRefHash hash) TermFilteredPresearcher.BytesRefHashIterator.next()
MonitorQuerySerializer.serialize
(MonitorQuery query) Converts a MonitorQuery into a byte representationMethods in org.apache.lucene.monitor with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
void
Add a term from this documentMonitorQuerySerializer.deserialize
(BytesRef binaryValue) Builds a MonitorQuery from a byte representationstatic QueryTree
Returns a leaf node for a particular term and weightstatic TermWeightor
TermWeightor.termWeightor
(double weight, BytesRef... terms) QueryTerms with a term value from the selected set will be assigned the given weightboolean
Method parameters in org.apache.lucene.monitor with type arguments of type BytesRefModifier and TypeMethodDescriptionabstract Query
Presearcher.buildQuery
(LeafReader reader, BiPredicate<String, BytesRef> termAcceptor) Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.QueryIndex.QueryBuilder.buildQuery
(BiPredicate<String, BytesRef> termAcceptor) final Query
TermFilteredPresearcher.buildQuery
(LeafReader reader, BiPredicate<String, BytesRef> termAcceptor) abstract void
QueryTree.collectTerms
(BiConsumer<String, BytesRef> termCollector) Collect terms from the most highly-weighted path below this nodevoid
QueryTree.ConjunctionQueryTree.collectTerms
(BiConsumer<String, BytesRef> termCollector) void
QueryTree.DisjunctionQueryTree.collectTerms
(BiConsumer<String, BytesRef> termCollector) static TermWeightor
TermWeightor.termWeightor
(double weight, Set<BytesRef> terms) QueryTerms with a term value from the selected set will be assigned the given weight -
Uses of BytesRef in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRef
LiteralValueSource.bytesRef
protected final BytesRef
DocFreqValueSource.indexedBytes
protected final BytesRef
TotalTermFreqValueSource.indexedBytes
Constructors in org.apache.lucene.queries.function.valuesource with parameters of type BytesRefModifierConstructorDescriptionDocFreqValueSource
(String field, String val, String indexedField, BytesRef indexedBytes) IDFValueSource
(String field, String val, String indexedField, BytesRef indexedBytes) TermFreqValueSource
(String field, String val, String indexedField, BytesRef indexedBytes) TFValueSource
(String field, String val, String indexedField, BytesRef indexedBytes) TotalTermFreqValueSource
(String field, String val, String indexedField, BytesRef indexedBytes) -
Uses of BytesRef in org.apache.lucene.queries.intervals
Fields in org.apache.lucene.queries.intervals declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef
PayloadFilteredTermIntervalsSource.term
(package private) final BytesRef
TermIntervalsSource.term
Fields in org.apache.lucene.queries.intervals with type parameters of type BytesRefMethods in org.apache.lucene.queries.intervals with parameters of type BytesRefModifier and TypeMethodDescription(package private) static IntervalIterator
static IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Expert: Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that fall within the given rangestatic IntervalsSource
Intervals.range
(BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper, int maxExpansions) Expert: Return anIntervalsSource
over the disjunction of all terms that fall within the given rangestatic IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that match a regular expressionstatic IntervalsSource
Expert: Return anIntervalsSource
over the disjunction of all terms that match a regular expressionstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that match a wildcard globstatic IntervalsSource
Expert: Return anIntervalsSource
over the disjunction of all terms that match a wildcard globMethod parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionConstructors in org.apache.lucene.queries.intervals with parameters of type BytesRefModifierConstructorDescription(package private)
PayloadFilteredTermIntervalsSource
(BytesRef term, Predicate<BytesRef> filter) (package private)
TermIntervalsSource
(BytesRef term) Constructor parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRefModifierConstructorDescription(package private)
PayloadFilteredTermIntervalsSource
(BytesRef term, Predicate<BytesRef> filter) -
Uses of BytesRef in org.apache.lucene.queries.payloads
Fields in org.apache.lucene.queries.payloads with type parameters of type BytesRefMethods in org.apache.lucene.queries.payloads with parameters of type BytesRefModifier and TypeMethodDescriptionboolean
PayloadMatcher.comparePayload
(BytesRef source, BytesRef payload) This method tests if two BytesRef match.boolean
PayloadMatcherFactory.EQPayloadMatcher.comparePayload
(BytesRef source, BytesRef payload) boolean
PayloadMatcherFactory.FloatPayloadMatcher.comparePayload
(BytesRef source, BytesRef payload) boolean
PayloadMatcherFactory.IntPayloadMatcher.comparePayload
(BytesRef source, BytesRef payload) boolean
PayloadMatcherFactory.StringPayloadMatcher.comparePayload
(BytesRef source, BytesRef payload) float
PayloadDecoder.computePayloadFactor
(BytesRef payload) Compute a float value for the given payloadConstructor parameters in org.apache.lucene.queries.payloads with type arguments of type BytesRefModifierConstructorDescriptionSpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch) SpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation) -
Uses of BytesRef in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
QueryParserBase.analyzeWildcard
(String field, String termStr) -
Uses of BytesRef in org.apache.lucene.queryparser.flexible.standard.nodes
Methods in org.apache.lucene.queryparser.flexible.standard.nodes that return BytesRef -
Uses of BytesRef in org.apache.lucene.sandbox.codecs.idversion
Fields in org.apache.lucene.sandbox.codecs.idversion declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
VersionBlockTreeTermsWriter.FieldMetaData.maxTerm
The field for themaxTerm
record component.(package private) final BytesRef
VersionFieldReader.maxTerm
private final BytesRef
VersionBlockTreeTermsWriter.FieldMetaData.minTerm
The field for theminTerm
record component.(package private) final BytesRef
VersionFieldReader.minTerm
private final BytesRef
SinglePostingsEnum.payload
final BytesRef
VersionBlockTreeTermsWriter.PendingBlock.prefix
Fields in org.apache.lucene.sandbox.codecs.idversion with type parameters of type BytesRefModifier and TypeFieldDescription(package private) FST.Arc
<PairOutputs.Pair<BytesRef, Long>> IDVersionSegmentTermsEnumFrame.arc
(package private) static final PairOutputs
<BytesRef, Long> VersionBlockTreeTermsWriter.FST_OUTPUTS
VersionBlockTreeTermsWriter.PendingBlock.index
(package private) final FST
<PairOutputs.Pair<BytesRef, Long>> VersionFieldReader.index
(package private) static final PairOutputs.Pair
<BytesRef, Long> VersionBlockTreeTermsWriter.NO_OUTPUT
private final PairOutputs.Pair
<BytesRef, Long> VersionBlockTreeTermsWriter.FieldMetaData.rootCode
The field for therootCode
record component.(package private) final PairOutputs.Pair
<BytesRef, Long> VersionFieldReader.rootCode
VersionBlockTreeTermsWriter.PendingBlock.subIndices
Methods in org.apache.lucene.sandbox.codecs.idversion that return BytesRefModifier and TypeMethodDescriptionVersionFieldReader.getMax()
VersionFieldReader.getMin()
SingleDocsEnum.getPayload()
SinglePostingsEnum.getPayload()
VersionBlockTreeTermsWriter.FieldMetaData.maxTerm()
Returns the value of themaxTerm
record component.VersionBlockTreeTermsWriter.FieldMetaData.minTerm()
Returns the value of theminTerm
record component.IDVersionSegmentTermsEnum.next()
private static BytesRef
VersionBlockTreeTermsReader.readBytesRef
(IndexInput in) IDVersionSegmentTermsEnum.term()
Methods in org.apache.lucene.sandbox.codecs.idversion that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprivate FST.Arc
<PairOutputs.Pair<BytesRef, Long>> IDVersionSegmentTermsEnum.getArc
(int ord) VersionBlockTreeTermsWriter.FieldMetaData.rootCode()
Returns the value of therootCode
record component.Methods in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
IDVersionPostingsWriter.addPosition
(int position, BytesRef payload, int startOffset, int endOffset) static long
IDVersionPostingsFormat.bytesToLong
(BytesRef bytes) static void
IDVersionPostingsFormat.longToBytes
(long v, BytesRef bytes) private boolean
IDVersionSegmentTermsEnumFrame.prefixMatches
(BytesRef target) private void
Pushes the new term to the top of the stack, and writes new blocks.void
IDVersionSegmentTermsEnumFrame.scanToFloorFrame
(BytesRef target) IDVersionSegmentTermsEnumFrame.scanToTerm
(BytesRef target, boolean exactOnly) IDVersionSegmentTermsEnumFrame.scanToTermLeaf
(BytesRef target, boolean exactOnly) IDVersionSegmentTermsEnumFrame.scanToTermNonLeaf
(BytesRef target, boolean exactOnly) boolean
boolean
Optimized version ofIDVersionSegmentTermsEnum.seekExact(BytesRef)
that can sometimes fail-fast if the version indexed with the requested ID is less than the specified minIDVersion.void
void
IDVersionSegmentTermsEnumFrame.setFloorData
(ByteArrayDataInput in, BytesRef source) void
VersionBlockTreeTermsWriter.TermsWriter.write
(BytesRef text, TermsEnum termsEnum, NormsProducer norms) Writes one term's worth of postings.private static void
VersionBlockTreeTermsWriter.writeBytesRef
(IndexOutput out, BytesRef bytes) Method parameters in org.apache.lucene.sandbox.codecs.idversion with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate void
VersionBlockTreeTermsWriter.PendingBlock.append
(FSTCompiler<PairOutputs.Pair<BytesRef, Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef, Long>> subIndex, IntsRefBuilder scratchIntsRef) private void
VersionBlockTreeTermsWriter.PendingBlock.append
(FSTCompiler<PairOutputs.Pair<BytesRef, Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef, Long>> subIndex, IntsRefBuilder scratchIntsRef) (package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum.pushFrame
(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, long fp, int length) (package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum.pushFrame
(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, PairOutputs.Pair<BytesRef, Long> frameData, int length) (package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum.pushFrame
(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, PairOutputs.Pair<BytesRef, Long> frameData, int length) Constructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRefModifierConstructorDescriptionprivate
FieldMetaData
(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef, Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm) Creates an instance of aFieldMetaData
record class.PendingBlock
(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<PairOutputs.Pair<BytesRef, Long>>> subIndices) PendingTerm
(BytesRef term, BlockTermState state) (package private)
VersionFieldReader
(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef, Long> rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) Constructor parameters in org.apache.lucene.sandbox.codecs.idversion with type arguments of type BytesRefModifierConstructorDescriptionprivate
FieldMetaData
(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef, Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm) Creates an instance of aFieldMetaData
record class.PendingBlock
(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<PairOutputs.Pair<BytesRef, Long>>> subIndices) (package private)
VersionFieldReader
(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef, Long> rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) -
Uses of BytesRef in org.apache.lucene.sandbox.document
Methods in org.apache.lucene.sandbox.document that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef
BigIntegerPoint.pack
(BigInteger... point) private static BytesRef
HalfFloatPoint.pack
(float... point) Methods in org.apache.lucene.sandbox.document with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
BigIntegerPoint.setBytesValue
(BytesRef bytes) void
HalfFloatPoint.setBytesValue
(BytesRef bytes) -
Uses of BytesRef in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRef
PhraseWildcardQuery.TermBytesTermState.termBytes
protected final BytesRef
PhraseWildcardQuery.TermStats.termBytes
private final BytesRef[]
CombinedFieldQuery.terms
Fields in org.apache.lucene.sandbox.search with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final IntObjectHashMap
<BytesRef> TermAutomatonQuery.idToTerm
CombinedFieldQuery.Builder.termsSet
TermAutomatonQuery.termToID
Methods in org.apache.lucene.sandbox.search that return BytesRefMethods in org.apache.lucene.sandbox.search that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprotected Map
<BytesRef, PhraseWildcardQuery.TermStats> PhraseWildcardQuery.createTermStatsMap
(PhraseWildcardQuery.MultiTerm multiTerm) Creates aPhraseWildcardQuery.TermStats
map for aPhraseWildcardQuery.MultiTerm
.Methods in org.apache.lucene.sandbox.search with parameters of type BytesRefModifier and TypeMethodDescriptionAdds a term to this builder.Adds a single term at the next position in the phrase.void
TermAutomatonQuery.addTransition
(int source, int dest, BytesRef term) Adds a transition to the automaton.private int
Method parameters in org.apache.lucene.sandbox.search with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected List
<PhraseWildcardQuery.TermBytesTermState> PhraseWildcardQuery.collectMultiTermDataForSegment
(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext, int remainingExpansions, MutableValueBool shouldStopSegmentIteration, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap) Collects theTermState
list andTermStatistics
for a multi-term on a specific index segment.protected void
PhraseWildcardQuery.collectMultiTermStats
(IndexSearcher searcher, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap, PhraseWildcardQuery.TermsData termsData, PhraseWildcardQuery.TermData termData) Collect the term stats across all segments.Constructors in org.apache.lucene.sandbox.search with parameters of type BytesRefModifierConstructorDescriptionprivate
CombinedFieldQuery
(TreeMap<String, CombinedFieldQuery.FieldAndWeight> fieldAndWeights, BytesRef[] terms) TermBytesTermState
(BytesRef termBytes, TermState termState) protected
-
Uses of BytesRef in org.apache.lucene.search
Fields in org.apache.lucene.search declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
FieldComparator.TermValComparator.bottom
private BytesRef
FuzzyTermsEnum.bottomTerm
private BytesRef
MaxNonCompetitiveBoostAttributeImpl.competitiveTerm
private final BytesRef
TermRangeQuery.lowerTerm
private BytesRef
PointInSetQuery.MergePointVisitor.nextQueryPoint
private BytesRef
FuzzyTermsEnum.queuedBottom
private BytesRef
TermInSetQuery.SetEnum.seekTerm
(package private) final BytesRef
AbstractMultiTermQueryConstantScoreWrapper.TermAndState.term
private final BytesRef
SynonymQuery.TermAndBoost.term
The field for theterm
record component.private final BytesRef
TermStatistics.term
The field for theterm
record component.private BytesRef
FieldComparator.TermValComparator.topValue
private final BytesRef
TermRangeQuery.upperTerm
private final BytesRef[]
FieldComparator.TermValComparator.values
Fields in org.apache.lucene.search with type parameters of type BytesRefMethods 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 queryprivate BytesRef
FieldComparator.TermValComparator.getValueForDoc
(int doc) SortedSetSelector.MaxValue.lookupOrd
(int ord) SortedSetSelector.MiddleMaxValue.lookupOrd
(int ord) SortedSetSelector.MiddleMinValue.lookupOrd
(int ord) SortedSetSelector.MinValue.lookupOrd
(int ord) FuzzyTermsEnum.next()
abstract BytesRef
PointInSetQuery.Stream.next()
protected BytesRef
TermInSetQuery.SetEnum.nextSeekTerm
(BytesRef currentTerm) FuzzyTermsEnum.term()
SynonymQuery.TermAndBoost.term()
Returns the value of theterm
record component.TermStatistics.term()
Returns the value of theterm
record component.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 TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatus
Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
.private void
FuzzyTermsEnum.bottomChanged
(BytesRef lastTerm) fired when the max non-competitive boost has changed.boolean
abstract boolean
return false to stop collectingint
FieldComparator.TermValComparator.compareValues
(BytesRef val1, BytesRef val2) private TermsEnum
FuzzyTermsEnum.getAutomatonEnum
(int editDistance, BytesRef lastTerm) return an automata-based enum for matching up to editDistance from lastTerm, if possibleint
SortedSetSelector.MaxValue.lookupTerm
(BytesRef key) int
SortedSetSelector.MiddleMaxValue.lookupTerm
(BytesRef key) int
SortedSetSelector.MiddleMinValue.lookupTerm
(BytesRef key) int
SortedSetSelector.MinValue.lookupTerm
(BytesRef key) private boolean
returns true if term is within k edits of the query termprotected BytesRef
TermInSetQuery.SetEnum.nextSeekTerm
(BytesRef currentTerm) FuzzyTermsEnum.prepareSeekExact
(BytesRef text) 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
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) private static Term[]
Method parameters in org.apache.lucene.search with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate static PrefixCodedTerms
TermInSetQuery.packTerms
(String field, Collection<BytesRef> terms) void
SortField.setBytesComparator
(Comparator<BytesRef> b) Constructors 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
.private
TermAndBoost
(BytesRef term, float boost) Creates an instance of aTermAndBoost
record class.(package private)
TermAndState
(BytesRef term, TermState state, int docFreq, long totalTermFreq) 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) TermInSetQuery
(MultiTermQuery.RewriteMethod rewriteMethod, String field, Collection<BytesRef> terms) Creates a newTermInSetQuery
from the given collection of terms. -
Uses of BytesRef in org.apache.lucene.search.comparators
Fields in org.apache.lucene.search.comparators declared as BytesRefModifier and TypeFieldDescription(package private) BytesRef
TermOrdValComparator.bottomValue
(package private) BytesRef
TermOrdValComparator.topValue
Set by setTopValue.(package private) final BytesRef[]
TermOrdValComparator.values
Methods in org.apache.lucene.search.comparators that return BytesRefMethods in org.apache.lucene.search.comparators with parameters of type BytesRefModifier and TypeMethodDescriptionint
TermOrdValComparator.compareValues
(BytesRef val1, BytesRef val2) void
TermOrdValComparator.setTopValue
(BytesRef value) -
Uses of BytesRef in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRef
GroupFacetCollector.facetPrefix
private final BytesRef
TermGroupFacetCollector.GroupedFacetHit.facetValue
The field for thefacetValue
record component.private final BytesRef
TermGroupFacetCollector.GroupedFacetHit.groupValue
The field for thegroupValue
record component.protected BytesRef
GroupFacetCollector.SegmentResult.mergeTerm
private BytesRef
TermGroupSelector.scratch
private final BytesRef
GroupFacetCollector.FacetEntry.value
The field for thevalue
record component.Methods in org.apache.lucene.search.grouping that return BytesRefModifier and TypeMethodDescriptionTermGroupSelector.copyValue()
TermGroupSelector.currentValue()
TermGroupFacetCollector.GroupedFacetHit.facetValue()
Returns the value of thefacetValue
record component.TermGroupFacetCollector.GroupedFacetHit.groupValue()
Returns the value of thegroupValue
record component.GroupFacetCollector.FacetEntry.value()
Returns the value of thevalue
record component.Methods in org.apache.lucene.search.grouping with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
GroupFacetCollector.GroupedFacetResult.addFacetCount
(BytesRef facetValue, int count) static TermGroupFacetCollector
TermGroupFacetCollector.createTermGroupFacetCollector
(String groupField, String facetField, boolean facetFieldMultivalued, BytesRef facetPrefix, int initialSize) Factory method for creating the right implementation based on the fact whether the facet field contains multiple tokens per documents.Method parameters in org.apache.lucene.search.grouping with type arguments of type BytesRefModifier and TypeMethodDescriptionvoid
TermGroupSelector.setGroups
(Collection<SearchGroup<BytesRef>> searchGroups) Constructors in org.apache.lucene.search.grouping with parameters of type BytesRefModifierConstructorDescriptionFacetEntry
(BytesRef value, int count) Creates an instance of aFacetEntry
record class.private
GroupedFacetHit
(BytesRef groupValue, BytesRef facetValue) Creates an instance of aGroupedFacetHit
record class.protected
GroupFacetCollector
(String groupField, String facetField, BytesRef facetPrefix) (package private)
(package private)
(package private)
TermGroupFacetCollector
(String groupField, String facetField, BytesRef facetPrefix, int initialSize) -
Uses of BytesRef in org.apache.lucene.search.join
Fields in org.apache.lucene.search.join declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
SeekingTermSetTermsEnum.lastTerm
private BytesRef
PointInSetIncludingScoreQuery.MergePointVisitor.nextQueryPoint
private final BytesRef
PointInSetIncludingScoreQuery.MergePointVisitor.scratch
private BytesRef
SeekingTermSetTermsEnum.seekTerm
private final BytesRef
SeekingTermSetTermsEnum.spare
Methods in org.apache.lucene.search.join that return BytesRefModifier and TypeMethodDescriptionToParentDocValues.SortedDVs.lookupOrd
(int ord) protected BytesRef
SeekingTermSetTermsEnum.nextSeekTerm
(BytesRef currentTerm) Methods in org.apache.lucene.search.join with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatus
protected BytesRef
SeekingTermSetTermsEnum.nextSeekTerm
(BytesRef currentTerm) -
Uses of BytesRef in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as BytesRefModifier and TypeFieldDescriptionDirectSpellChecker.ScoreTerm.term
The actual spellcheck correction.Methods in org.apache.lucene.search.spell that return BytesRefModifier and TypeMethodDescriptionHighFrequencyDictionary.HighFrequencyIterator.next()
PlainTextDictionary.FileIterator.next()
HighFrequencyDictionary.HighFrequencyIterator.payload()
Methods in org.apache.lucene.search.spell that return types with arguments of type BytesRef -
Uses of BytesRef in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
DocumentDictionary.DocumentInputIterator.currentPayload
final BytesRef
Lookup.LookupResult.payload
the key's payload (null if not present)private BytesRef
SortedInputIterator.payload
Fields in org.apache.lucene.search.suggest with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final Comparator
<BytesRef> InMemorySorter.comparator
private final Comparator
<BytesRef> SortedInputIterator.comparator
Lookup.LookupResult.contexts
the key's contexts (null if not present)SortedInputIterator.contexts
BufferedInputIterator.contextSets
buffered context set entriesDocumentDictionary.DocumentInputIterator.currentContexts
private final Comparator
<BytesRef> SortedInputIterator.tieBreakByCostComparator
Sortes by BytesRef (ascending) then cost (ascending).Methods in org.apache.lucene.search.suggest that return BytesRefModifier and TypeMethodDescriptionprotected BytesRef
SortedInputIterator.decodePayload
(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the payload at the current positionBufferedInputIterator.next()
DocumentDictionary.DocumentInputIterator.next()
FileDictionary.FileIterator.next()
InputIterator.InputIteratorWrapper.next()
SortedInputIterator.next()
UnsortedInputIterator.next()
BufferedInputIterator.payload()
DocumentDictionary.DocumentInputIterator.payload()
FileDictionary.FileIterator.payload()
InputIterator.InputIteratorWrapper.payload()
InputIterator.payload()
An arbitrary byte[] to record per suggestion.SortedInputIterator.payload()
UnsortedInputIterator.payload()
Methods in org.apache.lucene.search.suggest that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBufferedInputIterator.contexts()
DocumentDictionary.DocumentInputIterator.contexts()
FileDictionary.FileIterator.contexts()
InputIterator.contexts()
A term's contexts context can be used to filter suggestions.InputIterator.InputIteratorWrapper.contexts()
SortedInputIterator.contexts()
UnsortedInputIterator.contexts()
SortedInputIterator.decodeContexts
(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the contexts at the current positionInMemorySorter.getComparator()
Methods in org.apache.lucene.search.suggest with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
protected long
SortedInputIterator.decode
(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the weight at the current positionSortedInputIterator.decodeContexts
(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the contexts at the current positionprotected BytesRef
SortedInputIterator.decodePayload
(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the payload at the current positionprotected void
SortedInputIterator.encode
(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writerMethod parameters in org.apache.lucene.search.suggest with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected void
SortedInputIterator.encode
(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writerabstract List
<Lookup.LookupResult> Lookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) Look up a key and return possible completion for this key.Constructors in org.apache.lucene.search.suggest with parameters of type BytesRefModifierConstructorDescriptionLookupResult
(CharSequence key, long value, BytesRef payload) Create a new result from a key+weight+payload triple.LookupResult
(CharSequence key, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+weight+payload+contexts triple.LookupResult
(CharSequence key, Object highlightKey, long value, BytesRef payload) Create a new result from a key+highlightKey+weight+payload triple.LookupResult
(CharSequence key, Object highlightKey, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+highlightKey+weight+payload+contexts triple.Constructor parameters in org.apache.lucene.search.suggest with type arguments of type BytesRefModifierConstructorDescriptionInMemorySorter
(Comparator<BytesRef> comparator) Creates an InMemorySorter, sorting entries by the provided comparator.LookupResult
(CharSequence key, long value, Set<BytesRef> contexts) Create a new result from a key+weight+contexts triple.LookupResult
(CharSequence key, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+weight+payload+contexts triple.LookupResult
(CharSequence key, Object highlightKey, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+highlightKey+weight+payload+contexts triple.SortedInputIterator
(Directory tempDir, String tempFileNamePrefix, InputIterator source, Comparator<BytesRef> comparator) Creates a new sorted wrapper, sorting by BytesRef (ascending) then cost (ascending). -
Uses of BytesRef in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
AnalyzingSuggester.AnalyzingComparator.scratchA
private final BytesRef
AnalyzingSuggester.AnalyzingComparator.scratchB
Fields in org.apache.lucene.search.suggest.analyzing with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate FST
<PairOutputs.Pair<Long, BytesRef>> AnalyzingSuggester.fst
FST<Weight,Surface>: input is the analyzed form, with a null byte between terms weights are encoded as costs: (Integer.MAX_VALUE-weight) surface is the original, unanalyzed form.(package private) static final Comparator
<PairOutputs.Pair<Long, BytesRef>> AnalyzingSuggester.weightComparator
Methods in org.apache.lucene.search.suggest.analyzing that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprotected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Methods in org.apache.lucene.search.suggest.analyzing with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Adds a new suggestion.void
AnalyzingInfixSuggester.addContextToQuery
(BooleanQuery.Builder query, BytesRef context, BooleanClause.Occur clause) This method is handy as we do not need access to internal fields such as CONTEXTS_FIELD_NAME in order to build queries However, here may not be its best location.private Document
AnalyzingInfixSuggester.buildDocument
(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) int
private int
FreeTextSuggester.countGrams
(BytesRef token) private Lookup.LookupResult
AnalyzingSuggester.getLookupResult
(Long output1, BytesRef output2, CharsRefBuilder spare) private Long
FreeTextSuggester.lookupPrefix
(FST<Long> fst, FST.BytesReader bytesReader, BytesRef scratch, FST.Arc<Long> arc) private boolean
AnalyzingSuggester.sameSurfaceForm
(BytesRef key, BytesRef output2) (package private) final Automaton
AnalyzingSuggester.toAutomaton
(BytesRef surfaceForm, TokenStreamToAutomaton ts2a) void
AnalyzingInfixSuggester.update
(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) Updates a previous suggestion, matching the exact same text as before.Method parameters in org.apache.lucene.search.suggest.analyzing with type arguments of type BytesRefModifier and TypeMethodDescriptionvoid
Adds a new suggestion.private Document
AnalyzingInfixSuggester.buildDocument
(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) protected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) protected List
<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths
(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) AnalyzingInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) Retrieve suggestions, specifying whether all terms must match (allTermsRequired
) and whether the hits should be highlighted (doHighlight
).AnalyzingInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) AnalyzingInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) Lookup, with context but without booleans.AnalyzingSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) BlendedInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) FreeTextSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) FreeTextSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num) Retrieve suggestions.private BooleanQuery
AnalyzingInfixSuggester.toQuery
(Map<BytesRef, BooleanClause.Occur> contextInfo) private BooleanQuery
void
AnalyzingInfixSuggester.update
(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) Updates a previous suggestion, matching the exact same text as before. -
Uses of BytesRef in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRef
CompletionTokenStream.payload
private final BytesRef
NRTSuggesterBuilder.Entry.payload
The field for thepayload
record component.private final BytesRef
SuggestField.surfaceForm
Fields in org.apache.lucene.search.suggest.document with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final FST
<PairOutputs.Pair<Long, BytesRef>> NRTSuggester.fst
FSTinvalid input: '<'Weight,Surface>: input is the analyzed form, with a null byte between terms and aNRTSuggesterBuilder.END_BYTE
to denote the end of the input weight is a long surface is the original, unanalyzed form followed by the docIDprivate final FSTCompiler
<PairOutputs.Pair<Long, BytesRef>> NRTSuggesterBuilder.fstCompiler
private final PairOutputs
<Long, BytesRef> NRTSuggesterBuilder.outputs
Methods in org.apache.lucene.search.suggest.document that return BytesRefModifier and TypeMethodDescriptionprivate BytesRef
SuggestField.buildSuggestPayload()
(package private) static BytesRef
NRTSuggesterBuilder.Entry.payload()
Returns the value of thepayload
record component.Methods in org.apache.lucene.search.suggest.document with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Adds an entry for the latest input term, should be called afterNRTSuggesterBuilder.startTerm(org.apache.lucene.util.BytesRef)
on the desired input(package private) static BytesRef
(package private) static int
NRTSuggester.PayLoadProcessor.parseSurfaceForm
(BytesRef output, int payloadSep, CharsRefBuilder spare) void
CompletionTokenStream.setPayload
(BytesRef payload) Sets a payload available throughout successive token stream enumerationvoid
Initializes an FST input term to add entries againstvoid
Writes all postings (surface form, weight, document id) forterm
Method parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRefModifier and TypeMethodDescriptionint
NRTSuggester.ScoringPathComparator.compare
(Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> first, Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> second) Constructors in org.apache.lucene.search.suggest.document with parameters of type BytesRefModifierConstructorDescriptionprivate
Creates an instance of aEntry
record class.Constructor parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRefModifierConstructorDescriptionprivate
NRTSuggester
(FST<PairOutputs.Pair<Long, BytesRef>> fst, int maxAnalyzedPathsPerOutput, int payloadSep) -
Uses of BytesRef in org.apache.lucene.search.suggest.fst
Fields in org.apache.lucene.search.suggest.fst declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRef
FSTCompletion.Completion.utf8
UTF-8 bytes of the suggestionMethods in org.apache.lucene.search.suggest.fst that return BytesRefMethods in org.apache.lucene.search.suggest.fst that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBytesRefSorter.getComparator()
Comparator used to determine the sort order of entries.ExternalRefSorter.getComparator()
Methods in org.apache.lucene.search.suggest.fst with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
Adds a single suggestion entry (possibly compound with its bucket).void
void
Appends a single suggestion and its weight to the internal buffers.private Stream
<? extends FSTCompletion.Completion> FSTCompletion.completionStream
(BytesRef output, int bucket, FST.Arc<Object> fromArc) Return a stream of all completions starting from the provided arc.protected long
WFSTCompletionLookup.WFSTInputIterator.decode
(BytesRef scratch, ByteArrayDataInput tmpInput) private boolean
FSTCompletion.descendWithPrefix
(FST.Arc<Object> arc, BytesRef utf8) Descend along the path starting atarc
and going through bytes in the argument.protected void
WFSTCompletionLookup.WFSTInputIterator.encode
(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) private int
FSTCompletion.getExactMatchStartingFromRootArc
(int rootArcIndex, BytesRef utf8) Returns the first exact match by traversing root arcs, starting from the arcrootArcIndex
.private Long
WFSTCompletionLookup.lookupPrefix
(BytesRef scratch, FST.Arc<Long> arc) private Stream
<FSTCompletion.Completion> FSTCompletion.lookupSortedByWeight
(BytesRef key) Lookup suggestions sorted by weight (descending order).Method parameters in org.apache.lucene.search.suggest.fst with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected void
WFSTCompletionLookup.WFSTInputIterator.encode
(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) FSTCompletionLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean higherWeightsFirst, int num) WFSTCompletionLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) Constructors in org.apache.lucene.search.suggest.fst with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.search.suggest.tst
Fields in org.apache.lucene.search.suggest.tst with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate static final Comparator
<BytesRef> TSTLookup.utf8SortedAsUTF16SortOrder
TST uses UTF-16 sorting, so we need a suitable BytesRef comparator to do this.Method parameters in org.apache.lucene.search.suggest.tst with type arguments of type BytesRefModifier and TypeMethodDescriptionTSTLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) -
Uses of BytesRef in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef[]
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.matchDescriptions
private BytesRef[]
Passage.matchTerms
(package private) final BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.term
private final BytesRef
OffsetsEnum.OfPostings.term
private final BytesRef
PhraseHelper.SpanCollectedOffsetsEnum.term
private final BytesRef[]
UHComponents.terms
The field for theterms
record component.Fields in org.apache.lucene.search.uhighlight with type parameters of type BytesRefModifier and TypeFieldDescriptionPhraseHelper.positionInsensitiveTerms
OffsetsEnum.OfMatchesIteratorWithSubs.queryToTermMap
OffsetsEnum.OfMatchesIterator.termSupplier
(package private) Map
<BytesRef, PhraseHelper.SpanCollectedOffsetsEnum> PhraseHelper.OffsetSpanCollector.termToOffsetsEnums
Methods in org.apache.lucene.search.uhighlight that return BytesRefModifier and TypeMethodDescriptionprotected static BytesRef[]
UnifiedHighlighter.filterExtractedTerms
(Predicate<String> fieldMatcher, Set<Term> queryTerms) BytesRef[]
PhraseHelper.getAllPositionInsensitiveTerms()
Returns the terms that are position-insensitive (sorted).BytesRef[]
Passage.getMatchTerms()
BytesRef (term text) of the matches, corresponding withPassage.getMatchStarts()
.abstract BytesRef
OffsetsEnum.getTerm()
The term at this position.OffsetsEnum.MultiOffsetsEnum.getTerm()
OffsetsEnum.OfMatchesIterator.getTerm()
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.getTerm()
OffsetsEnum.OfMatchesIteratorWithSubs.getTerm()
OffsetsEnum.OfPostings.getTerm()
PhraseHelper.SpanCollectedOffsetsEnum.getTerm()
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.getTerm()
private BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs.queryToTerm
(Query query) Maps a Query fromMatchesIterator.getQuery()
toOffsetsEnum.getTerm()
.BytesRef[]
UHComponents.terms()
Returns the value of theterms
record component.Methods in org.apache.lucene.search.uhighlight with parameters of type BytesRefModifier and TypeMethodDescriptionvoid
private static CharArrayMatcher[]
TokenStreamOffsetStrategy.convertTermsToMatchers
(BytesRef[] terms, CharArrayMatcher[] matchers) protected void
FieldOffsetStrategy.createOffsetsEnumsForTerms
(BytesRef[] sourceTerms, Terms termsIndex, int doc, List<OffsetsEnum> results) TermVectorFilteredLeafReader.TermsFilteredTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Method parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRefConstructors in org.apache.lucene.search.uhighlight with parameters of type BytesRefModifierConstructorDescriptionprivate
OfPostings
(BytesRef term, int freq, PostingsEnum postingsEnum) OfPostings
(BytesRef term, PostingsEnum postingsEnum) private
SpanCollectedOffsetsEnum
(BytesRef term, int postingsFreq) UHComponents
(String field, Predicate<String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, Set<UnifiedHighlighter.HighlightFlag> highlightFlags) Creates an instance of aUHComponents
record class.Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRefModifierConstructorDescriptionOfMatchesIterator
(MatchesIterator matchesIterator, Supplier<BytesRef> termSupplier) -
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.(package private) BytesRef
OfflineSorter.FileAndTop.current
protected final BytesRef
StringSorter.pivot
private final BytesRef
BytesRefBuilder.ref
protected final BytesRef
StringSorter.scratchBytes1
protected final BytesRef
StringSorter.scratchBytes2
private final BytesRef
QueryBuilder.TermAndBoost.term
The field for theterm
record component.private final BytesRef
TermAndVector.term
The field for theterm
record component.Fields in org.apache.lucene.util with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final Comparator
<BytesRef> StringSorter.cmp
private final Comparator
<BytesRef> OfflineSorter.comparator
static 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
.QueryBuilder.TermAndBoost.term()
Returns the value of theterm
record component.TermAndVector.term()
Returns the value of theterm
record component.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
int
BytesRefBlockPool.addBytesRef
(BytesRef bytes) Add a term returning the start position on the underlyingByteBlockPool
.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.int
Appends a copy of the givenBytesRef
to thisBytesRefArray
.int
Append a new valueprotected 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 String
ToStringUtils.bytesRefToString
(BytesRef b) Builds a String with both textual representation of theBytesRef
data and the bytes hex values.static int
UnicodeUtil.codePointCount
(BytesRef utf8) Returns the number of code points in this UTF8 sequence.final int
int
Compare two bytes refs that first k bytes are already guaranteed to be equal.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.(package private) boolean
Computes the equality between the BytesRef at the start position with the provided BytesRef.void
Reads length as 1 or 2 byte vInt prefix, starting at start.void
BytesRefBlockPool.fillBytesRef
(BytesRef term, int start) Populates the given BytesRef with the term starting at start.void
Gets a slice out ofPagedBytes
starting at start with a given length.int
Returns the id of the givenBytesRef
.private int
Populates and returns aBytesRef
with the bytes for the given bytesID.protected abstract void
StringSorter.get
(BytesRefBuilder builder, BytesRef result, int i) static int
StringHelper.murmurhash3_x86_32
(BytesRef bytes, int seed) (package private) void
ByteBlockPool.setBytesRef
(BytesRefBuilder builder, BytesRef result, long offset, int length) Fill the providedBytesRef
with the bytes at the specified offset and length.private void
BytesRefArray.setBytesRef
(BytesRefBuilder spare, BytesRef result, int index) Used only by sort below, to set aBytesRef
with the specified slice, avoiding copying bytes in the common case when the slice is contained in a single block in the byte block pool.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 TypeMethodDescriptionprotected Sorter
StableStringSorter.fallbackSorter
(Comparator<BytesRef> cmp) protected Sorter
StringSorter.fallbackSorter
(Comparator<BytesRef> cmp) BytesRefArray.iterator
(Comparator<BytesRef> comp) Returns aBytesRefIterator
with point in time semantics.FixedLengthBytesRefArray.iterator
(Comparator<BytesRef> comp) Returns aBytesRefIterator
with point in time semantics.SortableBytesRefArray.iterator
(Comparator<BytesRef> comp) Sort all values by the provided comparator and return an iterator over the sorted valuesBytesRefArray.sort
(Comparator<BytesRef> comp, boolean stable) Returns aBytesRefArray.SortState
representing the order of elements in this array.private int[]
FixedLengthBytesRefArray.sort
(Comparator<BytesRef> comp) Constructors in org.apache.lucene.util with parameters of type BytesRefModifierConstructorDescription(package private)
FileAndTop
(int fd, BytesRef firstLine) TermAndBoost
(BytesRef term, float boost) Creates a new TermAndBoostTermAndVector
(BytesRef term, float[] vector) Creates an instance of aTermAndVector
record class.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.(package private)
protected
StringSorter
(Comparator<BytesRef> cmp) -
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 TypeMethodDescriptionprivate BytesRef
CompiledAutomaton.addTail
(int state, BytesRefBuilder term, int idx, int leadLabel) CompiledAutomaton.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 TypeMethodDescriptionprivate void
CompiledAutomaton.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.private static void
Operations.reverseBytes
(BytesRef ref) private boolean
StringsToAutomaton.setPrevious
(BytesRef current) Copycurrent
into an internal buffer.private static boolean
Automata.suffixIsZeros
(BytesRef br, int len) Method parameters in org.apache.lucene.util.automaton with type arguments of type BytesRefModifier and TypeMethodDescription(package private) static Automaton
Build a minimal, deterministic automaton from a sorted list ofBytesRef
representing strings in UTF-8.static Automaton
Automata.makeBinaryStringUnion
(Iterable<BytesRef> utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRef
s representing UTF-8 encoded strings.static Automaton
Automata.makeStringUnion
(Iterable<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
Fields in org.apache.lucene.util.bkd declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
HeapPointWriter.HeapPointValue.packedValue
(package private) final BytesRef
OfflinePointReader.OfflinePointValue.packedValue
private final BytesRef
HeapPointWriter.HeapPointValue.packedValueDocID
(package private) final BytesRef
OfflinePointReader.OfflinePointValue.packedValueDocID
(package private) final BytesRef
BKDWriter.scratchBytesRef1
(package private) final BytesRef
BKDWriter.scratchBytesRef2
Methods in org.apache.lucene.util.bkd that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]
BKDWriter.computeMinMax
(int count, IntFunction<BytesRef> packedValues, int offset, int length) Return an array that contains the min and max values for the [offset, offset+length] interval of the givenBytesRef
s.BKDWriter.BKDTreeLeafNodes.getSplitValue
(int index) split value between two leaves.HeapPointWriter.HeapPointValue.packedValue()
OfflinePointReader.OfflinePointValue.packedValue()
PointValue.packedValue()
Returns the packed values for the dimensionsHeapPointWriter.HeapPointValue.packedValueDocIDBytes()
OfflinePointReader.OfflinePointValue.packedValueDocIDBytes()
PointValue.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 TypeMethodDescriptionprivate void
BKDWriter.computePackedValueBounds
(MutablePointTree values, int from, int to, byte[] minPackedValue, byte[] maxPackedValue, BytesRef scratch) static 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.private static boolean
BKDWriter.valueInBounds
(BKDConfig config, BytesRef packedValue, byte[] minPackedValue, byte[] maxPackedValue) Method parameters in org.apache.lucene.util.bkd with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]
BKDWriter.computeMinMax
(int count, IntFunction<BytesRef> packedValues, int offset, int length) Return an array that contains the min and max values for the [offset, offset+length] interval of the givenBytesRef
s.private static int
BKDWriter.runLen
(IntFunction<BytesRef> packedValues, int start, int end, int byteOffset) private static boolean
BKDWriter.valuesInOrderAndBounds
(BKDConfig config, int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, IntFunction<BytesRef> values, int[] docs, int docsOffset) private void
BKDWriter.writeActualBounds
(DataOutput out, int[] commonPrefixLengths, int count, IntFunction<BytesRef> packedValues) private void
BKDWriter.writeHighCardinalityLeafBlockPackedValues
(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues, int compressedByteOffset) private void
BKDWriter.writeLeafBlockPackedValues
(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues, int leafCardinality) private void
BKDWriter.writeLeafBlockPackedValuesRange
(DataOutput out, int[] commonPrefixLengths, int start, int end, IntFunction<BytesRef> packedValues) private void
BKDWriter.writeLowCardinalityLeafBlockPackedValues
(DataOutput out, int[] commonPrefixLengths, int count, IntFunction<BytesRef> packedValues) -
Uses of BytesRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRef
BytesRefFSTEnum.current
BytesRefFSTEnum.InputOutput.input
private static final BytesRef
ByteSequenceOutputs.NO_OUTPUT
private BytesRef
BytesRefFSTEnum.target
Methods 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)