Uses of Class
org.apache.lucene.util.BytesRef
-
Packages that use BytesRef Package Description org.apache.lucene.analysis Text analysis.org.apache.lucene.analysis.icu Analysis components based on ICUorg.apache.lucene.analysis.icu.tokenattributes Additional ICU-specific Attributes for text analysis.org.apache.lucene.analysis.miscellaneous Miscellaneous Tokenstreams.org.apache.lucene.analysis.payloads Provides various convenience classes for creating payloads on Tokens.org.apache.lucene.analysis.synonym Analysis components for Synonyms.org.apache.lucene.analysis.synonym.word2vec Analysis components for Synonyms using Word2Vec model.org.apache.lucene.analysis.tokenattributes General-purpose attributes for text analysis.org.apache.lucene.backward_codecs.compressing Compressing helper classes.org.apache.lucene.backward_codecs.lucene40.blocktree BlockTree terms dictionary.org.apache.lucene.backward_codecs.lucene50 Lucene 5.0 file format.org.apache.lucene.backward_codecs.lucene50.compressing Lucene 5.0 compressing format.org.apache.lucene.backward_codecs.lucene70 Components from the Lucene 7.0 index format.org.apache.lucene.backward_codecs.lucene80 Components from the Lucene 8.0 index format.org.apache.lucene.backward_codecs.lucene84 Lucene 8.4 file format.org.apache.lucene.backward_codecs.lucene87 Lucene 8.7 file format.org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.classification Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).org.apache.lucene.classification.document Uses already seen data (the indexed documents) to classify new documents.org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.blockterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.codecs.blocktreeords Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.org.apache.lucene.codecs.bloom Codec PostingsFormat for fast access to low-frequency terms such as primary key fields.org.apache.lucene.codecs.compressing Compressing helper classes.org.apache.lucene.codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.codecs.lucene90.blocktree BlockTree terms dictionary.org.apache.lucene.codecs.lucene90.compressing Lucene 9.0 compressing format.org.apache.lucene.codecs.lucene99 Lucene 9.9 file format.org.apache.lucene.codecs.memory Term dictionary, DocValues or Postings formats that are read entirely into memory.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.codecs.uniformsplit Pluggable term index / block terms dictionary implementations.org.apache.lucene.codecs.uniformsplit.sharedterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.collation Unicode collation support.org.apache.lucene.collation.tokenattributes CustomAttributeImpl
for indexing collation keys as index terms.org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.misc Miscellaneous Lucene utilities that don't really fit anywhere else.org.apache.lucene.misc.document Misc extensions of the Document/Field API.org.apache.lucene.misc.search Misc search implementations.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.queries.intervals Intervals queriesorg.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queryparser.classic A simple query parser implemented with JavaCC.org.apache.lucene.queryparser.flexible.standard.nodes Standard Lucene Query Nodes.org.apache.lucene.sandbox.codecs.idversion A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.org.apache.lucene.sandbox.document This package contains several point types:BigIntegerPoint
for 128-bit integersLatLonPoint
for latitude/longitude geospatial pointsorg.apache.lucene.sandbox.search This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial queries.org.apache.lucene.search Code to search indices.org.apache.lucene.search.comparators Comparators, used to compare hits so as to determine their sort order when collecting the top results withTopFieldCollector
.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.analyzing Analyzer based autosuggest.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.suggest.fst Finite-state based autosuggest.org.apache.lucene.search.suggest.tst Ternary Search Tree based autosuggest.org.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.org.apache.lucene.util Some utility classes.org.apache.lucene.util.automaton Finite-state automaton for regular expressions.org.apache.lucene.util.bkd Block KD-tree, implementing the generic spatial data structure described in this paper.org.apache.lucene.util.fst Finite state transducers -
-
Uses of BytesRef in org.apache.lucene.analysis
Methods in org.apache.lucene.analysis that return BytesRef Modifier and Type Method Description protected 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.BytesRef
Analyzer. normalize(java.lang.String fieldName, java.lang.String text)
Normalize a string down to the representation that it would have in the index.Methods in org.apache.lucene.analysis with parameters of type BytesRef Modifier and Type Method Description protected 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 Modifier and Type Field Description private BytesRef
ICUCollationDocValuesField. bytes
-
Uses of BytesRef in org.apache.lucene.analysis.icu.tokenattributes
Methods in org.apache.lucene.analysis.icu.tokenattributes that return BytesRef Modifier and Type Method Description BytesRef
ICUCollatedTermAttributeImpl. getBytesRef()
-
Uses of BytesRef in org.apache.lucene.analysis.miscellaneous
Fields in org.apache.lucene.analysis.miscellaneous with type parameters of type BytesRef Modifier and Type Field Description private FST<BytesRef>
StemmerOverrideFilter.StemmerOverrideMap. fst
private FST.Arc<BytesRef>
StemmerOverrideFilter. scratchArc
Methods in org.apache.lucene.analysis.miscellaneous that return BytesRef Modifier and Type Method Description protected BytesRef
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton. changeToken(BytesRef in)
BytesRef
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.BytesRef
ConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl. getBytesRef()
Methods in org.apache.lucene.analysis.miscellaneous with parameters of type BytesRef Modifier and Type Method Description protected BytesRef
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton. changeToken(BytesRef in)
Method parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRef Modifier and Type Method Description BytesRef
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.Constructor parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRef Constructor Description StemmerOverrideMap(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 BytesRef Modifier and Type Field Description private BytesRef
NumericPayloadTokenFilter. thePayload
Methods in org.apache.lucene.analysis.payloads that return BytesRef Modifier and Type Method Description BytesRef
AbstractEncoder. encode(char[] buffer)
BytesRef
FloatEncoder. encode(char[] buffer, int offset, int length)
BytesRef
IdentityEncoder. encode(char[] buffer, int offset, int length)
BytesRef
IntegerEncoder. encode(char[] buffer, int offset, int length)
BytesRef
PayloadEncoder. encode(char[] buffer)
BytesRef
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 BytesRef Modifier and Type Field Description private BytesRef
SynonymFilter. scratchBytes
Deprecated.private BytesRef
SynonymGraphFilter. scratchBytes
Fields in org.apache.lucene.analysis.synonym with type parameters of type BytesRef Modifier and Type Field Description private FST<BytesRef>
SynonymFilter. fst
Deprecated.private FST<BytesRef>
SynonymGraphFilter. fst
FST<BytesRef>
SynonymMap. fst
map<input word, list<ord>>private FST.Arc<BytesRef>
SynonymFilter. scratchArc
Deprecated.private FST.Arc<BytesRef>
SynonymGraphFilter. scratchArc
Methods in org.apache.lucene.analysis.synonym with parameters of type BytesRef Modifier and Type Method Description private void
SynonymFilter. addOutput(BytesRef bytes, int matchInputLength, int matchEndOffset)
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 BytesRef Constructor Description SynonymMap(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 BytesRef Modifier and Type Field Description BytesRef
TermAndBoost. term
the termMethods in org.apache.lucene.analysis.synonym.word2vec that return BytesRef Modifier and Type Method Description (package private) static BytesRef
Dl4jModelReader. decodeB64Term(java.lang.String term)
BytesRef
Word2VecModel. termValue(int targetOrd)
Methods in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRef Modifier and Type Method Description java.util.List<TermAndBoost>
Word2VecSynonymProvider. getSynonyms(BytesRef term, int maxSynonymsPerTerm, float minAcceptedSimilarity)
float[]
Word2VecModel. vectorValue(BytesRef term)
Constructors in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRef Constructor Description TermAndBoost(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 BytesRef Modifier and Type Field Description private BytesRef
BytesTermAttributeImpl. bytes
private BytesRef
PayloadAttributeImpl. payload
Methods in org.apache.lucene.analysis.tokenattributes that return BytesRef Modifier and Type Method Description BytesRef
BytesTermAttributeImpl. getBytesRef()
BytesRef
CharTermAttributeImpl. getBytesRef()
BytesRef
TermToBytesRefAttribute. getBytesRef()
Retrieve this attribute's BytesRef.BytesRef
PayloadAttribute. getPayload()
Returns this Token's payload.BytesRef
PayloadAttributeImpl. getPayload()
Methods in org.apache.lucene.analysis.tokenattributes with parameters of type BytesRef Modifier and Type Method Description void
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 BytesRef Constructor Description PayloadAttributeImpl(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 BytesRef Modifier and Type Method Description void
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 BytesRef Modifier and Type Field Description (package private) BytesRef
IntersectTermsEnum. commonSuffix
(package private) BytesRef
FieldReader. maxTerm
(package private) BytesRef
FieldReader. minTerm
(package private) static BytesRef
Lucene40BlockTreeTermsReader. NO_OUTPUT
(package private) BytesRef
IntersectTermsEnumFrame. outputPrefix
(package private) BytesRef
FieldReader. rootCode
private BytesRef
IntersectTermsEnum. savedStartTerm
private BytesRef
IntersectTermsEnum. term
Fields in org.apache.lucene.backward_codecs.lucene40.blocktree with type parameters of type BytesRef Modifier and Type Field Description (package private) FST.Arc<BytesRef>
IntersectTermsEnumFrame. arc
(package private) FST.Arc<BytesRef>
SegmentTermsEnumFrame. arc
(package private) static Outputs<BytesRef>
Lucene40BlockTreeTermsReader. FST_OUTPUTS
(package private) static Outputs<BytesRef>
IntersectTermsEnum. fstOutputs
(package private) FST<BytesRef>
FieldReader. index
Methods in org.apache.lucene.backward_codecs.lucene40.blocktree that return BytesRef Modifier and Type Method Description private BytesRef
IntersectTermsEnum. _next()
BytesRef
FieldReader. getMax()
BytesRef
FieldReader. getMin()
BytesRef
IntersectTermsEnum. next()
BytesRef
SegmentTermsEnum. next()
private static BytesRef
Lucene40BlockTreeTermsReader. readBytesRef(IndexInput in)
BytesRef
IntersectTermsEnum. term()
BytesRef
SegmentTermsEnum. term()
Methods in org.apache.lucene.backward_codecs.lucene40.blocktree that return types with arguments of type BytesRef Modifier and Type Method Description private FST.Arc<BytesRef>
IntersectTermsEnum. getArc(int ord)
private FST.Arc<BytesRef>
SegmentTermsEnum. getArc(int ord)
Methods in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRef Modifier and Type Method Description TermsEnum
FieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)
(package private) void
IntersectTermsEnumFrame. load(BytesRef frameIndexData)
private boolean
SegmentTermsEnumFrame. prefixMatches(BytesRef target)
(package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)
void
SegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
IntersectTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
SegmentTermsEnum. seekCeil(BytesRef target)
boolean
IntersectTermsEnum. seekExact(BytesRef text)
boolean
SegmentTermsEnum. seekExact(BytesRef target)
void
SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
private void
IntersectTermsEnum. seekToStartTerm(BytesRef target)
void
SegmentTermsEnumFrame. setFloorData(ByteArrayDataInput in, BytesRef source)
private boolean
IntersectTermsEnum. setSavedStartTerm(BytesRef startTerm)
(package private) void
Stats. term(BytesRef term)
Method parameters in org.apache.lucene.backward_codecs.lucene40.blocktree with type arguments of type BytesRef Modifier and Type Method Description (package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, long fp, int length)
(package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)
Constructors in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRef Constructor Description 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, Automaton automaton, RunAutomaton 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 BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene50PostingsReader.BlockImpactsEverythingEnum. payload
(package private) BytesRef
Lucene50PostingsReader.EverythingEnum. payload
Methods in org.apache.lucene.backward_codecs.lucene50 that return BytesRef Modifier and Type Method Description BytesRef
Lucene50PostingsReader.BlockDocsEnum. getPayload()
BytesRef
Lucene50PostingsReader.BlockImpactsEverythingEnum. getPayload()
BytesRef
Lucene50PostingsReader.BlockImpactsPostingsEnum. getPayload()
BytesRef
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 BytesRef Modifier and Type Field Description private BytesRef
Lucene50CompressingStoredFieldsReader.BlockState. bytes
private BytesRef
Lucene50CompressingTermVectorsReader.TVPostingsEnum. payload
private BytesRef
Lucene50CompressingTermVectorsReader.TVFields. payloadBytes
private BytesRef
Lucene50CompressingTermVectorsReader.TVTerms. payloadBytes
private BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum. payloads
private BytesRef
Lucene50CompressingStoredFieldsReader.BlockState. spare
private BytesRef
Lucene50CompressingTermVectorsReader.TVFields. suffixBytes
private BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum. term
private BytesRef
Lucene50CompressingTermVectorsReader.TVTerms. termBytes
Methods in org.apache.lucene.backward_codecs.lucene50.compressing that return BytesRef Modifier and Type Method Description BytesRef
Lucene50CompressingTermVectorsReader.TVPostingsEnum. getPayload()
BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum. next()
BytesRef
Lucene50CompressingTermVectorsReader.TVTermsEnum. term()
Methods in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRef Modifier and Type Method Description void
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)
TermsEnum.SeekStatus
Lucene50CompressingTermVectorsReader.TVTermsEnum. seekCeil(BytesRef text)
Constructors in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRef Constructor Description TVFields(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)
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.lucene70
Fields in org.apache.lucene.backward_codecs.lucene70 declared as BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene70DocValuesProducer.TermsDict. term
Methods in org.apache.lucene.backward_codecs.lucene70 that return BytesRef Modifier and Type Method Description private BytesRef
Lucene70DocValuesProducer.TermsDict. getFirstTermFromBlock(long block)
private BytesRef
Lucene70DocValuesProducer.TermsDict. getTermFromIndex(long index)
BytesRef
Lucene70DocValuesProducer.BaseSortedDocValues. lookupOrd(int ord)
BytesRef
Lucene70DocValuesProducer.BaseSortedSetDocValues. lookupOrd(long ord)
BytesRef
Lucene70DocValuesProducer.TermsDict. next()
BytesRef
Lucene70DocValuesProducer.TermsDict. term()
Methods in org.apache.lucene.backward_codecs.lucene70 with parameters of type BytesRef Modifier and Type Method Description int
Lucene70DocValuesProducer.BaseSortedDocValues. lookupTerm(BytesRef key)
long
Lucene70DocValuesProducer.BaseSortedSetDocValues. lookupTerm(BytesRef key)
private long
Lucene70DocValuesProducer.TermsDict. seekBlock(BytesRef text)
TermsEnum.SeekStatus
Lucene70DocValuesProducer.TermsDict. seekCeil(BytesRef text)
private long
Lucene70DocValuesProducer.TermsDict. seekTermsIndex(BytesRef text)
-
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene80
Fields in org.apache.lucene.backward_codecs.lucene80 declared as BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene80DocValuesProducer.TermsDict. blockBuffer
(package private) BytesRef
Lucene80DocValuesProducer.TermsDict. term
private BytesRef
Lucene80DocValuesProducer.BinaryDecoder. uncompressedBytesRef
Methods in org.apache.lucene.backward_codecs.lucene80 that return BytesRef Modifier and Type Method Description (package private) BytesRef
Lucene80DocValuesProducer.BinaryDecoder. decode(int docNumber)
private BytesRef
Lucene80DocValuesProducer.TermsDict. getFirstTermFromBlock(long block)
private BytesRef
Lucene80DocValuesProducer.TermsDict. getTermFromIndex(long index)
BytesRef
Lucene80DocValuesProducer.BaseSortedDocValues. lookupOrd(int ord)
BytesRef
Lucene80DocValuesProducer.BaseSortedSetDocValues. lookupOrd(long ord)
BytesRef
Lucene80DocValuesProducer.TermsDict. next()
BytesRef
Lucene80DocValuesProducer.TermsDict. term()
Methods in org.apache.lucene.backward_codecs.lucene80 with parameters of type BytesRef Modifier and Type Method Description (package private) void
Lucene80DocValuesConsumer.CompressedBinaryBlockWriter. addDoc(int doc, BytesRef v)
int
Lucene80DocValuesProducer.BaseSortedDocValues. lookupTerm(BytesRef key)
long
Lucene80DocValuesProducer.BaseSortedSetDocValues. lookupTerm(BytesRef key)
private long
Lucene80DocValuesProducer.TermsDict. seekBlock(BytesRef text)
TermsEnum.SeekStatus
Lucene80DocValuesProducer.TermsDict. seekCeil(BytesRef text)
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 BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene84PostingsReader.BlockImpactsEverythingEnum. payload
(package private) BytesRef
Lucene84PostingsReader.EverythingEnum. payload
Methods in org.apache.lucene.backward_codecs.lucene84 that return BytesRef Modifier and Type Method Description BytesRef
Lucene84PostingsReader.BlockDocsEnum. getPayload()
BytesRef
Lucene84PostingsReader.BlockImpactsDocsEnum. getPayload()
BytesRef
Lucene84PostingsReader.BlockImpactsEverythingEnum. getPayload()
BytesRef
Lucene84PostingsReader.BlockImpactsPostingsEnum. getPayload()
BytesRef
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 BytesRef Modifier and Type Method Description void
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, java.util.zip.Inflater decompressor, BytesRef bytes)
-
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene90
Fields in org.apache.lucene.backward_codecs.lucene90 declared as BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene90PostingsReader.BlockImpactsEverythingEnum. payload
(package private) BytesRef
Lucene90PostingsReader.EverythingEnum. payload
Methods in org.apache.lucene.backward_codecs.lucene90 that return BytesRef Modifier and Type Method Description BytesRef
Lucene90PostingsReader.BlockDocsEnum. getPayload()
BytesRef
Lucene90PostingsReader.BlockImpactsDocsEnum. getPayload()
BytesRef
Lucene90PostingsReader.BlockImpactsEverythingEnum. getPayload()
BytesRef
Lucene90PostingsReader.BlockImpactsPostingsEnum. getPayload()
BytesRef
Lucene90PostingsReader.EverythingEnum. getPayload()
Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type BytesRef Modifier and Type Method Description void
Lucene90PostingsWriter. addPosition(int position, BytesRef payload, int startOffset, int endOffset)
-
Uses of BytesRef in org.apache.lucene.classification
Fields in org.apache.lucene.classification with type parameters of type BytesRef Modifier and Type Field Description private java.util.ArrayList<BytesRef>
CachingNaiveBayesClassifier. cclasses
private java.util.Map<BytesRef,java.lang.Double>
CachingNaiveBayesClassifier. classTermFreq
private java.util.Map<java.lang.String,java.util.Map<BytesRef,java.lang.Integer>>
CachingNaiveBayesClassifier. termCClassHitCache
Methods in org.apache.lucene.classification that return types with arguments of type BytesRef Modifier and Type Method Description ClassificationResult<BytesRef>
BM25NBClassifier. assignClass(java.lang.String inputDocument)
ClassificationResult<BytesRef>
KNearestFuzzyClassifier. assignClass(java.lang.String text)
ClassificationResult<BytesRef>
KNearestNeighborClassifier. assignClass(java.lang.String text)
ClassificationResult<BytesRef>
SimpleNaiveBayesClassifier. assignClass(java.lang.String inputDocument)
private java.util.List<ClassificationResult<BytesRef>>
BM25NBClassifier. assignClassNormalizedList(java.lang.String inputDocument)
Calculate probabilities for all classes for a given input textprotected java.util.List<ClassificationResult<BytesRef>>
CachingNaiveBayesClassifier. assignClassNormalizedList(java.lang.String inputDocument)
Transforms values into a range between 0 and 1protected java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesClassifier. assignClassNormalizedList(java.lang.String inputDocument)
Calculate probabilities for all classes for a given input textprivate java.util.List<ClassificationResult<BytesRef>>
KNearestFuzzyClassifier. buildListFromTopDocs(TopDocs topDocs)
build a list of classification results from search resultsprotected java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborClassifier. buildListFromTopDocs(TopDocs topDocs)
build a list of classification results from search resultsprivate java.util.List<ClassificationResult<BytesRef>>
CachingNaiveBayesClassifier. calculateLogLikelihood(java.lang.String[] tokenizedText)
protected ClassificationResult<BytesRef>
KNearestNeighborClassifier. classifyFromTopDocs(TopDocs knnResults)
TODOjava.util.List<ClassificationResult<BytesRef>>
BM25NBClassifier. getClasses(java.lang.String text)
java.util.List<ClassificationResult<BytesRef>>
BM25NBClassifier. getClasses(java.lang.String text, int max)
java.util.List<ClassificationResult<BytesRef>>
KNearestFuzzyClassifier. getClasses(java.lang.String text)
java.util.List<ClassificationResult<BytesRef>>
KNearestFuzzyClassifier. getClasses(java.lang.String text, int max)
java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborClassifier. getClasses(java.lang.String text)
java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborClassifier. getClasses(java.lang.String text, int max)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesClassifier. getClasses(java.lang.String text)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesClassifier. getClasses(java.lang.String text, int max)
private java.util.Map<BytesRef,java.lang.Integer>
CachingNaiveBayesClassifier. getWordFreqForClassess(java.lang.String word)
private java.util.ArrayList<ClassificationResult<BytesRef>>
BM25NBClassifier. normClassificationResults(java.util.List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score availableprotected java.util.ArrayList<ClassificationResult<BytesRef>>
SimpleNaiveBayesClassifier. normClassificationResults(java.util.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 BytesRef Modifier and Type Method Description private java.util.ArrayList<ClassificationResult<BytesRef>>
BM25NBClassifier. normClassificationResults(java.util.List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score availableprotected java.util.ArrayList<ClassificationResult<BytesRef>>
SimpleNaiveBayesClassifier. normClassificationResults(java.util.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 BytesRef Modifier and Type Method Description ClassificationResult<BytesRef>
KNearestNeighborDocumentClassifier. assignClass(Document document)
ClassificationResult<BytesRef>
SimpleNaiveBayesDocumentClassifier. assignClass(Document document)
private java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. assignNormClasses(Document inputDocument)
java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborDocumentClassifier. getClasses(Document document)
java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborDocumentClassifier. getClasses(Document document, int max)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. getClasses(Document document)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. getClasses(Document document, int max)
-
Uses of BytesRef in org.apache.lucene.codecs
Fields in org.apache.lucene.codecs declared as BytesRef Modifier and Type Field Description private BytesRef
DocValuesConsumer.MergedTermsEnum. term
Methods in org.apache.lucene.codecs that return BytesRef Modifier and Type Method Description BytesRef
DocValuesConsumer.MergedTermsEnum. next()
BytesRef
DocValuesConsumer.MergedTermsEnum. term()
Methods in org.apache.lucene.codecs with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatus
DocValuesConsumer.BitsFilteredTermsEnum. accept(BytesRef term)
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
MutablePointTree. getValue(int i, BytesRef packedValue)
SetpackedValue
with a reference to the packed bytes of the i-th value.TermsEnum.SeekStatus
DocValuesConsumer.MergedTermsEnum. seekCeil(BytesRef text)
boolean
DocValuesConsumer.MergedTermsEnum. seekExact(BytesRef text)
void
DocValuesConsumer.MergedTermsEnum. seekExact(BytesRef term, TermState state)
abstract void
TermVectorsWriter. startTerm(BytesRef term, int freq)
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
.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 BytesRef Modifier and Type Field Description private BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum. nextIndexTerm
(package private) BytesRef
BlockTermsReader.FieldAndTerm. term
private BytesRef
FixedGapTermsIndexReader.IndexEnum. term
Methods in org.apache.lucene.codecs.blockterms that return BytesRef Modifier and Type Method Description private BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum. _next()
BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum. next()
BytesRef
BlockTermsReader.FieldReader.SegmentTermsEnum. term()
BytesRef
FixedGapTermsIndexReader.IndexEnum. term()
abstract BytesRef
TermsIndexReaderBase.FieldIndexEnum. term()
BytesRef
VariableGapTermsIndexReader.IndexEnum. term()
Methods in org.apache.lucene.codecs.blockterms with parameters of type BytesRef Modifier and Type Method Description void
FixedGapTermsIndexWriter.SimpleFieldWriter. add(BytesRef text, TermStats stats, long termsFilePointer)
abstract void
TermsIndexWriterBase.FieldWriter. add(BytesRef text, TermStats stats, long termsFilePointer)
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
FixedGapTermsIndexReader.IndexEnum. seek(BytesRef target)
abstract long
TermsIndexReaderBase.FieldIndexEnum. seek(BytesRef term)
Seeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that termlong
VariableGapTermsIndexReader.IndexEnum. seek(BytesRef target)
TermsEnum.SeekStatus
BlockTermsReader.FieldReader.SegmentTermsEnum. seekCeil(BytesRef target)
void
BlockTermsReader.FieldReader.SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
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 BytesRef Modifier and Type Field Description BytesRef
FSTOrdsOutputs.Output. bytes
BytesRef
OrdsBlockTreeTermsWriter.FieldMetaData. maxTerm
(package private) BytesRef
OrdsFieldReader. maxTerm
BytesRef
OrdsBlockTreeTermsWriter.FieldMetaData. minTerm
(package private) BytesRef
OrdsFieldReader. minTerm
private static BytesRef
FSTOrdsOutputs. NO_BYTES
BytesRef
OrdsBlockTreeTermsWriter.PendingBlock. prefix
private BytesRef
OrdsIntersectTermsEnum. savedStartTerm
private BytesRef
OrdsIntersectTermsEnum. term
Methods in org.apache.lucene.codecs.blocktreeords that return BytesRef Modifier and Type Method Description BytesRef
OrdsFieldReader. getMax()
BytesRef
OrdsFieldReader. getMin()
BytesRef
OrdsIntersectTermsEnum. next()
BytesRef
OrdsSegmentTermsEnum. next()
private static BytesRef
OrdsBlockTreeTermsReader. readBytesRef(IndexInput in)
BytesRef
OrdsIntersectTermsEnum. term()
BytesRef
OrdsSegmentTermsEnum. term()
Methods in org.apache.lucene.codecs.blocktreeords with parameters of type BytesRef Modifier and Type Method Description TermsEnum
OrdsFieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)
FSTOrdsOutputs.Output
FSTOrdsOutputs. newOutput(BytesRef bytes, long startOrd, long endOrd)
private boolean
OrdsSegmentTermsEnumFrame. prefixMatches(BytesRef target)
private void
OrdsBlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.void
OrdsSegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)
TermsEnum.SeekStatus
OrdsSegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
OrdsSegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
OrdsSegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
OrdsIntersectTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
OrdsSegmentTermsEnum. seekCeil(BytesRef target)
boolean
OrdsIntersectTermsEnum. seekExact(BytesRef text)
boolean
OrdsSegmentTermsEnum. seekExact(BytesRef target)
void
OrdsSegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
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 BytesRef Constructor Description FieldMetaData(FieldInfo fieldInfo, FSTOrdsOutputs.Output rootCode, long numTerms, long indexStartFP, long sumTotalTermFreq, long sumDocFreq, int docCount, BytesRef minTerm, BytesRef maxTerm)
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)
Output(BytesRef bytes, long startOrd, long endOrd)
PendingBlock(BytesRef prefix, long fp, boolean hasTerms, long totalTermCount, boolean isFloor, int floorLeadByte, java.util.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 BytesRef Modifier and Type Method Description BytesRef
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. getMax()
BytesRef
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. getMin()
BytesRef
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. next()
BytesRef
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. term()
Methods in org.apache.lucene.codecs.bloom with parameters of type BytesRef Modifier and Type Method Description void
FuzzySet. addValue(BytesRef value)
Records a value in the set.FuzzySet.ContainsResult
FuzzySet. contains(BytesRef value)
The main method required for a Bloom filter which, given a value determines set membership.abstract long
HashFunction. hash(BytesRef bytes)
Hashes the contents of the referenced byteslong
MurmurHash64. hash(BytesRef br)
TermsEnum
BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum.SeekStatus
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 BytesRef Modifier and Type Method Description void
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.lucene90
Fields in org.apache.lucene.codecs.lucene90 declared as BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene90DocValuesProducer.TermsDict. blockBuffer
(package private) BytesRef
Lucene90DocValuesProducer.TermsDict. term
Methods in org.apache.lucene.codecs.lucene90 that return BytesRef Modifier and Type Method Description private BytesRef
Lucene90DocValuesProducer.TermsDict. getFirstTermFromBlock(long block)
private BytesRef
Lucene90DocValuesProducer.TermsDict. getTermFromIndex(long index)
BytesRef
Lucene90DocValuesProducer.BaseSortedDocValues. lookupOrd(int ord)
BytesRef
Lucene90DocValuesProducer.BaseSortedSetDocValues. lookupOrd(long ord)
BytesRef
Lucene90DocValuesProducer.TermsDict. next()
BytesRef
Lucene90DocValuesProducer.TermsDict. term()
Methods in org.apache.lucene.codecs.lucene90 with parameters of type BytesRef Modifier and Type Method Description void
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, java.util.zip.Inflater decompressor, BytesRef bytes)
int
Lucene90DocValuesProducer.BaseSortedDocValues. lookupTerm(BytesRef key)
long
Lucene90DocValuesProducer.BaseSortedSetDocValues. lookupTerm(BytesRef key)
private long
Lucene90DocValuesProducer.TermsDict. seekBlock(BytesRef text)
TermsEnum.SeekStatus
Lucene90DocValuesProducer.TermsDict. seekCeil(BytesRef text)
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 BytesRef Modifier and Type Field Description (package private) BytesRef
IntersectTermsEnum. commonSuffix
(package private) BytesRef
SegmentTermsEnum.OutputAccumulator. current
(package private) static BytesRef
Lucene90BlockTreeTermsWriter. EMPTY_BYTES_REF
(package private) BytesRef
FieldReader. maxTerm
(package private) BytesRef
FieldReader. minTerm
(package private) static BytesRef
Lucene90BlockTreeTermsReader. NO_OUTPUT
(package private) BytesRef[]
SegmentTermsEnum.OutputAccumulator. outputs
BytesRef
Lucene90BlockTreeTermsWriter.PendingBlock. prefix
(package private) BytesRef
FieldReader. rootCode
private BytesRef
IntersectTermsEnum. savedStartTerm
private BytesRef
IntersectTermsEnum. term
Fields in org.apache.lucene.codecs.lucene90.blocktree with type parameters of type BytesRef Modifier and Type Field Description (package private) FST.Arc<BytesRef>
IntersectTermsEnumFrame. arc
(package private) FST.Arc<BytesRef>
SegmentTermsEnumFrame. arc
(package private) static Outputs<BytesRef>
Lucene90BlockTreeTermsReader. FST_OUTPUTS
(package private) FST<BytesRef>
FieldReader. index
FST<BytesRef>
Lucene90BlockTreeTermsWriter.PendingBlock. index
java.util.List<FST<BytesRef>>
Lucene90BlockTreeTermsWriter.PendingBlock. subIndices
Methods in org.apache.lucene.codecs.lucene90.blocktree that return BytesRef Modifier and Type Method Description private BytesRef
IntersectTermsEnum. _next()
BytesRef
FieldReader. getMax()
BytesRef
FieldReader. getMin()
BytesRef
IntersectTermsEnum. next()
BytesRef
SegmentTermsEnum. next()
private static BytesRef
Lucene90BlockTreeTermsReader. readBytesRef(IndexInput in)
BytesRef
IntersectTermsEnum. term()
BytesRef
SegmentTermsEnum. term()
Methods in org.apache.lucene.codecs.lucene90.blocktree that return types with arguments of type BytesRef Modifier and Type Method Description private FST.Arc<BytesRef>
IntersectTermsEnum. getArc(int ord)
private FST.Arc<BytesRef>
SegmentTermsEnum. getArc(int ord)
Methods in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRef Modifier and Type Method Description TermsEnum.SeekStatus
SegmentTermsEnumFrame. binarySearchTermLeaf(BytesRef target, boolean exactOnly)
TermsEnum
FieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)
(package private) void
IntersectTermsEnumFrame. load(BytesRef frameIndexData)
(package private) void
SegmentTermsEnum.OutputAccumulator. pop(BytesRef output)
private boolean
SegmentTermsEnumFrame. prefixMatches(BytesRef target)
(package private) void
SegmentTermsEnum.OutputAccumulator. push(BytesRef output)
(package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)
private void
Lucene90BlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.void
SegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
SegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
IntersectTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
SegmentTermsEnum. seekCeil(BytesRef target)
boolean
IntersectTermsEnum. seekExact(BytesRef text)
boolean
SegmentTermsEnum. seekExact(BytesRef target)
void
SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
private void
IntersectTermsEnum. seekToStartTerm(BytesRef target)
private boolean
IntersectTermsEnum. setSavedStartTerm(BytesRef startTerm)
(package private) void
Stats. term(BytesRef term)
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 BytesRef Modifier and Type Method Description private 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
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, int length)
(package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, long fp, int length)
(package private) SegmentTermsEnumFrame
SegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)
Constructors in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRef Constructor Description 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, Automaton automaton, RunAutomaton runAutomaton, BytesRef commonSuffix, BytesRef startTerm)
PendingBlock(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<BytesRef>> subIndices)
PendingTerm(BytesRef term, BlockTermState state)
Constructor parameters in org.apache.lucene.codecs.lucene90.blocktree with type arguments of type BytesRef Constructor Description PendingBlock(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<BytesRef>> subIndices)
-
Uses of BytesRef in org.apache.lucene.codecs.lucene90.compressing
Fields in org.apache.lucene.codecs.lucene90.compressing declared as BytesRef Modifier and Type Field Description private BytesRef
Lucene90CompressingStoredFieldsReader.BlockState. bytes
private BytesRef
Lucene90CompressingTermVectorsWriter. lastTerm
private BytesRef
Lucene90CompressingTermVectorsReader.TVPostingsEnum. payload
private BytesRef
Lucene90CompressingTermVectorsReader.TVFields. payloadBytes
private BytesRef
Lucene90CompressingTermVectorsReader.TVTerms. payloadBytes
private BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum. payloads
private BytesRef
Lucene90CompressingStoredFieldsReader.BlockState. spare
private BytesRef
Lucene90CompressingTermVectorsReader.TVFields. suffixBytes
private BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum. term
private BytesRef
Lucene90CompressingTermVectorsReader.TVTerms. termBytes
Methods in org.apache.lucene.codecs.lucene90.compressing that return BytesRef Modifier and Type Method Description BytesRef
Lucene90CompressingTermVectorsReader.TVPostingsEnum. getPayload()
BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum. next()
BytesRef
Lucene90CompressingTermVectorsReader.TVTermsEnum. term()
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRef Modifier and Type Method Description void
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)
TermsEnum.SeekStatus
Lucene90CompressingTermVectorsReader.TVTermsEnum. seekCeil(BytesRef text)
void
Lucene90CompressingTermVectorsWriter. startTerm(BytesRef term, int freq)
void
Lucene90CompressingStoredFieldsWriter. writeField(FieldInfo info, BytesRef value)
Constructors in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRef Constructor Description TVFields(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)
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.lucene99
Fields in org.apache.lucene.codecs.lucene99 declared as BytesRef Modifier and Type Field Description (package private) BytesRef
Lucene99PostingsReader.BlockImpactsEverythingEnum. payload
(package private) BytesRef
Lucene99PostingsReader.EverythingEnum. payload
Methods in org.apache.lucene.codecs.lucene99 that return BytesRef Modifier and Type Method Description BytesRef
Lucene99PostingsReader.BlockDocsEnum. getPayload()
BytesRef
Lucene99PostingsReader.BlockImpactsDocsEnum. getPayload()
BytesRef
Lucene99PostingsReader.BlockImpactsEverythingEnum. getPayload()
BytesRef
Lucene99PostingsReader.BlockImpactsPostingsEnum. getPayload()
BytesRef
Lucene99PostingsReader.EverythingEnum. getPayload()
Methods in org.apache.lucene.codecs.lucene99 with parameters of type BytesRef Modifier and Type Method Description void
Lucene99PostingsWriter. addPosition(int position, BytesRef payload, int startOffset, int endOffset)
-
Uses of BytesRef in org.apache.lucene.codecs.memory
Fields in org.apache.lucene.codecs.memory declared as BytesRef Modifier and Type Field Description private BytesRef
DirectPostingsFormat.HighFreqPostingsEnum. payload
private BytesRef
DirectPostingsFormat.LowFreqPostingsEnum. payload
private BytesRef
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum. scratch
private BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum. scratch
(package private) BytesRef
FSTTermsReader.TermsReader.SegmentTermsEnum. term
Methods in org.apache.lucene.codecs.memory that return BytesRef Modifier and Type Method Description private BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum. doSeekCeil(BytesRef target)
BytesRef
DirectPostingsFormat.HighFreqDocsEnum. getPayload()
BytesRef
DirectPostingsFormat.HighFreqPostingsEnum. getPayload()
BytesRef
DirectPostingsFormat.LowFreqDocsEnum. getPayload()
BytesRef
DirectPostingsFormat.LowFreqDocsEnumNoPos. getPayload()
BytesRef
DirectPostingsFormat.LowFreqDocsEnumNoTF. getPayload()
BytesRef
DirectPostingsFormat.LowFreqPostingsEnum. getPayload()
BytesRef
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum. next()
BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum. next()
BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum. next()
BytesRef
FSTTermsReader.TermsReader.SegmentTermsEnum. next()
private BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum. setTerm()
BytesRef
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum. term()
BytesRef
DirectPostingsFormat.DirectField.DirectTermsEnum. term()
BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum. term()
BytesRef
FSTTermsReader.TermsReader.SegmentTermsEnum. term()
Methods in org.apache.lucene.codecs.memory with parameters of type BytesRef Modifier and Type Method Description (package private) int
DirectPostingsFormat.DirectField. compare(int ord, BytesRef other)
private BytesRef
FSTTermsReader.TermsReader.IntersectTermsEnum. doSeekCeil(BytesRef target)
private int
DirectPostingsFormat.DirectField.DirectTermsEnum. findTerm(BytesRef term)
void
FSTTermsWriter.TermsWriter. finishTerm(BytesRef text, BlockTermState state)
TermsEnum
DirectPostingsFormat.DirectField. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum
FSTTermsReader.TermsReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum.SeekStatus
DirectPostingsFormat.DirectField.DirectIntersectTermsEnum. seekCeil(BytesRef term)
TermsEnum.SeekStatus
DirectPostingsFormat.DirectField.DirectTermsEnum. seekCeil(BytesRef term)
TermsEnum.SeekStatus
FSTTermsReader.TermsReader.IntersectTermsEnum. seekCeil(BytesRef target)
TermsEnum.SeekStatus
FSTTermsReader.TermsReader.SegmentTermsEnum. seekCeil(BytesRef target)
boolean
DirectPostingsFormat.DirectField.DirectTermsEnum. seekExact(BytesRef term)
void
DirectPostingsFormat.DirectField.DirectTermsEnum. seekExact(BytesRef term, TermState state)
boolean
FSTTermsReader.TermsReader.SegmentTermsEnum. seekExact(BytesRef target)
void
FSTTermsReader.TermsReader.SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
Constructors in org.apache.lucene.codecs.memory with parameters of type BytesRef Constructor Description DirectIntersectTermsEnum(CompiledAutomaton compiled, BytesRef startTerm)
IntersectTermsEnum(CompiledAutomaton compiled, BytesRef startTerm)
-
Uses of BytesRef in org.apache.lucene.codecs.simpletext
Fields in org.apache.lucene.codecs.simpletext declared as BytesRef Modifier and Type Field Description (package private) static BytesRef
SimpleTextFieldInfosFormat. ATT_KEY
(package private) static BytesRef
SimpleTextFieldInfosFormat. ATT_VALUE
private BytesRef
SimpleTextKnnVectorsReader.SimpleTextByteVectorValues. binaryValue
static BytesRef
SimpleTextPointsWriter. BLOCK_COUNT
static BytesRef
SimpleTextPointsWriter. BLOCK_DOC_ID
static BytesRef
SimpleTextPointsWriter. BLOCK_FP
static BytesRef
SimpleTextPointsWriter. BLOCK_VALUE
static BytesRef
SimpleTextPointsWriter. BYTES_PER_DIM
(package private) static BytesRef
SimpleTextUtil. CHECKSUM
(package private) static BytesRef
SimpleTextSkipWriter. CHILD_POINTER
(package private) static BytesRef
SimpleTextFieldInfosFormat. DATA_DIM_COUNT
(package private) static BytesRef
SimpleTextFieldInfosFormat. DIM_NUM_BYTES
(package private) static BytesRef
SimpleTextFieldsWriter. DOC
(package private) static BytesRef
SimpleTextLiveDocsFormat. DOC
(package private) static BytesRef
SimpleTextStoredFieldsWriter. DOC
(package private) static BytesRef
SimpleTextTermVectorsWriter. DOC
static BytesRef
SimpleTextPointsWriter. DOC_COUNT
(package private) static BytesRef
SimpleTextFieldInfosFormat. DOCVALUES
(package private) static BytesRef
SimpleTextFieldInfosFormat. DOCVALUES_GEN
private static BytesRef
SimpleTextKnnVectorsReader. EMPTY
(package private) static BytesRef
SimpleTextDocValuesWriter. END
(package private) static BytesRef
SimpleTextFieldsWriter. END
(package private) static BytesRef
SimpleTextLiveDocsFormat. END
static BytesRef
SimpleTextPointsWriter. END
(package private) static BytesRef
SimpleTextStoredFieldsWriter. END
(package private) static BytesRef
SimpleTextTermVectorsWriter. END
(package private) static BytesRef
SimpleTextFieldsWriter. END_OFFSET
(package private) static BytesRef
SimpleTextTermVectorsWriter. ENDOFFSET
(package private) static BytesRef
SimpleTextDocValuesWriter. FIELD
(package private) static BytesRef
SimpleTextFieldsWriter. FIELD
(package private) static BytesRef
SimpleTextStoredFieldsWriter. FIELD
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELD
static BytesRef
SimpleTextPointsWriter. FIELD_COUNT
static BytesRef
SimpleTextPointsWriter. FIELD_FP
static BytesRef
SimpleTextPointsWriter. FIELD_FP_NAME
(package private) static BytesRef
SimpleTextKnnVectorsWriter. FIELD_NAME
(package private) static BytesRef
SimpleTextKnnVectorsWriter. FIELD_NUMBER
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELDNAME
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELDOFFSETS
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELDPAYLOADS
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELDPOSITIONS
(package private) static BytesRef
SimpleTextTermVectorsWriter. FIELDTERMCOUNT
(package private) static BytesRef
SimpleTextFieldsWriter. FREQ
(package private) static BytesRef
SimpleTextSkipWriter. FREQ
(package private) static BytesRef
SimpleTextCompoundFormat. HEADER
(package private) static BytesRef
SimpleTextSkipWriter. IMPACT
(package private) static BytesRef
SimpleTextSkipWriter. IMPACTS
(package private) static BytesRef
SimpleTextSkipWriter. IMPACTS_END
static BytesRef
SimpleTextPointsWriter. INDEX_COUNT
(package private) static BytesRef
SimpleTextFieldInfosFormat. INDEX_DIM_COUNT
(package private) static BytesRef
SimpleTextFieldInfosFormat. INDEXOPTIONS
(package private) static BytesRef
SimpleTextDocValuesWriter. LENGTH
(package private) static BytesRef
SimpleTextSkipWriter. LEVEL
(package private) static BytesRef
SimpleTextSkipWriter. LEVEL_LENGTH
static BytesRef
SimpleTextPointsWriter. MAX_LEAF_POINTS
static BytesRef
SimpleTextPointsWriter. MAX_VALUE
(package private) static BytesRef
SimpleTextDocValuesWriter. MAXLENGTH
static BytesRef
SimpleTextPointsWriter. MIN_VALUE
(package private) static BytesRef
SimpleTextDocValuesWriter. MINVALUE
(package private) static BytesRef
SimpleTextFieldInfosFormat. NAME
(package private) static BytesRef
SimpleTextStoredFieldsWriter. NAME
(package private) static BytesRef
SimpleTextSkipWriter. NORM
(package private) static BytesRef
SimpleTextFieldInfosFormat. NORMS
(package private) static BytesRef
SimpleTextFieldInfosFormat. NUM_ATTS
static BytesRef
SimpleTextPointsWriter. NUM_DATA_DIMS
static BytesRef
SimpleTextPointsWriter. NUM_INDEX_DIMS
(package private) static BytesRef
SimpleTextFieldInfosFormat. NUMBER
(package private) static BytesRef
SimpleTextFieldInfosFormat. NUMFIELDS
(package private) static BytesRef
SimpleTextTermVectorsWriter. NUMFIELDS
(package private) static BytesRef
SimpleTextDocValuesWriter. NUMVALUES
(package private) static BytesRef
SimpleTextDocValuesWriter. ORDPATTERN
(package private) static BytesRef
SimpleTextFieldInfosFormat. PARENT
(package private) static BytesRef
SimpleTextDocValuesWriter. PATTERN
private BytesRef
SimpleTextFieldsReader.SimpleTextPostingsEnum. payload
(package private) static BytesRef
SimpleTextFieldsWriter. PAYLOAD
(package private) static BytesRef
SimpleTextTermVectorsWriter. PAYLOAD
private BytesRef[]
SimpleTextTermVectorsReader.SimpleTVPostings. payloads
private BytesRef[]
SimpleTextTermVectorsReader.SimpleTVPostingsEnum. payloads
(package private) static BytesRef
SimpleTextFieldInfosFormat. PAYLOADS
static BytesRef
SimpleTextPointsWriter. POINT_COUNT
(package private) static BytesRef
SimpleTextFieldsWriter. POS
(package private) static BytesRef
SimpleTextTermVectorsWriter. POSITION
(package private) BytesRef
SimpleTextBKDWriter. scratchBytesRef1
(package private) BytesRef
SimpleTextBKDWriter. scratchBytesRef2
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_ATT_KEY
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_ATT_VALUE
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_DIAG_KEY
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_DIAG_VALUE
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_DOCCOUNT
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_FILE
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_HAS_BLOCKS
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_ID
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_MIN_VERSION
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_NUM_ATT
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_NUM_DIAG
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_NUM_FILES
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_SORT
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_SORT_BYTES
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_SORT_NAME
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_SORT_TYPE
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_USECOMPOUND
(package private) static BytesRef
SimpleTextSegmentInfoFormat. SI_VERSION
(package private) static BytesRef
SimpleTextKnnVectorsWriter. SIZE
(package private) static BytesRef
SimpleTextLiveDocsFormat. SIZE
(package private) static BytesRef
SimpleTextSkipWriter. SKIP_DOC
(package private) static BytesRef
SimpleTextSkipWriter. SKIP_DOC_FP
(package private) static BytesRef
SimpleTextSkipWriter. SKIP_LIST
(package private) static BytesRef
SimpleTextFieldInfosFormat. SOFT_DELETES
static BytesRef
SimpleTextPointsWriter. SPLIT_COUNT
static BytesRef
SimpleTextPointsWriter. SPLIT_DIM
static BytesRef
SimpleTextPointsWriter. SPLIT_VALUE
(package private) static BytesRef
SimpleTextFieldsWriter. START_OFFSET
(package private) static BytesRef
SimpleTextTermVectorsWriter. STARTOFFSET
(package private) static BytesRef
SimpleTextFieldInfosFormat. STORETV
(package private) static BytesRef
SimpleTextFieldInfosFormat. STORETVOFF
(package private) static BytesRef
SimpleTextFieldInfosFormat. STORETVPOS
(package private) static BytesRef
SimpleTextCompoundFormat. TABLE
(package private) static BytesRef
SimpleTextCompoundFormat. TABLEEND
(package private) static BytesRef
SimpleTextCompoundFormat. TABLENAME
(package private) static BytesRef
SimpleTextCompoundFormat. TABLEPOS
(package private) static BytesRef
SimpleTextCompoundFormat. TABLESTART
(package private) static BytesRef
SimpleTextFieldsWriter. TERM
(package private) static BytesRef
SimpleTextTermVectorsWriter. TERMFREQ
(package private) static BytesRef
SimpleTextTermVectorsWriter. TERMTEXT
(package private) static BytesRef
SimpleTextDocValuesWriter. TYPE
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_BINARY
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_DOUBLE
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_FLOAT
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_INT
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_LONG
(package private) static BytesRef
SimpleTextStoredFieldsWriter. TYPE_STRING
(package private) static BytesRef
SimpleTextStoredFieldsWriter. VALUE
(package private) static BytesRef
SimpleTextKnnVectorsWriter. VECTOR_DATA_LENGTH
(package private) static BytesRef
SimpleTextKnnVectorsWriter. VECTOR_DATA_OFFSET
(package private) static BytesRef
SimpleTextKnnVectorsWriter. VECTOR_DIMENSION
(package private) static BytesRef
SimpleTextFieldInfosFormat. VECTOR_ENCODING
(package private) static BytesRef
SimpleTextFieldInfosFormat. VECTOR_NUM_DIMS
(package private) static BytesRef
SimpleTextFieldInfosFormat. VECTOR_SIMILARITY
Fields in org.apache.lucene.codecs.simpletext with type parameters of type BytesRef Modifier and Type Field Description (package private) java.util.Map.Entry<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings>
SimpleTextTermVectorsReader.SimpleTVTermsEnum. current
(package private) java.util.Iterator<java.util.Map.Entry<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings>>
SimpleTextTermVectorsReader.SimpleTVTermsEnum. iterator
(package private) java.util.SortedMap<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings>
SimpleTextTermVectorsReader.SimpleTVTerms. terms
(package private) java.util.SortedMap<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings>
SimpleTextTermVectorsReader.SimpleTVTermsEnum. terms
Methods in org.apache.lucene.codecs.simpletext that return BytesRef Modifier and Type Method Description static BytesRef
SimpleTextUtil. fromBytesRefString(java.lang.String s)
Inverse oftoString()
.BytesRef
SimpleTextFieldsReader.SimpleTextDocsEnum. getPayload()
BytesRef
SimpleTextFieldsReader.SimpleTextPostingsEnum. getPayload()
BytesRef
SimpleTextTermVectorsReader.SimpleTVDocsEnum. getPayload()
BytesRef
SimpleTextTermVectorsReader.SimpleTVPostingsEnum. getPayload()
BytesRef
SimpleTextFieldsReader.SimpleTextTermsEnum. next()
BytesRef
SimpleTextTermVectorsReader.SimpleTVTermsEnum. next()
BytesRef
SimpleTextFieldsReader.SimpleTextTermsEnum. term()
BytesRef
SimpleTextTermVectorsReader.SimpleTVTermsEnum. term()
Methods in org.apache.lucene.codecs.simpletext with parameters of type BytesRef Modifier and Type Method Description void
SimpleTextTermVectorsWriter. addPosition(int position, int startOffset, int endOffset, BytesRef payload)
private boolean
SimpleTextStoredFieldsReader. equalsAt(BytesRef a, BytesRef b, int bOffset)
private int
SimpleTextBKDReader.SimpleTextPointTree. parseInt(BytesRefBuilder scratch, BytesRef prefix)
private int
SimpleTextKnnVectorsReader. parseInt(BytesRef prefix)
private int
SimpleTextPointsReader. parseInt(BytesRef prefix)
private int
SimpleTextLiveDocsFormat. parseIntAt(BytesRef bytes, int offset, CharsRefBuilder scratch)
private long
SimpleTextKnnVectorsReader. parseLong(BytesRef prefix)
private long
SimpleTextPointsReader. parseLong(BytesRef prefix)
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 java.lang.String
SimpleTextKnnVectorsReader. readString(IndexInput in, BytesRef field)
void
SimpleTextTermVectorsReader.SimpleTVPostingsEnum. reset(int[] positions, int[] startOffsets, int[] endOffsets, BytesRef[] payloads)
TermsEnum.SeekStatus
SimpleTextFieldsReader.SimpleTextTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
SimpleTextTermVectorsReader.SimpleTVTermsEnum. seekCeil(BytesRef text)
boolean
SimpleTextFieldsReader.SimpleTextTermsEnum. seekExact(BytesRef text)
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
SimpleTextTermVectorsWriter. startTerm(BytesRef term, int freq)
private java.lang.String
SimpleTextBKDReader.SimpleTextPointTree. stripPrefix(BytesRefBuilder scratch, BytesRef prefix)
private java.lang.String
SimpleTextCompoundFormat. stripPrefix(BytesRefBuilder scratch, BytesRef prefix)
private java.lang.String
SimpleTextDocValuesReader. stripPrefix(BytesRef prefix)
Used only in ctor:private java.lang.String
SimpleTextKnnVectorsReader. stripPrefix(BytesRef prefix)
private java.lang.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
SimpleTextFieldsWriter. write(BytesRef b)
private void
SimpleTextKnnVectorsWriter. write(IndexOutput out, BytesRef b)
private void
SimpleTextPointsWriter. write(IndexOutput out, BytesRef b)
private void
SimpleTextStoredFieldsWriter. write(BytesRef bytes)
private void
SimpleTextTermVectorsWriter. write(BytesRef bytes)
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, java.lang.String value)
void
SimpleTextStoredFieldsWriter. writeField(FieldInfo info, BytesRef value)
Method parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRef Modifier and Type Method Description private boolean
SimpleTextBKDWriter. valuesInOrderAndBounds(int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, java.util.function.IntFunction<BytesRef> values, int[] docs, int docsOffset)
protected void
SimpleTextBKDWriter. writeLeafBlockPackedValues(IndexOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues)
Constructor parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRef Constructor Description SimpleTVTermsEnum(java.util.SortedMap<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings> terms)
-
Uses of BytesRef in org.apache.lucene.codecs.uniformsplit
Fields in org.apache.lucene.codecs.uniformsplit declared as BytesRef Modifier and Type Field Description protected BytesRef
IntersectBlockReader. commonSuffix
protected BytesRef
BlockLine.Serializer. currentTerm
protected BytesRef
BlockWriter. lastTerm
protected BytesRef
FieldMetadata. lastTerm
protected 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 BytesRef Modifier and Type Method Description BytesRef
BlockDecoder. decode(DataInput blockBytes, long length)
Decodes all the bytes of one block in a single operation.protected BytesRef
BlockReader. decodeBlockBytesIfNeeded(int numBlockBytes)
BytesRef
FieldMetadata. getLastTerm()
BytesRef
UniformSplitTerms. getMax()
BytesRef
TermBytes. getTerm()
BytesRef
BlockReader. next()
BytesRef
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.BytesRef
BlockReader. term()
Methods in org.apache.lucene.codecs.uniformsplit with parameters of type BytesRef Modifier and Type Method Description void
FSTDictionary.Builder. add(BytesRef blockKey, long blockFilePointer)
void
IndexDictionary.Builder. add(BytesRef blockKey, long blockFilePointer)
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
.TermsEnum
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
BlockLine.Serializer. readBytes(DataInput input, BytesRef bytes, int offset, int length)
TermBytes
TermBytes. reset(int mdpLength, BytesRef term)
long
FSTDictionary.Browser. seekBlock(BytesRef term)
long
IndexDictionary.Browser. seekBlock(BytesRef term)
Seeks the given term in theIndexDictionary
and returns its corresponding block file pointer.TermsEnum.SeekStatus
BlockReader. seekCeil(BytesRef searchedTerm)
TermsEnum.SeekStatus
IntersectBlockReader. seekCeil(BytesRef text)
boolean
BlockReader. seekExact(BytesRef searchedTerm)
void
BlockReader. seekExact(BytesRef term, TermState state)
Positions thisBlockReader
without re-seeking the term dictionary.boolean
IntersectBlockReader. seekExact(BytesRef text)
void
IntersectBlockReader. seekExact(BytesRef term, TermState state)
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 BytesRef Constructor Description FieldMetadata(long dictionaryStartFP, long firstBlockStartFP, long lastBlockStartFP, BytesRef lastTerm)
Constructs immutable virtual field metadata for reading.IntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder)
TermBytes(int mdpLength, BytesRef term)
-
Uses of BytesRef in org.apache.lucene.codecs.uniformsplit.sharedterms
Fields in org.apache.lucene.codecs.uniformsplit.sharedterms declared as BytesRef Modifier and Type Field Description private BytesRef
UnionFieldMetadataBuilder. maxLastTerm
protected BytesRef
STMergingTermsEnum. term
(package private) BytesRef
STUniformSplitTermsWriter.TermIterator. term
Methods in org.apache.lucene.codecs.uniformsplit.sharedterms that return BytesRef Modifier and Type Method Description BytesRef
STMergingTermsEnum.MultiSegmentsPostingsEnum. getPayload()
BytesRef
STBlockReader. next()
BytesRef
STIntersectBlockReader. next()
BytesRef
STMergingBlockReader. next()
BytesRef
STMergingTermsEnum. next()
protected BytesRef
STBlockReader. nextTerm()
Moves to the next term line and reads it, whichever are the corresponding fields.BytesRef
STMergingTermsEnum. term()
Methods in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type BytesRef Modifier and Type Method Description void
STBlockWriter. addLine(BytesRef term, java.util.List<FieldMetadataTermState> termStates, IndexDictionary.Builder dictionaryBuilder)
Adds a newBlockLine
term for the current field.private void
STUniformSplitTermsWriter. combinePostingsPerField(BytesRef term, java.util.Map<java.lang.String,STUniformSplitTermsWriter.MergingFieldTerms> fieldTermsMap, java.util.Map<java.lang.String,java.util.List<STUniformSplitTermsWriter.SegmentPostings>> fieldPostingsMap, java.util.List<STUniformSplitTermsWriter.MergingFieldTerms> groupedFieldTerms)
TermsEnum
STUniformSplitTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
protected boolean
STBlockReader. isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)
protected void
STMergingTermsEnum. reset(BytesRef term, java.util.List<STUniformSplitTermsWriter.SegmentPostings> segmentPostings)
Resets thisSTMergingTermsEnum
with a new term and its list ofSTUniformSplitTermsWriter.SegmentPostings
to combine.(package private) void
STUniformSplitTermsWriter.MergingFieldTerms. resetIterator(BytesRef term, java.util.List<STUniformSplitTermsWriter.SegmentPostings> segmentPostingsList)
TermsEnum.SeekStatus
STBlockReader. seekCeil(BytesRef searchedTerm)
TermsEnum.SeekStatus
STMergingBlockReader. seekCeil(BytesRef searchedTerm)
TermsEnum.SeekStatus
STMergingTermsEnum. seekCeil(BytesRef text)
(package private) TermsEnum.SeekStatus
STBlockReader. seekCeilIgnoreField(BytesRef searchedTerm)
boolean
STBlockReader. seekExact(BytesRef searchedTerm)
boolean
STMergingBlockReader. seekExact(BytesRef searchedTerm)
void
STMergingBlockReader. seekExact(BytesRef term, TermState state)
boolean
STMergingTermsEnum. seekExact(BytesRef text)
void
STMergingTermsEnum. seekExact(BytesRef term, TermState state)
private void
STUniformSplitTermsWriter. writePostingLines(BytesRef term, java.util.List<? extends STUniformSplitTermsWriter.TermIterator<STUniformSplitTermsWriter.FieldTerms>> groupedFieldTerms, NormsProducer normsProducer, java.util.List<FieldMetadataTermState> termStates)
Constructors in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type BytesRef Constructor Description STIntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos)
-
Uses of BytesRef in org.apache.lucene.collation
Fields in org.apache.lucene.collation declared as BytesRef Modifier and Type Field Description private BytesRef
CollationDocValuesField. bytes
-
Uses of BytesRef in org.apache.lucene.collation.tokenattributes
Methods in org.apache.lucene.collation.tokenattributes that return BytesRef Modifier and Type Method Description BytesRef
CollatedTermAttributeImpl. getBytesRef()
-
Uses of BytesRef in org.apache.lucene.document
Fields in org.apache.lucene.document declared as BytesRef Modifier and Type Field Description private BytesRef
KeywordField. binaryValue
private BytesRef
StoredValue. binaryValue
private BytesRef
StringField. binaryValue
private BytesRef
ShapeDocValues.Writer. bytesRef
private BytesRef
ShapeDocValues. data
the binary doc valueprivate BytesRef
FeatureDoubleValuesSource. featureName
private BytesRef
FeatureSortField.FeatureComparator. featureName
private BytesRef
SortedSetDocValuesRangeQuery. lowerValue
private BytesRef
SortedSetDocValuesRangeQuery. upperValue
private BytesRef
Field.BinaryTokenStream. value
Methods in org.apache.lucene.document that return BytesRef Modifier and Type Method Description BytesRef
BinaryRangeDocValues. binaryValue()
BytesRef
DoubleField. binaryValue()
BytesRef
Field. binaryValue()
BytesRef
FloatField. binaryValue()
BytesRef
IntField. binaryValue()
BytesRef
KeywordField. binaryValue()
BytesRef
LongField. binaryValue()
protected BytesRef
ShapeDocValues. binaryValue()
returns the encoded doc values field as aBytesRef
BytesRef
StringField. binaryValue()
private BytesRef
ShapeDocValues. computeBinaryValue(java.util.List<ShapeField.DecodedTriangle> tessellation)
BytesRef
Document. getBinaryValue(java.lang.String name)
Returns an array of bytes for the first (or only) field that has the name specified as the method parameter.BytesRef
StoredValue. getBinaryValue()
Retrieve a binary value.BytesRef[]
Document. getBinaryValues(java.lang.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 BytesRef Modifier and Type Method Description static LatLonShapeDocValuesField
LatLonShape. createDocValueField(java.lang.String fieldName, BytesRef binaryValue)
create aLatLonShapeDocValuesField
from an existing encoded representationstatic XYShapeDocValuesField
XYShape. createDocValueField(java.lang.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 Query
KeywordField. newExactQuery(java.lang.String field, BytesRef value)
Create a query for matching an exactBytesRef
value.static Query
KeywordField. newSetQuery(java.lang.String field, BytesRef... values)
Deprecated, for removal: This API element is subject to removal in a future version.UseKeywordField.newSetQuery(String, Collection)
instead.static Query
SortedDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)
Create a query for matching an exactBytesRef
value.static Query
SortedSetDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)
Create a query for matching an exactBytesRef
value.static Query
SortedDocValuesField. newSlowRangeQuery(java.lang.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(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)
Create a range query that matches all documents whose value is betweenlowerValue
andupperValue
.static Query
SortedDocValuesField. newSlowSetQuery(java.lang.String field, BytesRef... values)
Deprecated, for removal: This API element is subject to removal in a future version.static Query
SortedSetDocValuesField. newSlowSetQuery(java.lang.String field, BytesRef... values)
Deprecated, for removal: This API element is subject to removal in a future version.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
Field.BinaryTokenStream. setValue(BytesRef value)
static void
LongPoint. unpack(BytesRef bytesRef, int start, long[] buf)
Unpack a BytesRef into a long point.Method parameters in org.apache.lucene.document with type arguments of type BytesRef Modifier and Type Method Description static Query
KeywordField. newSetQuery(java.lang.String field, java.util.Collection<BytesRef> values)
Create a query for matching any of a set of providedBytesRef
values.static Query
SortedDocValuesField. newSlowSetQuery(java.lang.String field, java.util.Collection<BytesRef> values)
Create a query matching any of the specified values.static Query
SortedSetDocValuesField. newSlowSetQuery(java.lang.String field, java.util.Collection<BytesRef> values)
Create a query matching any of the specified values.Constructors in org.apache.lucene.document with parameters of type BytesRef Constructor Description BinaryDocValuesField(java.lang.String name, BytesRef value)
Create a new binary DocValues field.Field(java.lang.String name, BytesRef bytes, IndexableFieldType type)
Create field with binary value.KeywordField(java.lang.String name, BytesRef value, Field.Store stored)
Creates a new KeywordField.LatLonShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a lat lon doc value based on an already retrieved binary formatLatLonShapeDocValuesField(java.lang.String name, BytesRef binaryValue)
Creates aLatLonShapeDocValueField
from a given serialized valueReader(BytesRef binaryValue)
creates the docvalue reader from the binary valueShapeComparator(BytesRef binaryValue)
ShapeDocValues(BytesRef binaryValue)
Creates aShapeDocValues
instance from a given serialized valueSortedDocValuesField(java.lang.String name, BytesRef bytes)
Create a new sorted DocValues field.SortedSetDocValuesField(java.lang.String name, BytesRef bytes)
Create a new sorted DocValues field.SortedSetDocValuesRangeQuery(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)
StoredField(java.lang.String name, BytesRef value)
Create a stored-only field with the given binary value.StoredField(java.lang.String name, BytesRef bytes, FieldType type)
Expert: allows you to customize theFieldType
.StoredValue(BytesRef value)
Ctor for binary values.StringField(java.lang.String name, BytesRef value, Field.Store stored)
Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token.XYShapeDocValues(BytesRef binaryValue)
protected ctor for instantiating a cartesian doc value based on an already retrieved binary formatXYShapeDocValuesField(java.lang.String name, BytesRef binaryValue)
Creates aXYShapeDocValueField
from a given serialized value -
Uses of BytesRef in org.apache.lucene.index
Fields in org.apache.lucene.index declared as BytesRef Modifier and Type Field Description protected 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) BytesRef
PrefixCodedTerms.TermIterator. bytes
(package private) BytesRef
Term. bytes
private BytesRef
AutomatonTermsEnum. commonSuffixRef
private BytesRef
MultiTermsEnum. current
private BytesRef
TermsEnumIndex. currentTerm
(package private) BytesRef
TermVectorsConsumer. flushTerm
Scratch term used by TermVectorsConsumerPerField.finishDocument.private BytesRef
FilteredTermsEnum. initialSeekTerm
private BytesRef
MultiTermsEnum. lastSeek
private BytesRef
FrozenBufferedUpdates.TermDocsIterator. lastTerm
private BytesRef
AutomatonTermsEnum. linearUpperBound
private BytesRef
FreqProxTermsWriter.SortingPostingsEnum. payload
private BytesRef
FrozenBufferedUpdates.TermDocsIterator. readerTerm
(package private) BytesRef
FreqProxFields.FreqProxTermsEnum. scratch
(package private) BytesRef
SortedDocValuesWriter.BufferedSortedDocValues. scratch
(package private) BytesRef
SortedSetDocValuesWriter.BufferedSortedSetDocValues. scratch
private BytesRef
SingleTermsEnum. singleRef
(package private) BytesRef
BufferedUpdatesStream.SegmentState. term
(package private) BytesRef
FieldUpdatesBuffer.BufferedUpdate. termValue
The update terms value.private BytesRef
BinaryDocValuesFieldUpdates.Iterator. value
private BytesRef
DocValuesUpdate.BinaryDocValuesUpdate. value
Methods in org.apache.lucene.index that return BytesRef Modifier and Type Method Description abstract BytesRef
BinaryDocValues. binaryValue()
Returns the binary value for the current document ID.(package private) BytesRef
BinaryDocValuesFieldUpdates.Iterator. binaryValue()
BytesRef
BinaryDocValuesWriter.BufferedBinaryDocValues. binaryValue()
BytesRef
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()
BytesRef
FilterBinaryDocValues. binaryValue()
BytesRef
IndexableField. binaryValue()
Non-null if this field has a binary valueBytesRef
IndexingChain.ReservedField. binaryValue()
(package private) BytesRef
NumericDocValuesFieldUpdates.Iterator. binaryValue()
protected BytesRef
NumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates. binaryValue()
BytesRef
Term. bytes()
Returns the bytes of this term, these should not be modified.BytesRef
ExitableDirectoryReader.ExitableTerms. getMax()
BytesRef
MultiTerms. getMax()
BytesRef
Terms. getMax()
Returns the largest term (in lexicographic order) in the field.BytesRef
ExitableDirectoryReader.ExitableTerms. getMin()
BytesRef
MultiTerms. getMin()
BytesRef
Terms. getMin()
Returns the smallest term (in lexicographic order) in the field.BytesRef
FilterLeafReader.FilterPostingsEnum. getPayload()
BytesRef
FreqProxFields.FreqProxDocsEnum. getPayload()
BytesRef
FreqProxFields.FreqProxPostingsEnum. getPayload()
BytesRef
FreqProxTermsWriter.SortingDocsEnum. getPayload()
BytesRef
FreqProxTermsWriter.SortingPostingsEnum. getPayload()
BytesRef
MappingMultiPostingsEnum. getPayload()
BytesRef
MultiPostingsEnum. getPayload()
abstract BytesRef
PostingsEnum. getPayload()
Returns the payload at this position, or null if no payload was indexed.BytesRef
SlowImpactsEnum. getPayload()
(package private) BytesRef
DocValuesUpdate.BinaryDocValuesUpdate. getValue()
BytesRef
FilterSortedDocValues. lookupOrd(int ord)
BytesRef
FilterSortedSetDocValues. lookupOrd(long ord)
BytesRef
MultiDocValues.MultiSortedDocValues. lookupOrd(int ord)
BytesRef
MultiDocValues.MultiSortedSetDocValues. lookupOrd(long ord)
BytesRef
SingletonSortedSetDocValues. lookupOrd(long ord)
abstract BytesRef
SortedDocValues. lookupOrd(int ord)
Retrieves the value for the specified ordinal.BytesRef
SortedDocValuesWriter.BufferedSortedDocValues. lookupOrd(int ord)
BytesRef
SortedDocValuesWriter.SortingSortedDocValues. lookupOrd(int ord)
abstract BytesRef
SortedSetDocValues. lookupOrd(long ord)
Retrieves the value for the specified ordinal.BytesRef
SortedSetDocValuesWriter.BufferedSortedSetDocValues. lookupOrd(long ord)
BytesRef
SortedSetDocValuesWriter.SortingSortedSetDocValues. lookupOrd(long ord)
BytesRef
ExitableDirectoryReader.ExitableTermsEnum. next()
BytesRef
FilteredTermsEnum. next()
BytesRef
FilterLeafReader.FilterTermsEnum. next()
BytesRef
FreqProxFields.FreqProxTermsEnum. next()
BytesRef
MultiTermsEnum. next()
BytesRef
PrefixCodedTerms.TermIterator. next()
BytesRef
SortedDocValuesTermsEnum. next()
BytesRef
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.(package private) BytesRef
FieldUpdatesBuffer.BufferedUpdateIterator. nextTerm()
(package private) static BytesRef
DocValuesUpdate.BinaryDocValuesUpdate. readFrom(DataInput in, BytesRef scratch)
BytesRef
FilteredTermsEnum. term()
BytesRef
FilterLeafReader.FilterTermsEnum. term()
BytesRef
FreqProxFields.FreqProxTermsEnum. term()
BytesRef
MultiTermsEnum. term()
BytesRef
SortedDocValuesTermsEnum. term()
BytesRef
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 BytesRef Modifier and Type Method Description private java.util.Set<BytesRef>
BufferedUpdates.BytesRefIntMap. keySet()
Methods in org.apache.lucene.index with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatus
AutomatonTermsEnum. accept(BytesRef term)
Returns true if the term matches the automaton.protected abstract FilteredTermsEnum.AcceptStatus
FilteredTermsEnum. accept(BytesRef term)
Return if term is accepted, not accepted or the iteration should ended (and possibly seek).protected FilteredTermsEnum.AcceptStatus
SingleTermsEnum. accept(BytesRef term)
void
BinaryDocValuesFieldUpdates. add(int doc, BytesRef value)
(package private) abstract void
DocValuesFieldUpdates. add(int doc, BytesRef value)
(package private) void
DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates. add(int doc, BytesRef value)
(package private) void
NumericDocValuesFieldUpdates. add(int doc, BytesRef value)
void
PrefixCodedTerms.Builder. add(java.lang.String field, BytesRef bytes)
add a term.(package private) void
TermsHashPerField. add(BytesRef termBytes, int docID)
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
FieldUpdatesBuffer. addUpdate(Term term, BytesRef value, int docUpTo)
void
BinaryDocValuesWriter. addValue(int docID, BytesRef value)
void
SortedDocValuesWriter. addValue(int docID, BytesRef value)
void
SortedSetDocValuesWriter. addValue(int docID, BytesRef value)
private boolean
FrozenBufferedUpdates.TermDocsIterator. assertSorted(BytesRef term)
private static void
CheckIndex. checkTermsIntersect(Terms terms, Automaton automaton, BytesRef startTerm)
private int
BufferedUpdates.BytesRefIntMap. get(BytesRef key)
static PostingsEnum
MultiTerms. getTermPostingsEnum(IndexReader r, java.lang.String field, BytesRef term)
ReturnsPostingsEnum
for the specified field and term.static PostingsEnum
MultiTerms. getTermPostingsEnum(IndexReader r, java.lang.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
PointValuesWriter.MutableSortingPointValues. getValue(int i, BytesRef packedValue)
TermsEnum
ExitableDirectoryReader.ExitableTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum
FreqProxTermsWriter.SortingTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum
MultiTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
TermsEnum
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
FrozenBufferedUpdates.TermDocsIterator. nextTerm(java.lang.String field, BytesRef term)
(package private) static long
TermsEnumIndex. prefix8ToComparableUnsignedLong(BytesRef term)
Copy the first 8 bytes of the given term as a comparable unsigned long.private boolean
BufferedUpdates.BytesRefIntMap. put(BytesRef key, int value)
(package private) static BytesRef
DocValuesUpdate.BinaryDocValuesUpdate. readFrom(DataInput in, BytesRef scratch)
TermsEnum.SeekStatus
FilteredTermsEnum. seekCeil(BytesRef term)
This enum does not support seeking!TermsEnum.SeekStatus
FilterLeafReader.FilterTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
FreqProxFields.FreqProxTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
MultiTermsEnum. seekCeil(BytesRef term)
TermsEnum.SeekStatus
SortedDocValuesTermsEnum. seekCeil(BytesRef text)
TermsEnum.SeekStatus
SortedSetDocValuesTermsEnum. seekCeil(BytesRef text)
abstract TermsEnum.SeekStatus
TermsEnum. seekCeil(BytesRef text)
Seeks to the specified term, if it exists, or to the next (ceiling) term.(package private) TermsEnum.SeekStatus
TermsEnumIndex. seekCeil(BytesRef term)
boolean
BaseTermsEnum. seekExact(BytesRef text)
void
BaseTermsEnum. seekExact(BytesRef term, TermState state)
boolean
FilteredTermsEnum. seekExact(BytesRef term)
This enum does not support seeking!void
FilteredTermsEnum. seekExact(BytesRef term, TermState state)
This enum does not support seeking!boolean
FilterLeafReader.FilterTermsEnum. seekExact(BytesRef text)
void
FilterLeafReader.FilterTermsEnum. seekExact(BytesRef term, TermState state)
boolean
MultiTermsEnum. seekExact(BytesRef term)
boolean
SortedDocValuesTermsEnum. seekExact(BytesRef text)
void
SortedDocValuesTermsEnum. seekExact(BytesRef term, TermState state)
boolean
SortedSetDocValuesTermsEnum. seekExact(BytesRef text)
void
SortedSetDocValuesTermsEnum. seekExact(BytesRef term, TermState state)
abstract boolean
TermsEnum. seekExact(BytesRef text)
Attempts to seek to the exact term, returning true if the term is found.abstract void
TermsEnum. seekExact(BytesRef term, TermState state)
Expert: Seeks a specific position byTermState
previously obtained fromTermsEnum.termState()
.(package private) boolean
TermsEnumIndex. seekExact(BytesRef term)
(package private) void
Term. set(java.lang.String fld, BytesRef bytes)
Resets the field and text of a Term.protected void
FilteredTermsEnum. setInitialSeekTerm(BytesRef term)
Use this method to set the initialBytesRef
to seek before iterating.private void
TermsEnumIndex. setTerm(BytesRef term)
static java.lang.String
Term. toString(BytesRef termText)
Returns human-readable form of the term text.long
IndexWriter. updateBinaryDocValue(Term term, java.lang.String field, BytesRef value)
Constructors in org.apache.lucene.index with parameters of type BytesRef Constructor Description BinaryDocValuesUpdate(Term term, java.lang.String field, BytesRef value)
BinaryDocValuesUpdate(Term term, java.lang.String field, BytesRef value, int docIDUpTo)
Iterator(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen)
SingleTermsEnum(TermsEnum tenum, BytesRef termText)
Creates a newSingleTermsEnum
.Term(java.lang.String fld, BytesRef bytes)
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 BytesRef Modifier and Type Field Description private 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 BytesRef Modifier and Type Method Description BytesRef
MemoryIndex.MemoryIndexReader.MemoryPostingsEnum. getPayload()
BytesRef
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. next()
BytesRef
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. term()
Methods in org.apache.lucene.index.memory with parameters of type BytesRef Modifier and Type Method Description private int
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. binarySearch(BytesRef b, BytesRef bytesRef, int low, int high, BytesRefHash hash, int[] ords)
TermsEnum.SeekStatus
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekCeil(BytesRef text)
boolean
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekExact(BytesRef text)
void
MemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekExact(BytesRef term, TermState state)
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 BytesRef Modifier and Type Field Description BytesRef
TermStats. termtext
Constructors in org.apache.lucene.misc with parameters of type BytesRef Constructor Description TermStats(java.lang.String field, BytesRef termtext, int df, long tf)
-
Uses of BytesRef in org.apache.lucene.misc.document
Methods in org.apache.lucene.misc.document that return BytesRef Modifier and Type Method Description BytesRef
LazyDocument.LazyField. binaryValue()
-
Uses of BytesRef in org.apache.lucene.misc.search
Methods in org.apache.lucene.misc.search that return BytesRef Modifier and Type Method Description private static BytesRef
DocValuesStats. copyFrom(BytesRef src, BytesRef dest)
Methods in org.apache.lucene.misc.search with parameters of type BytesRef Modifier and Type Method Description private static BytesRef
DocValuesStats. copyFrom(BytesRef src, BytesRef dest)
-
Uses of BytesRef in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as BytesRef Modifier and Type Field Description private static BytesRef
WritableQueryIndex. EMPTY
(package private) BytesRef
TermFilteredPresearcher.BytesRefHashIterator. scratch
private BytesRef
RegexpQueryHandler. wildcardTokenBytes
Methods in org.apache.lucene.monitor that return BytesRef Modifier and Type Method Description private static BytesRef[]
MultipassTermFilteredPresearcher. convertHash(BytesRefHash hash)
BytesRef
TermFilteredPresearcher.BytesRefHashIterator. next()
BytesRef
MonitorQuerySerializer. serialize(MonitorQuery query)
Converts a MonitorQuery into a byte representationMethods in org.apache.lucene.monitor with parameters of type BytesRef Modifier and Type Method Description void
MultipassTermFilteredPresearcher.MultipassDocumentQueryBuilder. addTerm(java.lang.String field, BytesRef term)
void
TermFilteredPresearcher.DocumentQueryBuilder. addTerm(java.lang.String field, BytesRef term)
Add a term from this documentMonitorQuery
MonitorQuerySerializer. deserialize(BytesRef binaryValue)
Builds a MonitorQuery from a byte representationstatic QueryTree
QueryTree. term(java.lang.String field, BytesRef term, double weight)
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
QueryIndex.QueryTermFilter. test(java.lang.String field, BytesRef term)
Method parameters in org.apache.lucene.monitor with type arguments of type BytesRef Modifier and Type Method Description abstract Query
Presearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)
Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.Query
QueryIndex.QueryBuilder. buildQuery(java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)
Query
TermFilteredPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)
abstract void
QueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)
Collect terms from the most highly-weighted path below this nodevoid
QueryTree.ConjunctionQueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)
void
QueryTree.DisjunctionQueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)
static TermWeightor
TermWeightor. termWeightor(double weight, java.util.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 BytesRef Modifier and Type Field Description protected BytesRef
LiteralValueSource. bytesRef
protected BytesRef
DocFreqValueSource. indexedBytes
protected BytesRef
TotalTermFreqValueSource. indexedBytes
Constructors in org.apache.lucene.queries.function.valuesource with parameters of type BytesRef Constructor Description DocFreqValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
IDFValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
TermFreqValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
TFValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
TotalTermFreqValueSource(java.lang.String field, java.lang.String val, java.lang.String indexedField, BytesRef indexedBytes)
-
Uses of BytesRef in org.apache.lucene.queries.intervals
Fields in org.apache.lucene.queries.intervals declared as BytesRef Modifier and Type Field Description (package private) BytesRef
PayloadFilteredTermIntervalsSource. term
(package private) BytesRef
TermIntervalsSource. term
Fields in org.apache.lucene.queries.intervals with type parameters of type BytesRef Modifier and Type Field Description (package private) java.util.function.Predicate<BytesRef>
PayloadFilteredTermIntervalsSource. filter
Methods in org.apache.lucene.queries.intervals with parameters of type BytesRef Modifier and Type Method Description (package private) static IntervalIterator
TermIntervalsSource. intervals(BytesRef term, TermsEnum te)
static IntervalsSource
Intervals. prefix(BytesRef prefix)
Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Intervals. prefix(BytesRef prefix, int maxExpansions)
Expert: Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Intervals. term(BytesRef term)
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
Intervals. term(BytesRef term, java.util.function.Predicate<BytesRef> payloadFilter)
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Intervals. wildcard(BytesRef wildcard)
Return anIntervalsSource
over the disjunction of all terms that match a wildcard globstatic IntervalsSource
Intervals. wildcard(BytesRef wildcard, int maxExpansions)
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 BytesRef Modifier and Type Method Description static IntervalsSource
Intervals. term(java.lang.String term, java.util.function.Predicate<BytesRef> payloadFilter)
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Intervals. term(BytesRef term, java.util.function.Predicate<BytesRef> payloadFilter)
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 BytesRef Constructor Description PayloadFilteredTermIntervalsSource(BytesRef term, java.util.function.Predicate<BytesRef> filter)
TermIntervalsSource(BytesRef term)
Constructor parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRef Constructor Description PayloadFilteredTermIntervalsSource(BytesRef term, java.util.function.Predicate<BytesRef> filter)
-
Uses of BytesRef in org.apache.lucene.queries.payloads
Fields in org.apache.lucene.queries.payloads with type parameters of type BytesRef Modifier and Type Field Description protected java.util.List<BytesRef>
SpanPayloadCheckQuery. payloadToMatch
Methods in org.apache.lucene.queries.payloads with parameters of type BytesRef Modifier and Type Method Description boolean
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 BytesRef Constructor Description SpanPayloadCheckQuery(SpanQuery match, java.util.List<BytesRef> payloadToMatch)
SpanPayloadCheckQuery(SpanQuery match, java.util.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 BytesRef Modifier and Type Method Description private BytesRef
QueryParserBase. analyzeWildcard(java.lang.String field, java.lang.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 Modifier and Type Method Description BytesRef
RegexpQueryNode. textToBytesRef()
-
Uses of BytesRef in org.apache.lucene.sandbox.codecs.idversion
Fields in org.apache.lucene.sandbox.codecs.idversion declared as BytesRef Modifier and Type Field Description BytesRef
VersionBlockTreeTermsWriter.FieldMetaData. maxTerm
(package private) BytesRef
VersionFieldReader. maxTerm
BytesRef
VersionBlockTreeTermsWriter.FieldMetaData. minTerm
(package private) BytesRef
VersionFieldReader. minTerm
private BytesRef
SinglePostingsEnum. payload
BytesRef
VersionBlockTreeTermsWriter.PendingBlock. prefix
Fields in org.apache.lucene.sandbox.codecs.idversion with type parameters of type BytesRef Modifier and Type Field Description (package private) FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>>
IDVersionSegmentTermsEnumFrame. arc
(package private) static PairOutputs<BytesRef,java.lang.Long>
VersionBlockTreeTermsWriter. FST_OUTPUTS
FST<PairOutputs.Pair<BytesRef,java.lang.Long>>
VersionBlockTreeTermsWriter.PendingBlock. index
(package private) FST<PairOutputs.Pair<BytesRef,java.lang.Long>>
VersionFieldReader. index
(package private) static PairOutputs.Pair<BytesRef,java.lang.Long>
VersionBlockTreeTermsWriter. NO_OUTPUT
PairOutputs.Pair<BytesRef,java.lang.Long>
VersionBlockTreeTermsWriter.FieldMetaData. rootCode
(package private) PairOutputs.Pair<BytesRef,java.lang.Long>
VersionFieldReader. rootCode
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>>
VersionBlockTreeTermsWriter.PendingBlock. subIndices
Methods in org.apache.lucene.sandbox.codecs.idversion that return BytesRef Modifier and Type Method Description BytesRef
VersionFieldReader. getMax()
BytesRef
VersionFieldReader. getMin()
BytesRef
SingleDocsEnum. getPayload()
BytesRef
SinglePostingsEnum. getPayload()
BytesRef
IDVersionSegmentTermsEnum. next()
private static BytesRef
VersionBlockTreeTermsReader. readBytesRef(IndexInput in)
BytesRef
IDVersionSegmentTermsEnum. term()
Methods in org.apache.lucene.sandbox.codecs.idversion that return types with arguments of type BytesRef Modifier and Type Method Description private FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>>
IDVersionSegmentTermsEnum. getArc(int ord)
Methods in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRef Modifier and Type Method Description void
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
VersionBlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.void
IDVersionSegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)
TermsEnum.SeekStatus
IDVersionSegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
IDVersionSegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
IDVersionSegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)
TermsEnum.SeekStatus
IDVersionSegmentTermsEnum. seekCeil(BytesRef target)
boolean
IDVersionSegmentTermsEnum. seekExact(BytesRef target)
boolean
IDVersionSegmentTermsEnum. seekExact(BytesRef target, long minIDVersion)
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
IDVersionSegmentTermsEnum. seekExact(BytesRef target, TermState otherState)
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 BytesRef Modifier and Type Method Description private void
VersionBlockTreeTermsWriter.PendingBlock. append(FSTCompiler<PairOutputs.Pair<BytesRef,java.lang.Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef)
private void
VersionBlockTreeTermsWriter.PendingBlock. append(FSTCompiler<PairOutputs.Pair<BytesRef,java.lang.Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef)
(package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, long fp, int length)
(package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, PairOutputs.Pair<BytesRef,java.lang.Long> frameData, int length)
(package private) IDVersionSegmentTermsEnumFrame
IDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, PairOutputs.Pair<BytesRef,java.lang.Long> frameData, int length)
Constructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRef Constructor Description FieldMetaData(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef,java.lang.Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm)
PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices)
PendingTerm(BytesRef term, BlockTermState state)
VersionFieldReader(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef,java.lang.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 BytesRef Constructor Description FieldMetaData(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef,java.lang.Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm)
PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices)
VersionFieldReader(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef,java.lang.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 BytesRef Modifier and Type Method Description private static BytesRef
BigIntegerPoint. pack(java.math.BigInteger... point)
private static BytesRef
HalfFloatPoint. pack(float... point)
Methods in org.apache.lucene.sandbox.document with parameters of type BytesRef Modifier and Type Method Description void
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 BytesRef Modifier and Type Field Description protected BytesRef
PhraseWildcardQuery.TermBytesTermState. termBytes
protected BytesRef
PhraseWildcardQuery.TermStats. termBytes
private BytesRef[]
CombinedFieldQuery. terms
Fields in org.apache.lucene.sandbox.search with type parameters of type BytesRef Modifier and Type Field Description private IntObjectHashMap<BytesRef>
TermAutomatonQuery. idToTerm
private java.util.Set<BytesRef>
CombinedFieldQuery.Builder. termsSet
private java.util.Map<BytesRef,java.lang.Integer>
TermAutomatonQuery. termToID
Methods in org.apache.lucene.sandbox.search that return BytesRef Modifier and Type Method Description BytesRef
PhraseWildcardQuery.TermStats. getTermBytes()
Methods in org.apache.lucene.sandbox.search that return types with arguments of type BytesRef Modifier and Type Method Description protected java.util.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 BytesRef Modifier and Type Method Description CombinedFieldQuery.Builder
CombinedFieldQuery.Builder. addTerm(BytesRef term)
Adds a term to this builder.PhraseWildcardQuery.Builder
PhraseWildcardQuery.Builder. addTerm(BytesRef termBytes)
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
TermAutomatonQuery. getTermID(BytesRef term)
Method parameters in org.apache.lucene.sandbox.search with type arguments of type BytesRef Modifier and Type Method Description protected java.util.List<PhraseWildcardQuery.TermBytesTermState>
PhraseWildcardQuery. collectMultiTermDataForSegment(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext, int remainingExpansions, MutableValueBool shouldStopSegmentIteration, java.util.Map<BytesRef,PhraseWildcardQuery.TermStats> termStatsMap)
Collects theTermState
list andTermStatistics
for a multi-term on a specific index segment.protected void
PhraseWildcardQuery. collectMultiTermStats(IndexSearcher searcher, java.util.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 BytesRef Constructor Description CombinedFieldQuery(java.util.TreeMap<java.lang.String,CombinedFieldQuery.FieldAndWeight> fieldAndWeights, BytesRef[] terms)
TermBytesTermState(BytesRef termBytes, TermState termState)
TermStats(BytesRef termBytes)
-
Uses of BytesRef in org.apache.lucene.search
Fields in org.apache.lucene.search declared as BytesRef Modifier and Type Field Description private BytesRef
FieldComparator.TermValComparator. bottom
private BytesRef
FuzzyTermsEnum. bottomTerm
private BytesRef
MaxNonCompetitiveBoostAttributeImpl. competitiveTerm
private BytesRef
TermRangeQuery. lowerTerm
private BytesRef
PointInSetQuery.MergePointVisitor. nextQueryPoint
private BytesRef
FuzzyTermsEnum. queuedBottom
private BytesRef
TermInSetQuery.SetEnum. seekTerm
(package private) BytesRef
AbstractMultiTermQueryConstantScoreWrapper.TermAndState. term
(package private) BytesRef
SynonymQuery.TermAndBoost. term
private BytesRef
TermStatistics. term
private BytesRef
FieldComparator.TermValComparator. topValue
private BytesRef
TermRangeQuery. upperTerm
private BytesRef[]
FieldComparator.TermValComparator. values
Fields in org.apache.lucene.search with type parameters of type BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>
SortField. bytesComparator
Methods in org.apache.lucene.search that return BytesRef Modifier and Type Method Description BytesRef
MaxNonCompetitiveBoostAttribute. getCompetitiveTerm()
This is the term ornull
of the term that triggered the boost change.BytesRef
MaxNonCompetitiveBoostAttributeImpl. getCompetitiveTerm()
BytesRef
TermRangeQuery. getLowerTerm()
Returns the lower value of this range queryBytesRef
MultiPhraseQuery.UnionFullPostingsEnum. getPayload()
BytesRef
MultiPhraseQuery.UnionPostingsEnum. getPayload()
BytesRef
TermRangeQuery. getUpperTerm()
Returns the upper value of this range queryprivate BytesRef
FieldComparator.TermValComparator. getValueForDoc(int doc)
BytesRef
SortedSetSelector.MaxValue. lookupOrd(int ord)
BytesRef
SortedSetSelector.MiddleMaxValue. lookupOrd(int ord)
BytesRef
SortedSetSelector.MiddleMinValue. lookupOrd(int ord)
BytesRef
SortedSetSelector.MinValue. lookupOrd(int ord)
BytesRef
FuzzyTermsEnum. next()
abstract BytesRef
PointInSetQuery.Stream. next()
protected BytesRef
TermInSetQuery.SetEnum. nextSeekTerm(BytesRef currentTerm)
BytesRef
FuzzyTermsEnum. term()
BytesRef
TermStatistics. term()
The term text.BytesRef
FieldComparator.TermValComparator. value(int slot)
Methods in org.apache.lucene.search that return types with arguments of type BytesRef Modifier and Type Method Description java.util.Comparator<BytesRef>
SortField. getBytesComparator()
Methods in org.apache.lucene.search with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatus
TermInSetQuery.SetEnum. accept(BytesRef term)
SynonymQuery.Builder
SynonymQuery.Builder. addTerm(BytesRef term, float boost)
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
ScoringRewrite.ParallelArraysTermCollector. collect(BytesRef bytes)
abstract boolean
TermCollectingRewrite.TermCollector. collect(BytesRef bytes)
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
FuzzyTermsEnum. matches(BytesRef termIn, int k)
returns true if term is within k edits of the query termprotected BytesRef
TermInSetQuery.SetEnum. nextSeekTerm(BytesRef currentTerm)
TermsEnum.SeekStatus
FuzzyTermsEnum. seekCeil(BytesRef text)
boolean
FuzzyTermsEnum. seekExact(BytesRef text)
void
FuzzyTermsEnum. seekExact(BytesRef term, TermState state)
void
MaxNonCompetitiveBoostAttribute. setCompetitiveTerm(BytesRef competitiveTerm)
This is the term ornull
of the term that triggered the boost change.void
MaxNonCompetitiveBoostAttributeImpl. setCompetitiveTerm(BytesRef competitiveTerm)
void
PointInSetQuery.SinglePointVisitor. setPoint(BytesRef point)
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[]
PhraseQuery. toTerms(java.lang.String field, BytesRef... termBytes)
Method parameters in org.apache.lucene.search with type arguments of type BytesRef Modifier and Type Method Description private static PrefixCodedTerms
TermInSetQuery. packTerms(java.lang.String field, java.util.Collection<BytesRef> terms)
void
SortField. setBytesComparator(java.util.Comparator<BytesRef> b)
Constructors in org.apache.lucene.search with parameters of type BytesRef Constructor Description PhraseQuery(int slop, java.lang.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(java.lang.String field, BytesRef... terms)
Create a phrase query which will match documents that contain the given list of terms at consecutive positions infield
.TermAndBoost(BytesRef term, float boost)
TermAndState(BytesRef term, TermState state, int docFreq, long totalTermFreq)
TermInSetQuery(java.lang.String field, BytesRef... terms)
Deprecated.UseTermInSetQuery(String, Collection)
instead.TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, java.lang.String field, BytesRef... terms)
Deprecated.UseTermInSetQuery(RewriteMethod, String, Collection)
instead.TermRangeQuery(java.lang.String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper)
Constructs a query selecting all terms greater/equal thanlowerTerm
but less/equal thanupperTerm
.TermRangeQuery(java.lang.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 BytesRef Constructor Description TermInSetQuery(java.lang.String field, java.util.Collection<BytesRef> terms)
TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, java.lang.String field, java.util.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 BytesRef Modifier and Type Field Description (package private) BytesRef
TermOrdValComparator. bottomValue
(package private) BytesRef
TermOrdValComparator. topValue
Set by setTopValue.(package private) BytesRef[]
TermOrdValComparator. values
Methods in org.apache.lucene.search.comparators that return BytesRef Modifier and Type Method Description BytesRef
TermOrdValComparator. value(int slot)
Methods in org.apache.lucene.search.comparators with parameters of type BytesRef Modifier and Type Method Description int
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 BytesRef Modifier and Type Field Description protected BytesRef
GroupFacetCollector. facetPrefix
(package private) BytesRef
TermGroupFacetCollector.GroupedFacetHit. facetValue
(package private) BytesRef
TermGroupFacetCollector.GroupedFacetHit. groupValue
protected BytesRef
GroupFacetCollector.SegmentResult. mergeTerm
private BytesRef
TermGroupSelector. scratch
private BytesRef
GroupFacetCollector.FacetEntry. value
Methods in org.apache.lucene.search.grouping that return BytesRef Modifier and Type Method Description BytesRef
TermGroupSelector. copyValue()
BytesRef
TermGroupSelector. currentValue()
BytesRef
GroupFacetCollector.FacetEntry. getValue()
Methods in org.apache.lucene.search.grouping with parameters of type BytesRef Modifier and Type Method Description void
GroupFacetCollector.GroupedFacetResult. addFacetCount(BytesRef facetValue, int count)
static TermGroupFacetCollector
TermGroupFacetCollector. createTermGroupFacetCollector(java.lang.String groupField, java.lang.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 BytesRef Modifier and Type Method Description void
TermGroupSelector. setGroups(java.util.Collection<SearchGroup<BytesRef>> searchGroups)
Constructors in org.apache.lucene.search.grouping with parameters of type BytesRef Constructor Description FacetEntry(BytesRef value, int count)
GroupedFacetHit(BytesRef groupValue, BytesRef facetValue)
GroupFacetCollector(java.lang.String groupField, java.lang.String facetField, BytesRef facetPrefix)
MV(java.lang.String groupField, java.lang.String facetField, BytesRef facetPrefix, int initialSize)
SV(java.lang.String groupField, java.lang.String facetField, BytesRef facetPrefix, int initialSize)
TermGroupFacetCollector(java.lang.String groupField, java.lang.String facetField, BytesRef facetPrefix, int initialSize)
-
Uses of BytesRef in org.apache.lucene.search.join
Fields in org.apache.lucene.search.join declared as BytesRef Modifier and Type Field Description private BytesRef
SeekingTermSetTermsEnum. lastTerm
private BytesRef
PointInSetIncludingScoreQuery.MergePointVisitor. nextQueryPoint
private BytesRef
PointInSetIncludingScoreQuery.MergePointVisitor. scratch
private BytesRef
SeekingTermSetTermsEnum. seekTerm
private BytesRef
SeekingTermSetTermsEnum. spare
Methods in org.apache.lucene.search.join that return BytesRef Modifier and Type Method Description BytesRef
ToParentDocValues.SortedDVs. lookupOrd(int ord)
protected BytesRef
SeekingTermSetTermsEnum. nextSeekTerm(BytesRef currentTerm)
Methods in org.apache.lucene.search.join with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatus
SeekingTermSetTermsEnum. accept(BytesRef term)
protected BytesRef
SeekingTermSetTermsEnum. nextSeekTerm(BytesRef currentTerm)
-
Uses of BytesRef in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as BytesRef Modifier and Type Field Description BytesRef
DirectSpellChecker.ScoreTerm. term
The actual spellcheck correction.Methods in org.apache.lucene.search.spell that return BytesRef Modifier and Type Method Description BytesRef
HighFrequencyDictionary.HighFrequencyIterator. next()
BytesRef
PlainTextDictionary.FileIterator. next()
BytesRef
HighFrequencyDictionary.HighFrequencyIterator. payload()
Methods in org.apache.lucene.search.spell that return types with arguments of type BytesRef Modifier and Type Method Description java.util.Set<BytesRef>
HighFrequencyDictionary.HighFrequencyIterator. contexts()
-
Uses of BytesRef in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as BytesRef Modifier and Type Field Description private BytesRef
DocumentDictionary.DocumentInputIterator. currentPayload
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 BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>
InMemorySorter. comparator
private java.util.Comparator<BytesRef>
SortedInputIterator. comparator
java.util.Set<BytesRef>
Lookup.LookupResult. contexts
the key's contexts (null if not present)private java.util.Set<BytesRef>
SortedInputIterator. contexts
protected java.util.List<java.util.Set<BytesRef>>
BufferedInputIterator. contextSets
buffered context set entriesprivate java.util.Set<BytesRef>
DocumentDictionary.DocumentInputIterator. currentContexts
private java.util.Comparator<BytesRef>
SortedInputIterator. tieBreakByCostComparator
Sortes by BytesRef (ascending) then cost (ascending).Methods in org.apache.lucene.search.suggest that return BytesRef Modifier and Type Method Description protected BytesRef
SortedInputIterator. decodePayload(BytesRef scratch, ByteArrayDataInput tmpInput)
decodes the payload at the current positionBytesRef
BufferedInputIterator. next()
BytesRef
DocumentDictionary.DocumentInputIterator. next()
BytesRef
FileDictionary.FileIterator. next()
BytesRef
InputIterator.InputIteratorWrapper. next()
BytesRef
SortedInputIterator. next()
BytesRef
UnsortedInputIterator. next()
BytesRef
BufferedInputIterator. payload()
BytesRef
DocumentDictionary.DocumentInputIterator. payload()
BytesRef
FileDictionary.FileIterator. payload()
BytesRef
InputIterator.InputIteratorWrapper. payload()
BytesRef
InputIterator. payload()
An arbitrary byte[] to record per suggestion.BytesRef
SortedInputIterator. payload()
BytesRef
UnsortedInputIterator. payload()
Methods in org.apache.lucene.search.suggest that return types with arguments of type BytesRef Modifier and Type Method Description java.util.Set<BytesRef>
BufferedInputIterator. contexts()
java.util.Set<BytesRef>
DocumentDictionary.DocumentInputIterator. contexts()
java.util.Set<BytesRef>
FileDictionary.FileIterator. contexts()
java.util.Set<BytesRef>
InputIterator. contexts()
A term's contexts context can be used to filter suggestions.java.util.Set<BytesRef>
InputIterator.InputIteratorWrapper. contexts()
java.util.Set<BytesRef>
SortedInputIterator. contexts()
java.util.Set<BytesRef>
UnsortedInputIterator. contexts()
protected java.util.Set<BytesRef>
SortedInputIterator. decodeContexts(BytesRef scratch, ByteArrayDataInput tmpInput)
decodes the contexts at the current positionjava.util.Comparator<BytesRef>
InMemorySorter. getComparator()
Methods in org.apache.lucene.search.suggest with parameters of type BytesRef Modifier and Type Method Description void
InMemorySorter. add(BytesRef utf8)
protected long
SortedInputIterator. decode(BytesRef scratch, ByteArrayDataInput tmpInput)
decodes the weight at the current positionprotected java.util.Set<BytesRef>
SortedInputIterator. 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, java.util.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 BytesRef Modifier and Type Method Description protected void
SortedInputIterator. encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, java.util.Set<BytesRef> contexts, long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writerabstract java.util.List<Lookup.LookupResult>
Lookup. lookup(java.lang.CharSequence key, java.util.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 BytesRef Constructor Description LookupResult(java.lang.CharSequence key, long value, BytesRef payload)
Create a new result from a key+weight+payload triple.LookupResult(java.lang.CharSequence key, long value, BytesRef payload, java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.LookupResult(java.lang.CharSequence key, java.lang.Object highlightKey, long value, BytesRef payload)
Create a new result from a key+highlightKey+weight+payload triple.LookupResult(java.lang.CharSequence key, java.lang.Object highlightKey, long value, BytesRef payload, java.util.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 BytesRef Constructor Description InMemorySorter(java.util.Comparator<BytesRef> comparator)
Creates an InMemorySorter, sorting entries by the provided comparator.LookupResult(java.lang.CharSequence key, long value, java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+contexts triple.LookupResult(java.lang.CharSequence key, long value, BytesRef payload, java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.LookupResult(java.lang.CharSequence key, java.lang.Object highlightKey, long value, BytesRef payload, java.util.Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.SortedInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source, java.util.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 BytesRef Modifier and Type Field Description private BytesRef
AnalyzingSuggester.AnalyzingComparator. scratchA
private BytesRef
AnalyzingSuggester.AnalyzingComparator. scratchB
Fields in org.apache.lucene.search.suggest.analyzing with type parameters of type BytesRef Modifier and Type Field Description private FST<PairOutputs.Pair<java.lang.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 java.util.Comparator<PairOutputs.Pair<java.lang.Long,BytesRef>>
AnalyzingSuggester. weightComparator
Methods in org.apache.lucene.search.suggest.analyzing that return types with arguments of type BytesRef Modifier and Type Method Description protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
AnalyzingSuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
FuzzySuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type BytesRef Modifier and Type Method Description void
AnalyzingInfixSuggester. add(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
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, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
int
AnalyzingSuggester.AnalyzingComparator. compare(BytesRef a, BytesRef b)
private int
FreeTextSuggester. countGrams(BytesRef token)
private Lookup.LookupResult
AnalyzingSuggester. getLookupResult(java.lang.Long output1, BytesRef output2, CharsRefBuilder spare)
private java.lang.Long
FreeTextSuggester. lookupPrefix(FST<java.lang.Long> fst, FST.BytesReader bytesReader, BytesRef scratch, FST.Arc<java.lang.Long> arc)
private boolean
AnalyzingSuggester. sameSurfaceForm(BytesRef key, BytesRef output2)
(package private) Automaton
AnalyzingSuggester. toAutomaton(BytesRef surfaceForm, TokenStreamToAutomaton ts2a)
void
AnalyzingInfixSuggester. update(BytesRef text, java.util.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 BytesRef Modifier and Type Method Description void
AnalyzingInfixSuggester. add(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
Adds a new suggestion.private Document
AnalyzingInfixSuggester. buildDocument(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
AnalyzingSuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
AnalyzingSuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
FuzzySuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>>
FuzzySuggester. getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
java.util.List<Lookup.LookupResult>
AnalyzingInfixSuggester. lookup(java.lang.CharSequence key, java.util.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
).java.util.List<Lookup.LookupResult>
AnalyzingInfixSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)
java.util.List<Lookup.LookupResult>
AnalyzingInfixSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight)
Lookup, with context but without booleans.java.util.List<Lookup.LookupResult>
AnalyzingSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)
java.util.List<Lookup.LookupResult>
BlendedInfixSuggester. lookup(java.lang.CharSequence key, java.util.Map<BytesRef,BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight)
java.util.List<Lookup.LookupResult>
BlendedInfixSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)
java.util.List<Lookup.LookupResult>
BlendedInfixSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight)
java.util.List<Lookup.LookupResult>
FreeTextSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)
java.util.List<Lookup.LookupResult>
FreeTextSuggester. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, int num)
Retrieve suggestions.private BooleanQuery
AnalyzingInfixSuggester. toQuery(java.util.Map<BytesRef,BooleanClause.Occur> contextInfo)
private BooleanQuery
AnalyzingInfixSuggester. toQuery(java.util.Set<BytesRef> contextInfo)
void
AnalyzingInfixSuggester. update(BytesRef text, java.util.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 BytesRef Modifier and Type Field Description private BytesRef
CompletionTokenStream. payload
(package private) BytesRef
NRTSuggesterBuilder.Entry. payload
private BytesRef
SuggestField. surfaceForm
Fields in org.apache.lucene.search.suggest.document with type parameters of type BytesRef Modifier and Type Field Description private FST<PairOutputs.Pair<java.lang.Long,BytesRef>>
NRTSuggester. fst
FST: input is the analyzed form, with a null byte between terms and a NRTSuggesterBuilder.END_BYTE
to denote the end of the input weight is a long surface is the original, unanalyzed form followed by the docIDprivate FSTCompiler<PairOutputs.Pair<java.lang.Long,BytesRef>>
NRTSuggesterBuilder. fstCompiler
private PairOutputs<java.lang.Long,BytesRef>
NRTSuggesterBuilder. outputs
Methods in org.apache.lucene.search.suggest.document that return BytesRef Modifier and Type Method Description private BytesRef
SuggestField. buildSuggestPayload()
(package private) static BytesRef
NRTSuggester.PayLoadProcessor. make(BytesRef surface, int docID, int payloadSep)
Methods in org.apache.lucene.search.suggest.document that return types with arguments of type BytesRef Modifier and Type Method Description private static java.util.Comparator<PairOutputs.Pair<java.lang.Long,BytesRef>>
NRTSuggester. getComparator()
Methods in org.apache.lucene.search.suggest.document with parameters of type BytesRef Modifier and Type Method Description void
NRTSuggesterBuilder. addEntry(int docID, BytesRef surfaceForm, long weight)
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
NRTSuggester.PayLoadProcessor. make(BytesRef surface, int docID, int payloadSep)
(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
NRTSuggesterBuilder. startTerm(BytesRef analyzed)
Initializes an FST input term to add entries againstvoid
CompletionFieldsConsumer.CompletionTermWriter. write(BytesRef term, TermsEnum termsEnum)
Writes all postings (surface form, weight, document id) forterm
Method parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRef Modifier and Type Method Description int
NRTSuggester.ScoringPathComparator. compare(Util.FSTPath<PairOutputs.Pair<java.lang.Long,BytesRef>> first, Util.FSTPath<PairOutputs.Pair<java.lang.Long,BytesRef>> second)
Constructors in org.apache.lucene.search.suggest.document with parameters of type BytesRef Constructor Description Entry(BytesRef payload, long weight)
Constructor parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRef Constructor Description NRTSuggester(FST<PairOutputs.Pair<java.lang.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 BytesRef Modifier and Type Field Description BytesRef
FSTCompletion.Completion. utf8
UTF-8 bytes of the suggestionMethods in org.apache.lucene.search.suggest.fst that return BytesRef Modifier and Type Method Description BytesRef
ExternalRefSorter.ByteSequenceIterator. next()
Methods in org.apache.lucene.search.suggest.fst that return types with arguments of type BytesRef Modifier and Type Method Description java.util.Comparator<BytesRef>
BytesRefSorter. getComparator()
Comparator used to determine the sort order of entries.java.util.Comparator<BytesRef>
ExternalRefSorter. getComparator()
Methods in org.apache.lucene.search.suggest.fst with parameters of type BytesRef Modifier and Type Method Description void
BytesRefSorter. add(BytesRef utf8)
Adds a single suggestion entry (possibly compound with its bucket).void
ExternalRefSorter. add(BytesRef utf8)
void
FSTCompletionBuilder. add(BytesRef utf8, int bucket)
Appends a single suggestion and its weight to the internal buffers.private java.util.stream.Stream<? extends FSTCompletion.Completion>
FSTCompletion. completionStream(BytesRef output, int bucket, FST.Arc<java.lang.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<java.lang.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, java.util.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 java.lang.Long
WFSTCompletionLookup. lookupPrefix(BytesRef scratch, FST.Arc<java.lang.Long> arc)
private java.util.stream.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 BytesRef Modifier and Type Method Description protected void
WFSTCompletionLookup.WFSTInputIterator. encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, java.util.Set<BytesRef> contexts, long weight)
java.util.List<Lookup.LookupResult>
FSTCompletionLookup. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean higherWeightsFirst, int num)
java.util.List<Lookup.LookupResult>
WFSTCompletionLookup. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)
Constructors in org.apache.lucene.search.suggest.fst with parameters of type BytesRef Constructor Description Completion(BytesRef key, int bucket)
-
Uses of BytesRef in org.apache.lucene.search.suggest.tst
Fields in org.apache.lucene.search.suggest.tst with type parameters of type BytesRef Modifier and Type Field Description private static java.util.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 BytesRef Modifier and Type Method Description java.util.List<Lookup.LookupResult>
TSTLookup. lookup(java.lang.CharSequence key, java.util.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 BytesRef Modifier and Type Field Description (package private) BytesRef[]
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum. matchDescriptions
private BytesRef[]
Passage. matchTerms
(package private) BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE. term
private BytesRef
OffsetsEnum.OfPostings. term
private BytesRef
PhraseHelper.SpanCollectedOffsetsEnum. term
private BytesRef[]
UHComponents. terms
Fields in org.apache.lucene.search.uhighlight with type parameters of type BytesRef Modifier and Type Field Description private java.util.Set<BytesRef>
PhraseHelper. positionInsensitiveTerms
private java.util.HashMap<Query,BytesRef>
OffsetsEnum.OfMatchesIteratorWithSubs. queryToTermMap
private java.util.function.Supplier<BytesRef>
OffsetsEnum.OfMatchesIterator. termSupplier
(package private) java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum>
PhraseHelper.OffsetSpanCollector. termToOffsetsEnums
Methods in org.apache.lucene.search.uhighlight that return BytesRef Modifier and Type Method Description protected static BytesRef[]
UnifiedHighlighter. filterExtractedTerms(java.util.function.Predicate<java.lang.String> fieldMatcher, java.util.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.BytesRef
OffsetsEnum.MultiOffsetsEnum. getTerm()
BytesRef
OffsetsEnum.OfMatchesIterator. getTerm()
BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE. getTerm()
BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs. getTerm()
BytesRef
OffsetsEnum.OfPostings. getTerm()
BytesRef
PhraseHelper.SpanCollectedOffsetsEnum. getTerm()
BytesRef
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum. getTerm()
BytesRef[]
UHComponents. getTerms()
private BytesRef
OffsetsEnum.OfMatchesIteratorWithSubs. queryToTerm(Query query)
Maps a Query fromMatchesIterator.getQuery()
toOffsetsEnum.getTerm()
.Methods in org.apache.lucene.search.uhighlight with parameters of type BytesRef Modifier and Type Method Description void
Passage. addMatch(int startOffset, int endOffset, BytesRef term, int termFreqInDoc)
private static CharArrayMatcher[]
TokenStreamOffsetStrategy. convertTermsToMatchers(BytesRef[] terms, CharArrayMatcher[] matchers)
protected void
FieldOffsetStrategy. createOffsetsEnumsForTerms(BytesRef[] sourceTerms, Terms termsIndex, int doc, java.util.List<OffsetsEnum> results)
TermsEnum
TermVectorFilteredLeafReader.TermsFilteredTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)
Method parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRef Modifier and Type Method Description static CharArrayMatcher
CharArrayMatcher. fromTerms(java.util.List<BytesRef> terms)
Constructors in org.apache.lucene.search.uhighlight with parameters of type BytesRef Constructor Description CachedOE(BytesRef term, int startOffset, int endOffset)
OfPostings(BytesRef term, int freq, PostingsEnum postingsEnum)
OfPostings(BytesRef term, PostingsEnum postingsEnum)
SpanCollectedOffsetsEnum(BytesRef term, int postingsFreq)
UHComponents(java.lang.String field, java.util.function.Predicate<java.lang.String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags)
Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRef Constructor Description OfMatchesIterator(MatchesIterator matchesIterator, java.util.function.Supplier<BytesRef> termSupplier)
-
Uses of BytesRef in org.apache.lucene.util
Fields in org.apache.lucene.util declared as BytesRef Modifier and Type Field Description static 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 BytesRef
StringSorter. pivot
private BytesRef
BytesRefBuilder. ref
protected BytesRef
StringSorter. scratchBytes1
protected BytesRef
StringSorter. scratchBytes2
BytesRef
QueryBuilder.TermAndBoost. term
the termprivate BytesRef
TermAndVector. term
Fields in org.apache.lucene.util with type parameters of type BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>
StringSorter. cmp
private java.util.Comparator<BytesRef>
OfflineSorter. comparator
static java.util.Comparator<BytesRef>
OfflineSorter. DEFAULT_COMPARATOR
Default comparator: sorts in binary (codepoint) orderMethods in org.apache.lucene.util that return BytesRef Modifier and Type Method Description BytesRef
BytesRef. 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
BytesRef
BytesRefArray. get(BytesRefBuilder spare, int index)
Returns the n'th element of thisBytesRefArray
BytesRef
BytesRefBuilder. get()
Return aBytesRef
that points to the internal content of this builder.BytesRef
BytesRefHash. get(int bytesID, BytesRef ref)
Populates and returns aBytesRef
with the bytes for the given bytesID.BytesRef
TermAndVector. getTerm()
static BytesRef
StringHelper. intsRefToBytesRef(IntsRef ints)
BytesRef
BytesRefIterator. next()
Increments the iteration to the nextBytesRef
in the iterator.BytesRef
OfflineSorter.ByteSequencesReader. next()
Reads the next entry into the providedBytesRef
.BytesRef
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 BytesRef Modifier and Type Method Description java.util.Comparator<BytesRef>
OfflineSorter. getComparator()
Returns the comparator in use to sort entriesMethods in org.apache.lucene.util with parameters of type BytesRef Modifier and Type Method Description int
BytesRefHash. add(BytesRef bytes)
Adds a newBytesRef
int
BytesRefBlockPool. addBytesRef(BytesRef bytes)
Add a term returning the start position on the underlyingByteBlockPool
.void
ByteBlockPool. append(BytesRef bytes)
Appends the bytes in the providedBytesRef
at the current position.int
BytesRefArray. append(BytesRef bytes)
Appends a copy of the givenBytesRef
to thisBytesRefArray
.void
BytesRefBuilder. append(BytesRef ref)
Append the provided bytes to this builder.int
FixedLengthBytesRefArray. append(BytesRef bytes)
Appends a copy of the givenBytesRef
to thisBytesRefArray
.int
SortableBytesRefArray. append(BytesRef bytes)
Append a new valueprotected abstract int
BytesRefComparator. byteAt(BytesRef ref, int i)
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 java.lang.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.int
BytesRefComparator. compare(BytesRef o1, BytesRef o2)
int
BytesRefComparator. compare(BytesRef o1, BytesRef o2, int k)
Compare two bytes refs that first k bytes are already guaranteed to be equal.int
BytesRef. compareTo(BytesRef other)
Unsigned byte order comparisonvoid
PagedBytes. copy(BytesRef bytes, BytesRef out)
Copy BytesRef in, setting BytesRef out to the result.void
BytesRefBuilder. copyBytes(BytesRef ref)
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
StringHelper. endsWith(BytesRef ref, BytesRef suffix)
Returnstrue
iff the ref ends with the given suffix.(package private) boolean
BytesRefBlockPool. equals(int start, BytesRef b)
Computes the equality between the BytesRef at the start position with the provided BytesRef.void
PagedBytes.Reader. fill(BytesRef b, long start)
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
PagedBytes.Reader. fillSlice(BytesRef b, long start, int length)
Gets a slice out ofPagedBytes
starting at start with a given length.int
BytesRefHash. find(BytesRef bytes)
Returns the id of the givenBytesRef
.private int
BytesRefHash. findHash(BytesRef bytes)
BytesRef
BytesRefHash. get(int bytesID, BytesRef ref)
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.void
OfflineSorter.ByteSequencesWriter. write(BytesRef ref)
Writes a BytesRef.Method parameters in org.apache.lucene.util with type arguments of type BytesRef Modifier and Type Method Description protected Sorter
StableStringSorter. fallbackSorter(java.util.Comparator<BytesRef> cmp)
protected Sorter
StringSorter. fallbackSorter(java.util.Comparator<BytesRef> cmp)
BytesRefIterator
BytesRefArray. iterator(java.util.Comparator<BytesRef> comp)
Returns aBytesRefIterator
with point in time semantics.BytesRefIterator
FixedLengthBytesRefArray. iterator(java.util.Comparator<BytesRef> comp)
Returns aBytesRefIterator
with point in time semantics.BytesRefIterator
SortableBytesRefArray. iterator(java.util.Comparator<BytesRef> comp)
Sort all values by the provided comparator and return an iterator over the sorted valuesBytesRefArray.SortState
BytesRefArray. sort(java.util.Comparator<BytesRef> comp, boolean stable)
Returns aBytesRefArray.SortState
representing the order of elements in this array.private int[]
FixedLengthBytesRefArray. sort(java.util.Comparator<BytesRef> comp)
Constructors in org.apache.lucene.util with parameters of type BytesRef Constructor Description FileAndTop(int fd, BytesRef firstLine)
TermAndBoost(BytesRef term, float boost)
Creates a new TermAndBoostTermAndVector(BytesRef term, float[] vector)
Constructor parameters in org.apache.lucene.util with type arguments of type BytesRef Constructor Description OfflineSorter(Directory dir, java.lang.String tempFileNamePrefix, java.util.Comparator<BytesRef> comparator)
Defaults constructor with a custom comparator.OfflineSorter(Directory dir, java.lang.String tempFileNamePrefix, java.util.Comparator<BytesRef> comparator, OfflineSorter.BufferSize ramBufferSize, int maxTempfiles, int valueLength, java.util.concurrent.ExecutorService exec, int maxPartitionsInRAM)
All-details constructor.StableStringSorter(java.util.Comparator<BytesRef> cmp)
StringSorter(java.util.Comparator<BytesRef> cmp)
-
Uses of BytesRef in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as BytesRef Modifier and Type Field Description BytesRef
CompiledAutomaton. commonSuffixRef
Shared common suffix accepted by the automaton.BytesRef
CompiledAutomaton. term
ForCompiledAutomaton.AUTOMATON_TYPE.SINGLE
this is the singleton term.Methods in org.apache.lucene.util.automaton that return BytesRef Modifier and Type Method Description private BytesRef
CompiledAutomaton. addTail(int state, BytesRefBuilder term, int idx, int leadLabel)
BytesRef
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 BytesRef Modifier and Type Method Description private void
DaciukMihovAutomatonBuilder. add(BytesRef current, boolean asBinary)
Deprecated.BytesRef
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
DaciukMihovAutomatonBuilder. setPrevious(BytesRef current)
Deprecated.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 BytesRef Modifier and Type Method Description static Automaton
DaciukMihovAutomatonBuilder. build(java.lang.Iterable<BytesRef> input)
Deprecated.Please seeAutomata.makeStringUnion(Iterable)
instead(package private) static Automaton
DaciukMihovAutomatonBuilder. build(java.lang.Iterable<BytesRef> input, boolean asBinary)
Deprecated.Build a minimal, deterministic automaton from a sorted list ofBytesRef
representing strings in UTF-8.static Automaton
Automata. makeBinaryStringUnion(java.lang.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(java.lang.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 BytesRef Modifier and Type Field Description private BytesRef
HeapPointWriter.HeapPointValue. packedValue
(package private) BytesRef
OfflinePointReader.OfflinePointValue. packedValue
private BytesRef
HeapPointWriter.HeapPointValue. packedValueDocID
(package private) BytesRef
OfflinePointReader.OfflinePointValue. packedValueDocID
(package private) BytesRef
BKDWriter. scratchBytesRef1
(package private) BytesRef
BKDWriter. scratchBytesRef2
Methods in org.apache.lucene.util.bkd that return BytesRef Modifier and Type Method Description private static BytesRef[]
BKDWriter. computeMinMax(int count, java.util.function.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.BytesRef
BKDWriter.BKDTreeLeafNodes. getSplitValue(int index)
split value between two leaves.BytesRef
HeapPointWriter.HeapPointValue. packedValue()
BytesRef
OfflinePointReader.OfflinePointValue. packedValue()
BytesRef
PointValue. packedValue()
Returns the packed values for the dimensionsBytesRef
HeapPointWriter.HeapPointValue. packedValueDocIDBytes()
BytesRef
OfflinePointReader.OfflinePointValue. packedValueDocIDBytes()
BytesRef
PointValue. packedValueDocIDBytes()
Returns the byte representation of the packed value together with the docIDMethods in org.apache.lucene.util.bkd with parameters of type BytesRef Modifier and Type Method Description private 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 BytesRef Modifier and Type Method Description private static BytesRef[]
BKDWriter. computeMinMax(int count, java.util.function.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(java.util.function.IntFunction<BytesRef> packedValues, int start, int end, int byteOffset)
private static boolean
BKDWriter. valuesInOrderAndBounds(BKDConfig config, int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, java.util.function.IntFunction<BytesRef> values, int[] docs, int docsOffset)
private void
BKDWriter. writeActualBounds(DataOutput out, int[] commonPrefixLengths, int count, java.util.function.IntFunction<BytesRef> packedValues)
private void
BKDWriter. writeHighCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int compressedByteOffset)
private void
BKDWriter. writeLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int leafCardinality)
private void
BKDWriter. writeLeafBlockPackedValuesRange(DataOutput out, int[] commonPrefixLengths, int start, int end, java.util.function.IntFunction<BytesRef> packedValues)
private void
BKDWriter. writeLowCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, java.util.function.IntFunction<BytesRef> packedValues)
-
Uses of BytesRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as BytesRef Modifier and Type Field Description private BytesRef
BytesRefFSTEnum. current
BytesRef
BytesRefFSTEnum.InputOutput. input
private static BytesRef
ByteSequenceOutputs. NO_OUTPUT
private BytesRef
BytesRefFSTEnum. target
Methods in org.apache.lucene.util.fst that return BytesRef Modifier and Type Method Description BytesRef
ByteSequenceOutputs. add(BytesRef prefix, BytesRef output)
BytesRef
ByteSequenceOutputs. common(BytesRef output1, BytesRef output2)
BytesRef
ByteSequenceOutputs. getNoOutput()
BytesRef
ByteSequenceOutputs. read(DataInput in)
BytesRef
ByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)
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 BytesRef Modifier and Type Method Description BytesRef
ByteSequenceOutputs. add(BytesRef prefix, BytesRef output)
BytesRef
ByteSequenceOutputs. common(BytesRef output1, BytesRef output2)
static <T> T
Util. get(FST<T> fst, BytesRef input)
Looks up the output for this input, or null if the input is not acceptedjava.lang.String
ByteSequenceOutputs. outputToString(BytesRef output)
long
ByteSequenceOutputs. ramBytesUsed(BytesRef output)
BytesRefFSTEnum.InputOutput<T>
BytesRefFSTEnum. seekCeil(BytesRef target)
Seeks to smallest term that's >= target.BytesRefFSTEnum.InputOutput<T>
BytesRefFSTEnum. seekExact(BytesRef target)
Seeks to exactly this term, returning null if the term doesn't exist.BytesRefFSTEnum.InputOutput<T>
BytesRefFSTEnum. seekFloor(BytesRef target)
Seeks to biggest term that's <= target.BytesRef
ByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)
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)
-