Uses of Class
org.apache.lucene.util.BytesRef
-
Packages that use BytesRef Package Description org.apache.lucene.analysis Text analysis.org.apache.lucene.analysis.hunspell Stemming TokenFilter using a Java implementation of the Hunspell stemming algorithm.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.tokenattributes General-purpose attributes for text analysis.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.blocktree BlockTree terms dictionary.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 StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.org.apache.lucene.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.codecs.lucene50 Components from the Lucene 5.0 index format Seeorg.apache.lucene.codecs.lucene80for an overview of the index format.org.apache.lucene.codecs.lucene70 Components from the Lucene 7.0 index format.org.apache.lucene.codecs.lucene80 Components from the Lucene 8.0 index format Seeorg.apache.lucene.codecs.lucene84for an overview of the index format.org.apache.lucene.codecs.lucene84 Components from the Lucene 8.4 index format.org.apache.lucene.codecs.lucene87 Lucene 8.7 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 CustomAttributeImplfor indexing collation keys as index terms.org.apache.lucene.document The logical representation of aDocumentfor 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 index tools.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.queryparser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.similarities This package contains the various ranking models that can be used in Lucene.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.jaspell JaSpell-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 BytesRefTokenStreamToAutomaton. 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.BytesRefAnalyzer. 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 BytesRefTokenStreamToAutomaton. 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.hunspell
Fields in org.apache.lucene.analysis.hunspell declared as BytesRef Modifier and Type Field Description private BytesRefStemmer. scratchMethods in org.apache.lucene.analysis.hunspell with parameters of type BytesRef Modifier and Type Method Description (package private) static char[]Dictionary. decodeFlags(BytesRef b) -
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. fstprivate FST.Arc<BytesRef>StemmerOverrideFilter. scratchArcMethods in org.apache.lucene.analysis.miscellaneous that return BytesRef Modifier and Type Method Description protected BytesRefConcatenateGraphFilter.EscapingTokenStreamToAutomaton. changeToken(BytesRef in)BytesRefStemmerOverrideFilter.StemmerOverrideMap. get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader)Returns the value mapped to the given key ornullif the key is not in the FST dictionary.BytesRefConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl. getBytesRef()Methods in org.apache.lucene.analysis.miscellaneous with parameters of type BytesRef Modifier and Type Method Description protected BytesRefConcatenateGraphFilter.EscapingTokenStreamToAutomaton. changeToken(BytesRef in)Method parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRef Modifier and Type Method Description BytesRefStemmerOverrideFilter.StemmerOverrideMap. get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader)Returns the value mapped to the given key ornullif 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 BytesRefNumericPayloadTokenFilter. thePayloadMethods in org.apache.lucene.analysis.payloads that return BytesRef Modifier and Type Method Description BytesRefAbstractEncoder. encode(char[] buffer)BytesRefFloatEncoder. encode(char[] buffer, int offset, int length)BytesRefIdentityEncoder. encode(char[] buffer, int offset, int length)BytesRefIntegerEncoder. encode(char[] buffer, int offset, int length)BytesRefPayloadEncoder. encode(char[] buffer)BytesRefPayloadEncoder. 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 BytesRefSynonymFilter. scratchBytesDeprecated.private BytesRefSynonymGraphFilter. scratchBytesFields in org.apache.lucene.analysis.synonym with type parameters of type BytesRef Modifier and Type Field Description private FST<BytesRef>SynonymFilter. fstDeprecated.private FST<BytesRef>SynonymGraphFilter. fstFST<BytesRef>SynonymMap. fstmap<input word, list<ord>>private FST.Arc<BytesRef>SynonymFilter. scratchArcDeprecated.private FST.Arc<BytesRef>SynonymGraphFilter. scratchArcMethods in org.apache.lucene.analysis.synonym with parameters of type BytesRef Modifier and Type Method Description private voidSynonymFilter. addOutput(BytesRef bytes, int matchInputLength, int matchEndOffset)Deprecated.private voidSynonymGraphFilter. 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.tokenattributes
Fields in org.apache.lucene.analysis.tokenattributes declared as BytesRef Modifier and Type Field Description private BytesRefBytesTermAttributeImpl. bytesprivate BytesRefPayloadAttributeImpl. payloadMethods in org.apache.lucene.analysis.tokenattributes that return BytesRef Modifier and Type Method Description BytesRefBytesTermAttributeImpl. getBytesRef()BytesRefCharTermAttributeImpl. getBytesRef()BytesRefTermToBytesRefAttribute. getBytesRef()Retrieve this attribute's BytesRef.BytesRefPayloadAttribute. getPayload()Returns this Token's payload.BytesRefPayloadAttributeImpl. getPayload()Methods in org.apache.lucene.analysis.tokenattributes with parameters of type BytesRef Modifier and Type Method Description voidBytesTermAttribute. setBytesRef(BytesRef bytes)Sets theBytesRefof the termvoidBytesTermAttributeImpl. setBytesRef(BytesRef bytes)voidPayloadAttribute. setPayload(BytesRef payload)Sets this Token's payload.voidPayloadAttributeImpl. 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.classification
Fields in org.apache.lucene.classification with type parameters of type BytesRef Modifier and Type Field Description private java.util.ArrayList<BytesRef>CachingNaiveBayesClassifier. cclassesprivate java.util.Map<BytesRef,java.lang.Double>CachingNaiveBayesClassifier. classTermFreqprivate java.util.Map<java.lang.String,java.util.Map<BytesRef,java.lang.Integer>>CachingNaiveBayesClassifier. termCClassHitCacheMethods 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)protected 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 (package private) BytesRefStoredFieldsWriter.MergeVisitor. binaryValueprivate BytesRefDocValuesConsumer.MergedTermsEnum. termMethods in org.apache.lucene.codecs that return BytesRef Modifier and Type Method Description BytesRefStoredFieldsWriter.MergeVisitor. binaryValue()BytesRefDocValuesConsumer.MergedTermsEnum. next()BytesRefDocValuesConsumer.MergedTermsEnum. term()Methods in org.apache.lucene.codecs with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatusDocValuesConsumer.BitsFilteredTermsEnum. accept(BytesRef term)abstract voidPushPostingsWriterBase. addPosition(int position, BytesRef payload, int startOffset, int endOffset)Add a new position and payload, and start/end offset.abstract voidTermVectorsWriter. addPosition(int position, int startOffset, int endOffset, BytesRef payload)Adds a term position and offsetsabstract voidMutablePointValues. getValue(int i, BytesRef packedValue)SetpackedValuewith a reference to the packed bytes of the i-th value.TermsEnum.SeekStatusDocValuesConsumer.MergedTermsEnum. seekCeil(BytesRef text)booleanDocValuesConsumer.MergedTermsEnum. seekExact(BytesRef text)voidDocValuesConsumer.MergedTermsEnum. seekExact(BytesRef term, TermState state)abstract voidTermVectorsWriter. startTerm(BytesRef term, int freq)Adds a term and its term frequencyfreq.abstract BlockTermStatePostingsWriterBase. writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms)Write all postings for one term; use the providedTermsEnumto pull aPostingsEnum.BlockTermStatePushPostingsWriterBase. 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 BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum. nextIndexTerm(package private) BytesRefBlockTermsReader.FieldAndTerm. termprivate BytesRefFixedGapTermsIndexReader.IndexEnum. termMethods in org.apache.lucene.codecs.blockterms that return BytesRef Modifier and Type Method Description private BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum. _next()BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum. next()BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum. term()BytesRefFixedGapTermsIndexReader.IndexEnum. term()abstract BytesRefTermsIndexReaderBase.FieldIndexEnum. term()BytesRefVariableGapTermsIndexReader.IndexEnum. term()Methods in org.apache.lucene.codecs.blockterms with parameters of type BytesRef Modifier and Type Method Description voidFixedGapTermsIndexWriter.SimpleFieldWriter. add(BytesRef text, TermStats stats, long termsFilePointer)abstract voidTermsIndexWriterBase.FieldWriter. add(BytesRef text, TermStats stats, long termsFilePointer)voidVariableGapTermsIndexWriter.FSTFieldWriter. add(BytesRef text, TermStats stats, long termsFilePointer)booleanFixedGapTermsIndexWriter.SimpleFieldWriter. checkIndexTerm(BytesRef text, TermStats stats)abstract booleanTermsIndexWriterBase.FieldWriter. checkIndexTerm(BytesRef text, TermStats stats)booleanVariableGapTermsIndexWriter.FSTFieldWriter. checkIndexTerm(BytesRef text, TermStats stats)protected intFixedGapTermsIndexWriter. 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 intVariableGapTermsIndexWriter. 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.booleanVariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector. isIndexTerm(BytesRef term, TermStats stats)booleanVariableGapTermsIndexWriter.EveryNTermSelector. isIndexTerm(BytesRef term, TermStats stats)abstract booleanVariableGapTermsIndexWriter.IndexTermSelector. isIndexTerm(BytesRef term, TermStats stats)Called sequentially on every term being written, returning true if this term should be indexedlongFixedGapTermsIndexReader.IndexEnum. seek(BytesRef target)abstract longTermsIndexReaderBase.FieldIndexEnum. seek(BytesRef term)Seeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that termlongVariableGapTermsIndexReader.IndexEnum. seek(BytesRef target)TermsEnum.SeekStatusBlockTermsReader.FieldReader.SegmentTermsEnum. seekCeil(BytesRef target)voidBlockTermsReader.FieldReader.SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)private intBlockTermsWriter.TermsWriter. sharedPrefix(BytesRef term1, BytesRef term2)(package private) voidBlockTermsWriter.TermsWriter. write(BytesRef text, TermsEnum termsEnum, NormsProducer norms) -
Uses of BytesRef in org.apache.lucene.codecs.blocktree
Fields in org.apache.lucene.codecs.blocktree declared as BytesRef Modifier and Type Field Description (package private) BytesRefIntersectTermsEnum. commonSuffix(package private) static BytesRefBlockTreeTermsWriter. EMPTY_BYTES_REF(package private) BytesRefFieldReader. maxTerm(package private) BytesRefFieldReader. minTerm(package private) static BytesRefBlockTreeTermsReader. NO_OUTPUT(package private) BytesRefIntersectTermsEnumFrame. outputPrefixBytesRefBlockTreeTermsWriter.PendingBlock. prefix(package private) BytesRefFieldReader. rootCodeprivate BytesRefIntersectTermsEnum. savedStartTermprivate BytesRefIntersectTermsEnum. termFields in org.apache.lucene.codecs.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>BlockTreeTermsReader. FST_OUTPUTS(package private) static Outputs<BytesRef>IntersectTermsEnum. fstOutputsFST<BytesRef>BlockTreeTermsWriter.PendingBlock. index(package private) FST<BytesRef>FieldReader. indexjava.util.List<FST<BytesRef>>BlockTreeTermsWriter.PendingBlock. subIndicesMethods in org.apache.lucene.codecs.blocktree that return BytesRef Modifier and Type Method Description private BytesRefIntersectTermsEnum. _next()BytesRefFieldReader. getMax()BytesRefFieldReader. getMin()BytesRefIntersectTermsEnum. next()BytesRefSegmentTermsEnum. next()private static BytesRefBlockTreeTermsReader. readBytesRef(IndexInput in)BytesRefIntersectTermsEnum. term()BytesRefSegmentTermsEnum. term()Methods in org.apache.lucene.codecs.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.blocktree with parameters of type BytesRef Modifier and Type Method Description (package private) java.lang.StringBlockTreeTermsReader. brToString(BytesRef b)(package private) static java.lang.StringBlockTreeTermsWriter. brToString(BytesRef b)(package private) static java.lang.StringIntersectTermsEnum. brToString(BytesRef b)TermsEnumFieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)(package private) voidIntersectTermsEnumFrame. load(BytesRef frameIndexData)private booleanSegmentTermsEnumFrame. prefixMatches(BytesRef target)(package private) SegmentTermsEnumFrameSegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)private voidBlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)Pushes the new term to the top of the stack, and writes new blocks.voidSegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)TermsEnum.SeekStatusSegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusSegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusSegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusIntersectTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusSegmentTermsEnum. seekCeil(BytesRef target)booleanIntersectTermsEnum. seekExact(BytesRef text)booleanSegmentTermsEnum. seekExact(BytesRef target)voidSegmentTermsEnum. seekExact(BytesRef target, TermState otherState)private voidIntersectTermsEnum. seekToStartTerm(BytesRef target)voidSegmentTermsEnumFrame. setFloorData(ByteArrayDataInput in, BytesRef source)private booleanIntersectTermsEnum. setSavedStartTerm(BytesRef startTerm)(package private) voidStats. term(BytesRef term)voidBlockTreeTermsWriter.TermsWriter. write(BytesRef text, TermsEnum termsEnum, NormsProducer norms)Writes one term's worth of postings.private static voidBlockTreeTermsWriter. writeBytesRef(DataOutput out, BytesRef bytes)Method parameters in org.apache.lucene.codecs.blocktree with type arguments of type BytesRef Modifier and Type Method Description private voidBlockTreeTermsWriter.PendingBlock. append(Builder<BytesRef> builder, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef)private voidBlockTreeTermsWriter.PendingBlock. append(Builder<BytesRef> builder, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef)(package private) SegmentTermsEnumFrameSegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, long fp, int length)(package private) SegmentTermsEnumFrameSegmentTermsEnum. pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length)Constructors in org.apache.lucene.codecs.blocktree with parameters of type BytesRef Constructor Description FieldReader(BlockTreeTermsReader 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.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.blocktreeords
Fields in org.apache.lucene.codecs.blocktreeords declared as BytesRef Modifier and Type Field Description BytesRefFSTOrdsOutputs.Output. bytesBytesRefOrdsBlockTreeTermsWriter.FieldMetaData. maxTerm(package private) BytesRefOrdsFieldReader. maxTermBytesRefOrdsBlockTreeTermsWriter.FieldMetaData. minTerm(package private) BytesRefOrdsFieldReader. minTermprivate static BytesRefFSTOrdsOutputs. NO_BYTESBytesRefOrdsBlockTreeTermsWriter.PendingBlock. prefixprivate BytesRefOrdsIntersectTermsEnum. savedStartTermprivate BytesRefOrdsIntersectTermsEnum. termMethods in org.apache.lucene.codecs.blocktreeords that return BytesRef Modifier and Type Method Description BytesRefOrdsFieldReader. getMax()BytesRefOrdsFieldReader. getMin()BytesRefOrdsIntersectTermsEnum. next()BytesRefOrdsSegmentTermsEnum. next()private static BytesRefOrdsBlockTreeTermsReader. readBytesRef(IndexInput in)BytesRefOrdsIntersectTermsEnum. term()BytesRefOrdsSegmentTermsEnum. term()Methods in org.apache.lucene.codecs.blocktreeords with parameters of type BytesRef Modifier and Type Method Description (package private) java.lang.StringOrdsBlockTreeTermsReader. brToString(BytesRef b)(package private) static java.lang.StringOrdsBlockTreeTermsWriter. brToString(BytesRef b)(package private) static java.lang.StringOrdsSegmentTermsEnum. brToString(BytesRef b)TermsEnumOrdsFieldReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)FSTOrdsOutputs.OutputFSTOrdsOutputs. newOutput(BytesRef bytes, long startOrd, long endOrd)private booleanOrdsSegmentTermsEnumFrame. prefixMatches(BytesRef target)private voidOrdsBlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)Pushes the new term to the top of the stack, and writes new blocks.voidOrdsSegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)TermsEnum.SeekStatusOrdsSegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusOrdsSegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusOrdsSegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusOrdsIntersectTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusOrdsSegmentTermsEnum. seekCeil(BytesRef target)booleanOrdsIntersectTermsEnum. seekExact(BytesRef text)booleanOrdsSegmentTermsEnum. seekExact(BytesRef target)voidOrdsSegmentTermsEnum. seekExact(BytesRef target, TermState otherState)private voidOrdsIntersectTermsEnum. seekToStartTerm(BytesRef target)voidOrdsSegmentTermsEnumFrame. setFloorData(ByteArrayDataInput in, BytesRef source)private booleanOrdsIntersectTermsEnum. setSavedStartTerm(BytesRef startTerm)voidOrdsBlockTreeTermsWriter.TermsWriter. write(BytesRef text, TermsEnum termsEnum, NormsProducer norms)Writes one term's worth of postings.private static voidOrdsBlockTreeTermsWriter. 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 BytesRefBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. getMax()BytesRefBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. getMin()BytesRefBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. next()BytesRefBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. term()Methods in org.apache.lucene.codecs.bloom with parameters of type BytesRef Modifier and Type Method Description voidFuzzySet. addValue(BytesRef value)Records a value in the set.FuzzySet.ContainsResultFuzzySet. contains(BytesRef value)The main method required for a Bloom filter which, given a value determines set membership.abstract intHashFunction. hash(BytesRef bytes)Hashes the contents of the referenced bytesintMurmurHash2. hash(BytesRef br)TermsEnumBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnum.SeekStatusBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. seekCeil(BytesRef text)booleanBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum. seekExact(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.compressing
Fields in org.apache.lucene.codecs.compressing declared as BytesRef Modifier and Type Field Description private BytesRefCompressingStoredFieldsReader.BlockState. bytesprivate BytesRefCompressingTermVectorsWriter. lastTermprivate BytesRefCompressingTermVectorsReader.TVPostingsEnum. payloadprivate BytesRefCompressingTermVectorsReader.TVFields. payloadBytesprivate BytesRefCompressingTermVectorsReader.TVTerms. payloadBytesprivate BytesRefCompressingTermVectorsReader.TVTermsEnum. payloadsprivate BytesRefCompressingStoredFieldsReader.BlockState. spareprivate BytesRefCompressingTermVectorsReader.TVFields. suffixBytesprivate BytesRefCompressingTermVectorsReader.TVTermsEnum. termprivate BytesRefCompressingTermVectorsReader.TVTerms. termBytesMethods in org.apache.lucene.codecs.compressing that return BytesRef Modifier and Type Method Description BytesRefCompressingTermVectorsReader.TVPostingsEnum. getPayload()BytesRefCompressingTermVectorsReader.TVTermsEnum. next()BytesRefCompressingTermVectorsReader.TVTermsEnum. term()Methods in org.apache.lucene.codecs.compressing with parameters of type BytesRef Modifier and Type Method Description voidCompressingTermVectorsWriter. addPosition(int position, int startOffset, int endOffset, BytesRef payload)voidCompressionMode.DeflateDecompressor. decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)abstract voidDecompressor. decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)Decompress bytes that were stored between offsetsoffsetandoffset+lengthin the original stream from the compressed streamintobytes.voidCompressingTermVectorsReader.TVPostingsEnum. reset(int freq, int positionIndex, int[] positions, int[] startOffsets, int[] lengths, BytesRef payloads, int[] payloadIndex)(package private) voidCompressingTermVectorsReader.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.SeekStatusCompressingTermVectorsReader.TVTermsEnum. seekCeil(BytesRef text)voidCompressingTermVectorsWriter. startTerm(BytesRef term, int freq)Constructors in org.apache.lucene.codecs.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.idversion
Fields in org.apache.lucene.codecs.idversion declared as BytesRef Modifier and Type Field Description BytesRefVersionBlockTreeTermsWriter.FieldMetaData. maxTerm(package private) BytesRefVersionFieldReader. maxTermBytesRefVersionBlockTreeTermsWriter.FieldMetaData. minTerm(package private) BytesRefVersionFieldReader. minTermprivate BytesRefSinglePostingsEnum. payloadBytesRefVersionBlockTreeTermsWriter.PendingBlock. prefixFields in org.apache.lucene.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_OUTPUTSFST<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_OUTPUTPairOutputs.Pair<BytesRef,java.lang.Long>VersionBlockTreeTermsWriter.FieldMetaData. rootCode(package private) PairOutputs.Pair<BytesRef,java.lang.Long>VersionFieldReader. rootCodejava.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>>VersionBlockTreeTermsWriter.PendingBlock. subIndicesMethods in org.apache.lucene.codecs.idversion that return BytesRef Modifier and Type Method Description BytesRefVersionFieldReader. getMax()BytesRefVersionFieldReader. getMin()BytesRefSingleDocsEnum. getPayload()BytesRefSinglePostingsEnum. getPayload()BytesRefIDVersionSegmentTermsEnum. next()private static BytesRefVersionBlockTreeTermsReader. readBytesRef(IndexInput in)BytesRefIDVersionSegmentTermsEnum. term()Methods in org.apache.lucene.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.codecs.idversion with parameters of type BytesRef Modifier and Type Method Description voidIDVersionPostingsWriter. addPosition(int position, BytesRef payload, int startOffset, int endOffset)(package private) static java.lang.StringIDVersionSegmentTermsEnum. brToString(BytesRef b)(package private) java.lang.StringVersionBlockTreeTermsReader. brToString(BytesRef b)(package private) static java.lang.StringVersionBlockTreeTermsWriter. brToString(BytesRef b)static longIDVersionPostingsFormat. bytesToLong(BytesRef bytes)static voidIDVersionPostingsFormat. longToBytes(long v, BytesRef bytes)private booleanIDVersionSegmentTermsEnumFrame. prefixMatches(BytesRef target)private voidVersionBlockTreeTermsWriter.TermsWriter. pushTerm(BytesRef text)Pushes the new term to the top of the stack, and writes new blocks.voidIDVersionSegmentTermsEnumFrame. scanToFloorFrame(BytesRef target)TermsEnum.SeekStatusIDVersionSegmentTermsEnumFrame. scanToTerm(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusIDVersionSegmentTermsEnumFrame. scanToTermLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusIDVersionSegmentTermsEnumFrame. scanToTermNonLeaf(BytesRef target, boolean exactOnly)TermsEnum.SeekStatusIDVersionSegmentTermsEnum. seekCeil(BytesRef target)booleanIDVersionSegmentTermsEnum. seekExact(BytesRef target)booleanIDVersionSegmentTermsEnum. 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.voidIDVersionSegmentTermsEnum. seekExact(BytesRef target, TermState otherState)voidIDVersionSegmentTermsEnumFrame. setFloorData(ByteArrayDataInput in, BytesRef source)voidVersionBlockTreeTermsWriter.TermsWriter. write(BytesRef text, TermsEnum termsEnum, NormsProducer norms)Writes one term's worth of postings.private static voidVersionBlockTreeTermsWriter. writeBytesRef(IndexOutput out, BytesRef bytes)Method parameters in org.apache.lucene.codecs.idversion with type arguments of type BytesRef Modifier and Type Method Description private voidVersionBlockTreeTermsWriter.PendingBlock. append(Builder<PairOutputs.Pair<BytesRef,java.lang.Long>> builder, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef)private voidVersionBlockTreeTermsWriter.PendingBlock. append(Builder<PairOutputs.Pair<BytesRef,java.lang.Long>> builder, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef)(package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, long fp, int length)(package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, PairOutputs.Pair<BytesRef,java.lang.Long> frameData, int length)(package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum. pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc, PairOutputs.Pair<BytesRef,java.lang.Long> frameData, int length)Constructors in org.apache.lucene.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.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.codecs.lucene50
Fields in org.apache.lucene.codecs.lucene50 declared as BytesRef Modifier and Type Field Description (package private) BytesRefLucene50PostingsReader.BlockImpactsEverythingEnum. payload(package private) BytesRefLucene50PostingsReader.EverythingEnum. payloadMethods in org.apache.lucene.codecs.lucene50 that return BytesRef Modifier and Type Method Description BytesRefLucene50PostingsReader.BlockDocsEnum. getPayload()BytesRefLucene50PostingsReader.BlockImpactsEverythingEnum. getPayload()BytesRefLucene50PostingsReader.BlockImpactsPostingsEnum. getPayload()BytesRefLucene50PostingsReader.EverythingEnum. getPayload() -
Uses of BytesRef in org.apache.lucene.codecs.lucene70
Fields in org.apache.lucene.codecs.lucene70 declared as BytesRef Modifier and Type Field Description (package private) BytesRefLucene70DocValuesProducer.TermsDict. termMethods in org.apache.lucene.codecs.lucene70 that return BytesRef Modifier and Type Method Description private BytesRefLucene70DocValuesProducer.TermsDict. getFirstTermFromBlock(long block)private BytesRefLucene70DocValuesProducer.TermsDict. getTermFromIndex(long index)BytesRefLucene70DocValuesProducer.BaseSortedDocValues. lookupOrd(int ord)BytesRefLucene70DocValuesProducer.BaseSortedSetDocValues. lookupOrd(long ord)BytesRefLucene70DocValuesProducer.TermsDict. next()BytesRefLucene70DocValuesProducer.TermsDict. term()Methods in org.apache.lucene.codecs.lucene70 with parameters of type BytesRef Modifier and Type Method Description intLucene70DocValuesProducer.BaseSortedDocValues. lookupTerm(BytesRef key)longLucene70DocValuesProducer.BaseSortedSetDocValues. lookupTerm(BytesRef key)private longLucene70DocValuesProducer.TermsDict. seekBlock(BytesRef text)TermsEnum.SeekStatusLucene70DocValuesProducer.TermsDict. seekCeil(BytesRef text)private longLucene70DocValuesProducer.TermsDict. seekTermsIndex(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.lucene80
Fields in org.apache.lucene.codecs.lucene80 declared as BytesRef Modifier and Type Field Description (package private) BytesRefLucene80DocValuesProducer.TermsDict. termprivate BytesRefLucene80DocValuesProducer.BinaryDecoder. uncompressedBytesRefMethods in org.apache.lucene.codecs.lucene80 that return BytesRef Modifier and Type Method Description (package private) BytesRefLucene80DocValuesProducer.BinaryDecoder. decode(int docNumber)private BytesRefLucene80DocValuesProducer.TermsDict. getFirstTermFromBlock(long block)private BytesRefLucene80DocValuesProducer.TermsDict. getTermFromIndex(long index)BytesRefLucene80DocValuesProducer.BaseSortedDocValues. lookupOrd(int ord)BytesRefLucene80DocValuesProducer.BaseSortedSetDocValues. lookupOrd(long ord)BytesRefLucene80DocValuesProducer.TermsDict. next()BytesRefLucene80DocValuesProducer.TermsDict. term()Methods in org.apache.lucene.codecs.lucene80 with parameters of type BytesRef Modifier and Type Method Description (package private) voidLucene80DocValuesConsumer.CompressedBinaryBlockWriter. addDoc(int doc, BytesRef v)intLucene80DocValuesProducer.BaseSortedDocValues. lookupTerm(BytesRef key)longLucene80DocValuesProducer.BaseSortedSetDocValues. lookupTerm(BytesRef key)private longLucene80DocValuesProducer.TermsDict. seekBlock(BytesRef text)TermsEnum.SeekStatusLucene80DocValuesProducer.TermsDict. seekCeil(BytesRef text)private longLucene80DocValuesProducer.TermsDict. seekTermsIndex(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.lucene84
Fields in org.apache.lucene.codecs.lucene84 declared as BytesRef Modifier and Type Field Description (package private) BytesRefLucene84PostingsReader.BlockImpactsEverythingEnum. payload(package private) BytesRefLucene84PostingsReader.EverythingEnum. payloadMethods in org.apache.lucene.codecs.lucene84 that return BytesRef Modifier and Type Method Description BytesRefLucene84PostingsReader.BlockDocsEnum. getPayload()BytesRefLucene84PostingsReader.BlockImpactsDocsEnum. getPayload()BytesRefLucene84PostingsReader.BlockImpactsEverythingEnum. getPayload()BytesRefLucene84PostingsReader.BlockImpactsPostingsEnum. getPayload()BytesRefLucene84PostingsReader.EverythingEnum. getPayload()Methods in org.apache.lucene.codecs.lucene84 with parameters of type BytesRef Modifier and Type Method Description voidLucene84PostingsWriter. addPosition(int position, BytesRef payload, int startOffset, int endOffset) -
Uses of BytesRef in org.apache.lucene.codecs.lucene87
Methods in org.apache.lucene.codecs.lucene87 with parameters of type BytesRef Modifier and Type Method Description voidDeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor. decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)voidLZ4WithPresetDictCompressionMode.LZ4WithPresetDictDecompressor. decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)private voidDeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor. doDecompress(DataInput in, java.util.zip.Inflater decompressor, BytesRef bytes) -
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 BytesRefLegacySortedDocValues. emptyDeprecated.private BytesRefDirectPostingsFormat.HighFreqPostingsEnum. payloadprivate BytesRefDirectPostingsFormat.LowFreqPostingsEnum. payloadprivate BytesRefDirectPostingsFormat.DirectField.DirectIntersectTermsEnum. scratchprivate BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum. scratch(package private) BytesRefFSTTermsReader.TermsReader.SegmentTermsEnum. termMethods in org.apache.lucene.codecs.memory that return BytesRef Modifier and Type Method Description BytesRefLegacyBinaryDocValuesWrapper. binaryValue()Deprecated.private BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum. doSeekCeil(BytesRef target)abstract BytesRefLegacyBinaryDocValues. get(int docID)Deprecated.Lookup the value for document.BytesRefLegacySortedDocValues. get(int docID)Deprecated.BytesRefDirectPostingsFormat.HighFreqDocsEnum. getPayload()BytesRefDirectPostingsFormat.HighFreqPostingsEnum. getPayload()BytesRefDirectPostingsFormat.LowFreqDocsEnum. getPayload()BytesRefDirectPostingsFormat.LowFreqDocsEnumNoPos. getPayload()BytesRefDirectPostingsFormat.LowFreqDocsEnumNoTF. getPayload()BytesRefDirectPostingsFormat.LowFreqPostingsEnum. getPayload()abstract BytesRefLegacySortedDocValues. lookupOrd(int ord)Deprecated.Retrieves the value for the specified ordinal.BytesRefLegacySortedDocValuesWrapper. lookupOrd(int ord)Deprecated.abstract BytesRefLegacySortedSetDocValues. lookupOrd(long ord)Deprecated.Retrieves the value for the specified ordinal.BytesRefLegacySortedSetDocValuesWrapper. lookupOrd(long ord)Deprecated.BytesRefDirectPostingsFormat.DirectField.DirectIntersectTermsEnum. next()BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum. next()BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum. next()BytesRefFSTTermsReader.TermsReader.SegmentTermsEnum. next()private BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum. setTerm()BytesRefDirectPostingsFormat.DirectField.DirectIntersectTermsEnum. term()BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum. term()BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum. term()BytesRefFSTTermsReader.TermsReader.SegmentTermsEnum. term()Methods in org.apache.lucene.codecs.memory that return types with arguments of type BytesRef Modifier and Type Method Description static java.lang.Iterable<BytesRef>LegacyDocValuesIterables. binaryIterable(FieldInfo field, DocValuesProducer valuesProducer, int maxDoc)Deprecated.ConsumeBinaryDocValuesinstead.static java.lang.Iterable<BytesRef>LegacyDocValuesIterables. valuesIterable(SortedDocValues values)Deprecated.ConsumeSortedDocValuesinstead.static java.lang.Iterable<BytesRef>LegacyDocValuesIterables. valuesIterable(SortedSetDocValues values)Deprecated.ConsumeSortedSetDocValuesinstead.Methods in org.apache.lucene.codecs.memory with parameters of type BytesRef Modifier and Type Method Description (package private) intDirectPostingsFormat.DirectField. compare(int ord, BytesRef other)private BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum. doSeekCeil(BytesRef target)private intDirectPostingsFormat.DirectField.DirectTermsEnum. findTerm(BytesRef term)voidFSTTermsWriter.TermsWriter. finishTerm(BytesRef text, BlockTermState state)TermsEnumDirectPostingsFormat.DirectField. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumFSTTermsReader.TermsReader. intersect(CompiledAutomaton compiled, BytesRef startTerm)intLegacySortedDocValues. lookupTerm(BytesRef key)Deprecated.Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.longLegacySortedSetDocValues. lookupTerm(BytesRef key)Deprecated.Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.TermsEnum.SeekStatusDirectPostingsFormat.DirectField.DirectIntersectTermsEnum. seekCeil(BytesRef term)TermsEnum.SeekStatusDirectPostingsFormat.DirectField.DirectTermsEnum. seekCeil(BytesRef term)TermsEnum.SeekStatusFSTTermsReader.TermsReader.IntersectTermsEnum. seekCeil(BytesRef target)TermsEnum.SeekStatusFSTTermsReader.TermsReader.SegmentTermsEnum. seekCeil(BytesRef target)booleanDirectPostingsFormat.DirectField.DirectTermsEnum. seekExact(BytesRef term)voidDirectPostingsFormat.DirectField.DirectTermsEnum. seekExact(BytesRef term, TermState state)booleanFSTTermsReader.TermsReader.SegmentTermsEnum. seekExact(BytesRef target)voidFSTTermsReader.TermsReader.SegmentTermsEnum. seekExact(BytesRef target, TermState otherState)Method parameters in org.apache.lucene.codecs.memory with type arguments of type BytesRef Modifier and Type Method Description private voidDirectDocValuesConsumer. addBinaryFieldValues(FieldInfo field, java.lang.Iterable<BytesRef> values)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 BytesRefSimpleTextFieldInfosFormat. ATT_KEY(package private) static BytesRefSimpleTextFieldInfosFormat. ATT_VALUEstatic BytesRefSimpleTextPointsWriter. BLOCK_COUNTstatic BytesRefSimpleTextPointsWriter. BLOCK_DOC_IDstatic BytesRefSimpleTextPointsWriter. BLOCK_FPstatic BytesRefSimpleTextPointsWriter. BLOCK_VALUEstatic BytesRefSimpleTextPointsWriter. BYTES_PER_DIM(package private) static BytesRefSimpleTextUtil. CHECKSUM(package private) static BytesRefSimpleTextFieldInfosFormat. DATA_DIM_COUNT(package private) static BytesRefSimpleTextFieldInfosFormat. DIM_NUM_BYTES(package private) static BytesRefSimpleTextFieldsWriter. DOC(package private) static BytesRefSimpleTextLiveDocsFormat. DOC(package private) static BytesRefSimpleTextStoredFieldsWriter. DOC(package private) static BytesRefSimpleTextTermVectorsWriter. DOCstatic BytesRefSimpleTextPointsWriter. DOC_COUNT(package private) static BytesRefSimpleTextFieldInfosFormat. DOCVALUES(package private) static BytesRefSimpleTextFieldInfosFormat. DOCVALUES_GEN(package private) static BytesRefSimpleTextDocValuesWriter. END(package private) static BytesRefSimpleTextFieldsWriter. END(package private) static BytesRefSimpleTextLiveDocsFormat. ENDstatic BytesRefSimpleTextPointsWriter. END(package private) static BytesRefSimpleTextStoredFieldsWriter. END(package private) static BytesRefSimpleTextTermVectorsWriter. END(package private) static BytesRefSimpleTextFieldsWriter. END_OFFSET(package private) static BytesRefSimpleTextTermVectorsWriter. ENDOFFSET(package private) static BytesRefSimpleTextDocValuesWriter. FIELD(package private) static BytesRefSimpleTextFieldsWriter. FIELD(package private) static BytesRefSimpleTextStoredFieldsWriter. FIELD(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDstatic BytesRefSimpleTextPointsWriter. FIELD_COUNTstatic BytesRefSimpleTextPointsWriter. FIELD_FPstatic BytesRefSimpleTextPointsWriter. FIELD_FP_NAME(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDNAME(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDOFFSETS(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDPAYLOADS(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDPOSITIONS(package private) static BytesRefSimpleTextTermVectorsWriter. FIELDTERMCOUNT(package private) static BytesRefSimpleTextFieldsWriter. FREQ(package private) static BytesRefSimpleTextCompoundFormat. HEADERstatic BytesRefSimpleTextPointsWriter. INDEX_COUNT(package private) static BytesRefSimpleTextFieldInfosFormat. INDEX_DIM_COUNT(package private) static BytesRefSimpleTextFieldInfosFormat. INDEXOPTIONS(package private) static BytesRefSimpleTextDocValuesWriter. LENGTHstatic BytesRefSimpleTextPointsWriter. MAX_LEAF_POINTSstatic BytesRefSimpleTextPointsWriter. MAX_VALUE(package private) static BytesRefSimpleTextDocValuesWriter. MAXLENGTHstatic BytesRefSimpleTextPointsWriter. MIN_VALUE(package private) static BytesRefSimpleTextDocValuesWriter. MINVALUE(package private) static BytesRefSimpleTextFieldInfosFormat. NAME(package private) static BytesRefSimpleTextStoredFieldsWriter. NAME(package private) static BytesRefSimpleTextFieldInfosFormat. NORMS(package private) static BytesRefSimpleTextFieldInfosFormat. NUM_ATTSstatic BytesRefSimpleTextPointsWriter. NUM_DATA_DIMSstatic BytesRefSimpleTextPointsWriter. NUM_INDEX_DIMS(package private) static BytesRefSimpleTextFieldInfosFormat. NUMBER(package private) static BytesRefSimpleTextFieldInfosFormat. NUMFIELDS(package private) static BytesRefSimpleTextTermVectorsWriter. NUMFIELDS(package private) static BytesRefSimpleTextDocValuesWriter. NUMVALUES(package private) static BytesRefSimpleTextDocValuesWriter. ORDPATTERN(package private) static BytesRefSimpleTextDocValuesWriter. PATTERNprivate BytesRefSimpleTextFieldsReader.SimpleTextPostingsEnum. payload(package private) static BytesRefSimpleTextFieldsWriter. PAYLOAD(package private) static BytesRefSimpleTextTermVectorsWriter. PAYLOADprivate BytesRef[]SimpleTextTermVectorsReader.SimpleTVPostings. payloadsprivate BytesRef[]SimpleTextTermVectorsReader.SimpleTVPostingsEnum. payloads(package private) static BytesRefSimpleTextFieldInfosFormat. PAYLOADSstatic BytesRefSimpleTextPointsWriter. POINT_COUNT(package private) static BytesRefSimpleTextFieldsWriter. POS(package private) static BytesRefSimpleTextTermVectorsWriter. POSITION(package private) BytesRefSimpleTextBKDWriter. scratchBytesRef1(package private) BytesRefSimpleTextBKDWriter. scratchBytesRef2(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_ATT_KEY(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_ATT_VALUE(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_DIAG_KEY(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_DIAG_VALUE(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_DOCCOUNT(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_FILE(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_ID(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_MIN_VERSION(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_NUM_ATT(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_NUM_DIAG(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_NUM_FILES(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_SORT(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_SORT_BYTES(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_SORT_NAME(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_SORT_TYPE(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_USECOMPOUND(package private) static BytesRefSimpleTextSegmentInfoFormat. SI_VERSION(package private) static BytesRefSimpleTextLiveDocsFormat. SIZE(package private) static BytesRefSimpleTextFieldInfosFormat. SOFT_DELETESstatic BytesRefSimpleTextPointsWriter. SPLIT_COUNTstatic BytesRefSimpleTextPointsWriter. SPLIT_DIMstatic BytesRefSimpleTextPointsWriter. SPLIT_VALUE(package private) static BytesRefSimpleTextFieldsWriter. START_OFFSET(package private) static BytesRefSimpleTextTermVectorsWriter. STARTOFFSET(package private) static BytesRefSimpleTextFieldInfosFormat. STORETV(package private) static BytesRefSimpleTextFieldInfosFormat. STORETVOFF(package private) static BytesRefSimpleTextFieldInfosFormat. STORETVPOS(package private) static BytesRefSimpleTextCompoundFormat. TABLE(package private) static BytesRefSimpleTextCompoundFormat. TABLEEND(package private) static BytesRefSimpleTextCompoundFormat. TABLENAME(package private) static BytesRefSimpleTextCompoundFormat. TABLEPOS(package private) static BytesRefSimpleTextCompoundFormat. TABLESTART(package private) static BytesRefSimpleTextFieldsWriter. TERM(package private) static BytesRefSimpleTextTermVectorsWriter. TERMFREQ(package private) static BytesRefSimpleTextTermVectorsWriter. TERMTEXT(package private) static BytesRefSimpleTextDocValuesWriter. TYPE(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_BINARY(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_DOUBLE(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_FLOAT(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_INT(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_LONG(package private) static BytesRefSimpleTextStoredFieldsWriter. TYPE_STRING(package private) static BytesRefSimpleTextStoredFieldsWriter. VALUEFields 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. termsMethods in org.apache.lucene.codecs.simpletext that return BytesRef Modifier and Type Method Description static BytesRefSimpleTextUtil. fromBytesRefString(java.lang.String s)Inverse oftoString().BytesRefSimpleTextFieldsReader.SimpleTextDocsEnum. getPayload()BytesRefSimpleTextFieldsReader.SimpleTextPostingsEnum. getPayload()BytesRefSimpleTextTermVectorsReader.SimpleTVDocsEnum. getPayload()BytesRefSimpleTextTermVectorsReader.SimpleTVPostingsEnum. getPayload()BytesRefSimpleTextFieldsReader.SimpleTextTermsEnum. next()BytesRefSimpleTextTermVectorsReader.SimpleTVTermsEnum. next()BytesRefSimpleTextFieldsReader.SimpleTextTermsEnum. term()BytesRefSimpleTextTermVectorsReader.SimpleTVTermsEnum. term()Methods in org.apache.lucene.codecs.simpletext with parameters of type BytesRef Modifier and Type Method Description voidSimpleTextTermVectorsWriter. addPosition(int position, int startOffset, int endOffset, BytesRef payload)private booleanSimpleTextStoredFieldsReader. equalsAt(BytesRef a, BytesRef b, int bOffset)private intSimpleTextBKDReader. parseInt(BytesRefBuilder scratch, BytesRef prefix)private intSimpleTextPointsReader. parseInt(BytesRef prefix)private intSimpleTextLiveDocsFormat. parseIntAt(BytesRef bytes, int offset, CharsRefBuilder scratch)private longSimpleTextPointsReader. parseLong(BytesRef prefix)private voidSimpleTextStoredFieldsReader. readField(BytesRef type, FieldInfo fieldInfo, StoredFieldVisitor visitor)voidSimpleTextTermVectorsReader.SimpleTVPostingsEnum. reset(int[] positions, int[] startOffsets, int[] endOffsets, BytesRef[] payloads)TermsEnum.SeekStatusSimpleTextFieldsReader.SimpleTextTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusSimpleTextTermVectorsReader.SimpleTVTermsEnum. seekCeil(BytesRef text)booleanSimpleTextFieldsReader.SimpleTextTermsEnum. seekExact(BytesRef text)private booleanSimpleTextBKDReader. startsWith(BytesRefBuilder scratch, BytesRef prefix)private booleanSimpleTextDocValuesReader. startsWith(BytesRef prefix)Used only in ctor:private booleanSimpleTextPointsReader. startsWith(BytesRef prefix)voidSimpleTextTermVectorsWriter. startTerm(BytesRef term, int freq)private java.lang.StringSimpleTextBKDReader. stripPrefix(BytesRefBuilder scratch, BytesRef prefix)private java.lang.StringSimpleTextCompoundFormat. stripPrefix(BytesRefBuilder scratch, BytesRef prefix)private java.lang.StringSimpleTextDocValuesReader. stripPrefix(BytesRef prefix)Used only in ctor:private java.lang.StringSimpleTextPointsReader. stripPrefix(BytesRef prefix)private booleanSimpleTextBKDWriter. valueInBounds(BytesRef packedValue, byte[] minPackedValue, byte[] maxPackedValue)Called only in assertprivate voidSimpleTextBKDWriter. write(IndexOutput out, BytesRef b)private voidSimpleTextFieldsWriter. write(BytesRef b)private voidSimpleTextPointsWriter. write(IndexOutput out, BytesRef b)private voidSimpleTextStoredFieldsWriter. write(BytesRef bytes)private voidSimpleTextTermVectorsWriter. write(BytesRef bytes)static voidSimpleTextUtil. write(DataOutput out, BytesRef b)Method parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRef Modifier and Type Method Description private static intSimpleTextBKDWriter. runLen(java.util.function.IntFunction<BytesRef> packedValues, int start, int end, int byteOffset)private booleanSimpleTextBKDWriter. valuesInOrderAndBounds(int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, java.util.function.IntFunction<BytesRef> values, int[] docs, int docsOffset)protected voidSimpleTextBKDWriter. writeLeafBlockPackedValues(IndexOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues)private voidSimpleTextBKDWriter. writeLeafBlockPackedValuesRange(IndexOutput out, int[] commonPrefixLengths, int start, int end, 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 BytesRefIntersectBlockReader. commonSuffixprotected BytesRefBlockLine.Serializer. currentTermprotected BytesRefBlockWriter. lastTermprotected BytesRefFieldMetadata. lastTermprotected BytesRefIntersectBlockReader.AutomatonNextTermCalculator. linearUpperBoundprotected BytesRefBlockReader. scratchBlockBytesprotected BytesRefBlockWriter. scratchBytesRefprotected BytesRefIntersectBlockReader. seekTermSet this when our current mode is seeking to this term.protected BytesRefTermBytes. termMethods in org.apache.lucene.codecs.uniformsplit that return BytesRef Modifier and Type Method Description BytesRefBlockDecoder. decode(DataInput blockBytes, long length)Decodes all the bytes of one block in a single operation.protected BytesRefBlockReader. decodeBlockBytesIfNeeded(int numBlockBytes)BytesRefFieldMetadata. getLastTerm()BytesRefUniformSplitTerms. getMax()BytesRefTermBytes. getTerm()BytesRefBlockReader. next()BytesRefIntersectBlockReader. next()protected BytesRefIntersectBlockReader.AutomatonNextTermCalculator. nextSeekTerm(BytesRef term)protected BytesRefBlockReader. nextTerm()Moves to the next term line and reads it, it may be in the next block.protected BytesRefIntersectBlockReader. nextTermInBlockMatching()Finds the next block line that matches (accepted by the automaton), or null when at end of block.BytesRefBlockReader. term()Methods in org.apache.lucene.codecs.uniformsplit with parameters of type BytesRef Modifier and Type Method Description voidFSTDictionary.Builder. add(BytesRef blockKey, long blockFilePointer)voidIndexDictionary.Builder. add(BytesRef blockKey, long blockFilePointer)Adds a [block key - block file pointer] entry to the dictionary.protected voidBlockWriter. addLine(BytesRef term, BlockTermState blockTermState, IndexDictionary.Builder dictionaryBuilder)Adds a newBlockLineterm for the current field.protected intBlockReader. compareToMiddleAndJump(BytesRef searchedTerm)Compares the searched term to the middle term of the block.static intTermBytes. 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 voidBlockReader. initializeHeader(BytesRef searchedTerm, long targetBlockStartFP)Reads and setsBlockReader.blockHeader.TermsEnumUniformSplitTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)protected booleanBlockReader. isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)Indicates whether the searched term is beyond the last term of the field.protected booleanBlockReader. isCurrentTerm(BytesRef searchedTerm)protected booleanIntersectBlockReader.AutomatonNextTermCalculator. isLinearState(BytesRef term)True if the current state of the automata is best iterated linearly (without seeking).protected BytesRefIntersectBlockReader.AutomatonNextTermCalculator. nextSeekTerm(BytesRef term)static longRamUsageUtil. ramBytesUsed(BytesRef bytesRef)protected voidBlockLine.Serializer. readBytes(DataInput input, BytesRef bytes, int offset, int length)TermBytesTermBytes. reset(int mdpLength, BytesRef term)longFSTDictionary.Browser. seekBlock(BytesRef term)longIndexDictionary.Browser. seekBlock(BytesRef term)Seeks the given term in theIndexDictionaryand returns its corresponding block file pointer.TermsEnum.SeekStatusBlockReader. seekCeil(BytesRef searchedTerm)TermsEnum.SeekStatusIntersectBlockReader. seekCeil(BytesRef text)booleanBlockReader. seekExact(BytesRef searchedTerm)voidBlockReader. seekExact(BytesRef term, TermState state)Positions thisBlockReaderwithout re-seeking the term dictionary.booleanIntersectBlockReader. seekExact(BytesRef text)voidIntersectBlockReader. seekExact(BytesRef term, TermState state)protected TermsEnum.SeekStatusBlockReader. seekInBlock(BytesRef searchedTerm)Seeks to the provided term in this block.protected TermsEnum.SeekStatusBlockReader. seekInBlock(BytesRef searchedTerm, long blockStartFP)Seeks to the provided term in the block starting at the provided file pointer.voidFieldMetadata. 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 BytesRefUnionFieldMetadataBuilder. maxLastTermprotected BytesRefSTMergingTermsEnum. term(package private) BytesRefSTUniformSplitTermsWriter.TermIterator. termMethods in org.apache.lucene.codecs.uniformsplit.sharedterms that return BytesRef Modifier and Type Method Description BytesRefSTMergingTermsEnum.MultiSegmentsPostingsEnum. getPayload()BytesRefSTBlockReader. next()BytesRefSTIntersectBlockReader. next()BytesRefSTMergingBlockReader. next()BytesRefSTMergingTermsEnum. next()protected BytesRefSTBlockReader. nextTerm()Moves to the next term line and reads it, whichever are the corresponding fields.BytesRefSTMergingTermsEnum. term()Methods in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type BytesRef Modifier and Type Method Description voidSTBlockWriter. addLine(BytesRef term, java.util.List<FieldMetadataTermState> termStates, IndexDictionary.Builder dictionaryBuilder)Adds a newBlockLineterm for the current field.private voidSTUniformSplitTermsWriter. 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)TermsEnumSTUniformSplitTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)protected booleanSTBlockReader. isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)protected voidSTMergingTermsEnum. reset(BytesRef term, java.util.List<STUniformSplitTermsWriter.SegmentPostings> segmentPostings)Resets thisSTMergingTermsEnumwith a new term and its list ofSTUniformSplitTermsWriter.SegmentPostingsto combine.(package private) voidSTUniformSplitTermsWriter.MergingFieldTerms. resetIterator(BytesRef term, java.util.List<STUniformSplitTermsWriter.SegmentPostings> segmentPostingsList)TermsEnum.SeekStatusSTBlockReader. seekCeil(BytesRef searchedTerm)TermsEnum.SeekStatusSTMergingBlockReader. seekCeil(BytesRef searchedTerm)TermsEnum.SeekStatusSTMergingTermsEnum. seekCeil(BytesRef text)(package private) TermsEnum.SeekStatusSTBlockReader. seekCeilIgnoreField(BytesRef searchedTerm)booleanSTBlockReader. seekExact(BytesRef searchedTerm)booleanSTMergingBlockReader. seekExact(BytesRef searchedTerm)voidSTMergingBlockReader. seekExact(BytesRef term, TermState state)booleanSTMergingTermsEnum. seekExact(BytesRef text)voidSTMergingTermsEnum. seekExact(BytesRef term, TermState state)private voidSTUniformSplitTermsWriter. 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 BytesRefCollationDocValuesField. bytesprivate BytesRefICUCollationDocValuesField. 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 BytesRefCollatedTermAttributeImpl. getBytesRef()BytesRefICUCollatedTermAttributeImpl. getBytesRef() -
Uses of BytesRef in org.apache.lucene.document
Fields in org.apache.lucene.document declared as BytesRef Modifier and Type Field Description private BytesRefFeatureDoubleValuesSource. featureNameprivate BytesRefFeatureSortField.FeatureComparator. featureNameprivate BytesRefSortedSetDocValuesRangeQuery. lowerValueprivate BytesRefSortedSetDocValuesRangeQuery. upperValueprivate BytesRefField.BinaryTokenStream. valueMethods in org.apache.lucene.document that return BytesRef Modifier and Type Method Description BytesRefBinaryRangeDocValues. binaryValue()BytesRefField. binaryValue()BytesRefLazyDocument.LazyField. binaryValue()BytesRefDocument. 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[]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.private static BytesRefBigIntegerPoint. pack(java.math.BigInteger... point)private static BytesRefBinaryPoint. pack(byte[]... point)static BytesRefDoublePoint. pack(double... point)Pack a double point into a BytesRefstatic BytesRefFloatPoint. pack(float... point)Pack a float point into a BytesRefprivate static BytesRefHalfFloatPoint. pack(float... point)static BytesRefIntPoint. pack(int... point)Pack an integer point into a BytesRefstatic BytesRefLongPoint. 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 QuerySortedDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)Create a query for matching an exactBytesRefvalue.static QuerySortedSetDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)Create a query for matching an exactBytesRefvalue.static QuerySortedDocValuesField. newSlowRangeQuery(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)Create a range query that matches all documents whose value is betweenlowerValueandupperValueincluded.static QuerySortedSetDocValuesField. newSlowRangeQuery(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)Create a range query that matches all documents whose value is betweenlowerValueandupperValue.voidBigIntegerPoint. setBytesValue(BytesRef bytes)voidDoublePoint. setBytesValue(BytesRef bytes)voidField. setBytesValue(BytesRef value)Expert: change the value of this field.voidFloatPoint. setBytesValue(BytesRef bytes)voidHalfFloatPoint. setBytesValue(BytesRef bytes)voidInetAddressPoint. setBytesValue(BytesRef bytes)voidIntPoint. setBytesValue(BytesRef bytes)voidLongPoint. setBytesValue(BytesRef bytes)voidField.BinaryTokenStream. setValue(BytesRef value)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.SortedDocValuesField(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.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. -
Uses of BytesRef in org.apache.lucene.index
Fields in org.apache.lucene.index declared as BytesRef Modifier and Type Field Description protected BytesRefFilteredTermsEnum. actualTermWhich term the enum is currently positioned to.(package private) BytesRefFieldUpdatesBuffer.BufferedUpdate. binaryValuea binary value or null if this buffer holds numeric updates(package private) BytesRefSortingStoredFieldsConsumer.CopyVisitor. binaryValue(package private) BytesRefPrefixCodedTerms.TermIterator. bytes(package private) BytesRefTerm. bytesprivate BytesRefAutomatonTermsEnum. commonSuffixRefprivate BytesRefMultiTermsEnum. currentBytesRefMultiTermsEnum.TermsEnumWithSlice. current(package private) BytesRefOrdinalMap.TermsEnumIndex. currentTermprivate BytesRefSortedDocValues. empty(package private) BytesRefTermVectorsConsumer. flushTermScratch term used by TermVectorsConsumerPerField.finishDocument.private BytesRefFilteredTermsEnum. initialSeekTermprivate BytesRefMultiTermsEnum. lastSeekprivate BytesRefFrozenBufferedUpdates.TermDocsIterator. lastTermprivate BytesRefAutomatonTermsEnum. linearUpperBoundprivate BytesRefFreqProxTermsWriter.SortingPostingsEnum. payloadprivate BytesRefFrozenBufferedUpdates.TermDocsIterator. readerTerm(package private) BytesRefFreqProxFields.FreqProxTermsEnum. scratch(package private) BytesRefSortedDocValuesWriter.BufferedSortedDocValues. scratch(package private) BytesRefSortedSetDocValuesWriter.BufferedSortedSetDocValues. scratchprivate BytesRefSingleTermsEnum. singleRef(package private) BytesRefBufferedUpdatesStream.SegmentState. term(package private) BytesRefFieldUpdatesBuffer.BufferedUpdate. termValueThe update terms value.private BytesRefBinaryDocValuesFieldUpdates.Iterator. valueprivate BytesRefDocValuesUpdate.BinaryDocValuesUpdate. valueMethods in org.apache.lucene.index that return BytesRef Modifier and Type Method Description abstract BytesRefBinaryDocValues. binaryValue()Returns the binary value for the current document ID.(package private) BytesRefBinaryDocValuesFieldUpdates.Iterator. binaryValue()BytesRefBinaryDocValuesWriter.BufferedBinaryDocValues. binaryValue()BytesRefBinaryDocValuesWriter.SortingBinaryDocValues. binaryValue()(package private) abstract BytesRefDocValuesFieldUpdates.Iterator. binaryValue()Returns a binary value for the current document if this iterator is a binary value iterator.protected abstract BytesRefDocValuesFieldUpdates.SingleValueDocValuesFieldUpdates. binaryValue()BytesRefFilterBinaryDocValues. binaryValue()BytesRefFilterSortedDocValues. binaryValue()BytesRefIndexableField. binaryValue()Non-null if this field has a binary value(package private) BytesRefNumericDocValuesFieldUpdates.Iterator. binaryValue()protected BytesRefNumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates. binaryValue()BytesRefSortedDocValues. binaryValue()BytesRefSortingStoredFieldsConsumer.CopyVisitor. binaryValue()BytesRefTerm. bytes()Returns the bytes of this term, these should not be modified.BytesRefMultiTerms. getMax()BytesRefTerms. getMax()Returns the largest term (in lexicographic order) in the field.BytesRefMultiTerms. getMin()BytesRefTerms. getMin()Returns the smallest term (in lexicographic order) in the field.BytesRefFilterLeafReader.FilterPostingsEnum. getPayload()BytesRefFreqProxFields.FreqProxDocsEnum. getPayload()BytesRefFreqProxFields.FreqProxPostingsEnum. getPayload()BytesRefFreqProxTermsWriter.SortingDocsEnum. getPayload()BytesRefFreqProxTermsWriter.SortingPostingsEnum. getPayload()BytesRefMappingMultiPostingsEnum. getPayload()BytesRefMultiPostingsEnum. getPayload()abstract BytesRefPostingsEnum. getPayload()Returns the payload at this position, or null if no payload was indexed.BytesRefSlowImpactsEnum. getPayload()(package private) BytesRefDocValuesUpdate.BinaryDocValuesUpdate. getValue()BytesRefFilterSortedDocValues. lookupOrd(int ord)BytesRefFilterSortedSetDocValues. lookupOrd(long ord)BytesRefMultiDocValues.MultiSortedDocValues. lookupOrd(int ord)BytesRefMultiDocValues.MultiSortedSetDocValues. lookupOrd(long ord)BytesRefSingletonSortedSetDocValues. lookupOrd(long ord)abstract BytesRefSortedDocValues. lookupOrd(int ord)Retrieves the value for the specified ordinal.BytesRefSortedDocValuesWriter.BufferedSortedDocValues. lookupOrd(int ord)BytesRefSortedDocValuesWriter.SortingSortedDocValues. lookupOrd(int ord)abstract BytesRefSortedSetDocValues. lookupOrd(long ord)Retrieves the value for the specified ordinal.BytesRefSortedSetDocValuesWriter.BufferedSortedSetDocValues. lookupOrd(long ord)BytesRefSortedSetDocValuesWriter.SortingSortedSetDocValues. lookupOrd(long ord)BytesRefExitableDirectoryReader.ExitableTermsEnum. next()BytesRefFilteredTermsEnum. next()BytesRefFilterLeafReader.FilterTermsEnum. next()BytesRefFreqProxFields.FreqProxTermsEnum. next()BytesRefMultiTermsEnum. next()BytesRefOrdinalMap.TermsEnumIndex. next()BytesRefPrefixCodedTerms.TermIterator. next()BytesRefSortedDocValuesTermsEnum. next()BytesRefSortedSetDocValuesTermsEnum. next()protected BytesRefAutomatonTermsEnum. nextSeekTerm(BytesRef term)protected BytesRefFilteredTermsEnum. nextSeekTerm(BytesRef currentTerm)On the first call toFilteredTermsEnum.next()or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEKorFilteredTermsEnum.AcceptStatus.NO_AND_SEEK, this method will be called to eventually seek the underlying TermsEnum to a new position.(package private) BytesRefFieldUpdatesBuffer.BufferedUpdateIterator. nextTerm()(package private) static BytesRefDocValuesUpdate.BinaryDocValuesUpdate. readFrom(DataInput in, BytesRef scratch)BytesRefFilteredTermsEnum. term()BytesRefFilterLeafReader.FilterTermsEnum. term()BytesRefFreqProxFields.FreqProxTermsEnum. term()BytesRefMultiTermsEnum. term()BytesRefSortedDocValuesTermsEnum. term()BytesRefSortedSetDocValuesTermsEnum. term()abstract BytesRefTermsEnum. term()Returns current term.Methods in org.apache.lucene.index with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatusAutomatonTermsEnum. accept(BytesRef term)Returns true if the term matches the automaton.protected abstract FilteredTermsEnum.AcceptStatusFilteredTermsEnum. accept(BytesRef term)Return if term is accepted, not accepted or the iteration should ended (and possibly seek).protected FilteredTermsEnum.AcceptStatusSingleTermsEnum. accept(BytesRef term)voidBinaryDocValuesFieldUpdates. add(int doc, BytesRef value)(package private) abstract voidDocValuesFieldUpdates. add(int doc, BytesRef value)(package private) voidDocValuesFieldUpdates.SingleValueDocValuesFieldUpdates. add(int doc, BytesRef value)(package private) voidNumericDocValuesFieldUpdates. add(int doc, BytesRef value)voidPrefixCodedTerms.Builder. add(java.lang.String field, BytesRef bytes)add a term.(package private) voidTermsHashPerField. add(BytesRef termBytes, int docID)Called once per inverted token.private voidSortedDocValuesWriter. addOneValue(BytesRef value)private voidSortedSetDocValuesWriter. addOneValue(BytesRef value)voidPointValuesWriter. addPackedValue(int docID, BytesRef value)(package private) voidFieldUpdatesBuffer. addUpdate(Term term, BytesRef value, int docUpTo)voidBinaryDocValuesWriter. addValue(int docID, BytesRef value)voidSortedDocValuesWriter. addValue(int docID, BytesRef value)voidSortedSetDocValuesWriter. addValue(int docID, BytesRef value)private booleanFrozenBufferedUpdates.TermDocsIterator. assertSorted(BytesRef term)private static booleanCheckIndex. checkSingleTermRange(java.lang.String field, int maxDoc, Terms terms, BytesRef minTerm, BytesRef maxTerm, FixedBitSet normalDocs, FixedBitSet intersectDocs)Test Terms.intersect on this range, and validates that it returns the same doc ids as using non-intersect TermsEnum.private static longCheckIndex. getDocsFromTermRange(java.lang.String field, int maxDoc, TermsEnum termsEnum, FixedBitSet docsSeen, BytesRef minTerm, BytesRef maxTerm, boolean isIntersect)Visits all terms in the range minTerm (inclusive) to maxTerm (exclusive), marking all doc IDs encountered into allDocsSeen, and returning the total number of terms visited.static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, java.lang.String field, BytesRef term)ReturnsPostingsEnumfor the specified field and term.static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, java.lang.String field, BytesRef term, int flags)ReturnsPostingsEnumfor the specified field and term, with control over whether freqs, positions, offsets or payloads are required.voidPointValuesWriter.MutableSortingPointValues. getValue(int i, BytesRef packedValue)TermsEnumExitableDirectoryReader.ExitableTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumFreqProxTermsWriter.SortingTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumMultiTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumTerms. intersect(CompiledAutomaton compiled, BytesRef startTerm)Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton.intFilterSortedDocValues. lookupTerm(BytesRef key)longFilterSortedSetDocValues. lookupTerm(BytesRef key)longSingletonSortedSetDocValues. lookupTerm(BytesRef key)intSortedDocValues. lookupTerm(BytesRef key)Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.longSortedSetDocValues. lookupTerm(BytesRef key)Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.protected BytesRefAutomatonTermsEnum. nextSeekTerm(BytesRef term)protected BytesRefFilteredTermsEnum. nextSeekTerm(BytesRef currentTerm)On the first call toFilteredTermsEnum.next()or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEKorFilteredTermsEnum.AcceptStatus.NO_AND_SEEK, this method will be called to eventually seek the underlying TermsEnum to a new position.(package private) DocIdSetIteratorFrozenBufferedUpdates.TermDocsIterator. nextTerm(java.lang.String field, BytesRef term)(package private) static BytesRefDocValuesUpdate.BinaryDocValuesUpdate. readFrom(DataInput in, BytesRef scratch)voidMultiTermsEnum.TermsEnumWithSlice. reset(TermsEnum terms, BytesRef term)TermsEnum.SeekStatusFilteredTermsEnum. seekCeil(BytesRef term)This enum does not support seeking!TermsEnum.SeekStatusFilterLeafReader.FilterTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusFreqProxFields.FreqProxTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusMultiTermsEnum. seekCeil(BytesRef term)TermsEnum.SeekStatusSortedDocValuesTermsEnum. seekCeil(BytesRef text)TermsEnum.SeekStatusSortedSetDocValuesTermsEnum. seekCeil(BytesRef text)abstract TermsEnum.SeekStatusTermsEnum. seekCeil(BytesRef text)Seeks to the specified term, if it exists, or to the next (ceiling) term.booleanBaseTermsEnum. seekExact(BytesRef text)voidBaseTermsEnum. seekExact(BytesRef term, TermState state)booleanFilteredTermsEnum. seekExact(BytesRef term)This enum does not support seeking!voidFilteredTermsEnum. seekExact(BytesRef term, TermState state)This enum does not support seeking!booleanFilterLeafReader.FilterTermsEnum. seekExact(BytesRef text)voidFilterLeafReader.FilterTermsEnum. seekExact(BytesRef term, TermState state)booleanMultiTermsEnum. seekExact(BytesRef term)booleanSortedDocValuesTermsEnum. seekExact(BytesRef text)voidSortedDocValuesTermsEnum. seekExact(BytesRef term, TermState state)booleanSortedSetDocValuesTermsEnum. seekExact(BytesRef text)voidSortedSetDocValuesTermsEnum. seekExact(BytesRef term, TermState state)abstract booleanTermsEnum. seekExact(BytesRef text)Attempts to seek to the exact term, returning true if the term is found.abstract voidTermsEnum. seekExact(BytesRef term, TermState state)Expert: Seeks a specific position byTermStatepreviously obtained fromTermsEnum.termState().(package private) voidTerm. set(java.lang.String fld, BytesRef bytes)Resets the field and text of a Term.protected voidFilteredTermsEnum. setInitialSeekTerm(BytesRef term)Use this method to set the initialBytesRefto seek before iterating.static java.lang.StringTerm. toString(BytesRef termText)Returns human-readable form of the term text.longIndexWriter. 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 BytesRefMemoryIndex.MemoryIndexReader.MemoryTermsEnum. brprivate BytesRef[]MemoryIndex.Info. pointValuesMethods in org.apache.lucene.index.memory that return BytesRef Modifier and Type Method Description BytesRefMemoryIndex.MemoryIndexReader.MemoryPostingsEnum. getPayload()BytesRefMemoryIndex.MemoryIndexReader.MemoryTermsEnum. next()BytesRefMemoryIndex.MemoryIndexReader.MemoryTermsEnum. term()Methods in org.apache.lucene.index.memory with parameters of type BytesRef Modifier and Type Method Description private intMemoryIndex.MemoryIndexReader.MemoryTermsEnum. binarySearch(BytesRef b, BytesRef bytesRef, int low, int high, BytesRefHash hash, int[] ords)TermsEnum.SeekStatusMemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekCeil(BytesRef text)booleanMemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekExact(BytesRef text)voidMemoryIndex.MemoryIndexReader.MemoryTermsEnum. seekExact(BytesRef term, TermState state)private static SortedDocValuesMemoryIndex. sortedDocValues(BytesRef value)private voidMemoryIndex. storePointValues(MemoryIndex.Info info, BytesRef pointValue) -
Uses of BytesRef in org.apache.lucene.misc
Fields in org.apache.lucene.misc declared as BytesRef Modifier and Type Field Description BytesRefTermStats. termtextConstructors 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.monitor
Fields in org.apache.lucene.monitor declared as BytesRef Modifier and Type Field Description private static BytesRefQueryIndex. EMPTY(package private) BytesRefTermFilteredPresearcher.BytesRefHashIterator. scratchprivate BytesRefRegexpQueryHandler. wildcardTokenBytesMethods in org.apache.lucene.monitor that return BytesRef Modifier and Type Method Description private static BytesRef[]MultipassTermFilteredPresearcher. convertHash(BytesRefHash hash)BytesRefTermFilteredPresearcher.BytesRefHashIterator. next()BytesRefMonitorQuerySerializer. 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 voidMultipassTermFilteredPresearcher.MultipassDocumentQueryBuilder. addTerm(java.lang.String field, BytesRef term)voidTermFilteredPresearcher.DocumentQueryBuilder. addTerm(java.lang.String field, BytesRef term)Add a term from this documentMonitorQueryMonitorQuerySerializer. deserialize(BytesRef binaryValue)Builds a MonitorQuery from a byte representationstatic QueryTreeQueryTree. term(java.lang.String field, BytesRef term, double weight)Returns a leaf node for a particular term and weight The weight must be greater than 0static TermWeightorTermWeightor. termWeightor(double weight, BytesRef... terms)QueryTerms with a term value from the selected set will be assigned the given weightbooleanQueryIndex.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 QueryPresearcher. 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.QueryQueryIndex.QueryBuilder. buildQuery(java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)QueryTermFilteredPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)abstract voidQueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)Collect terms from the most highly-weighted path below this nodevoidQueryTree.ConjunctionQueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)voidQueryTree.DisjunctionQueryTree. collectTerms(java.util.function.BiConsumer<java.lang.String,BytesRef> termCollector)static TermWeightorTermWeightor. 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 BytesRefLiteralValueSource. bytesRefprotected BytesRefDocFreqValueSource. indexedBytesprotected BytesRefTotalTermFreqValueSource. indexedBytesConstructors 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) BytesRefPayloadFilteredTermIntervalsSource. term(package private) BytesRefTermIntervalsSource. termFields 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. filterMethods in org.apache.lucene.queries.intervals with parameters of type BytesRef Modifier and Type Method Description (package private) static IntervalIteratorTermIntervalsSource. intervals(BytesRef term, TermsEnum te)static IntervalsSourceIntervals. prefix(BytesRef prefix)Return anIntervalsSourceover the disjunction of all terms that begin with a prefixstatic IntervalsSourceIntervals. prefix(BytesRef prefix, int maxExpansions)Expert: Return anIntervalsSourceover the disjunction of all terms that begin with a prefix WARNING: SettingmaxExpansionsto higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSourceIntervals. term(BytesRef term)Return anIntervalsSourceexposing intervals for a termstatic IntervalsSourceIntervals. term(BytesRef term, java.util.function.Predicate<BytesRef> payloadFilter)Return anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceIntervals. wildcard(BytesRef wildcard)Return anIntervalsSourceover the disjunction of all terms that match a wildcard globstatic IntervalsSourceIntervals. wildcard(BytesRef wildcard, int maxExpansions)Expert: Return anIntervalsSourceover the disjunction of all terms that match a wildcard glob WARNING: SettingmaxExpansionsto higher than the default value of 128 can be both slow and memory-intensiveMethod parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRef Modifier and Type Method Description static IntervalsSourceIntervals. term(java.lang.String term, java.util.function.Predicate<BytesRef> payloadFilter)Return anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceIntervals. term(BytesRef term, java.util.function.Predicate<BytesRef> payloadFilter)Return anIntervalsSourceexposing 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. payloadToMatchMethods in org.apache.lucene.queries.payloads with parameters of type BytesRef Modifier and Type Method Description floatPayloadDecoder. 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) -
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 BytesRefQueryParserBase. 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 BytesRefRegexpQueryNode. textToBytesRef() -
Uses of BytesRef in org.apache.lucene.queryparser.surround.query
Fields in org.apache.lucene.queryparser.surround.query declared as BytesRef Modifier and Type Field Description private BytesRefSrndPrefixQuery. prefixRefprivate BytesRefSrndTruncQuery. prefixRef -
Uses of BytesRef in org.apache.lucene.search
Fields in org.apache.lucene.search declared as BytesRef Modifier and Type Field Description private BytesRefFieldComparator.TermValComparator. bottomprivate BytesRefFuzzyTermsEnum. bottomTerm(package private) BytesRefFieldComparator.TermOrdValComparator. bottomValueprivate BytesRefMaxNonCompetitiveBoostAttributeImpl. competitiveTermprivate BytesRefTermRangeQuery. lowerTermprivate BytesRefPointInSetQuery.MergePointVisitor. nextQueryPointprivate BytesRefFuzzyTermsEnum. queuedBottomprivate BytesRefPointInSetQuery.MergePointVisitor. scratch(package private) BytesRefMultiTermQueryConstantScoreWrapper.TermAndState. term(package private) BytesRefTermInSetQuery.TermAndState. termprivate BytesRefTermStatistics. termprotected BytesRefPhraseWildcardQuery.TermBytesTermState. termBytesprotected BytesRefPhraseWildcardQuery.TermStats. termBytesprivate BytesRef[]BM25FQuery. terms(package private) BytesRefFieldComparator.TermOrdValComparator. topValueSet by setTopValue.private BytesRefFieldComparator.TermValComparator. topValueprivate BytesRefTermRangeQuery. upperTerm(package private) BytesRef[]FieldComparator.TermOrdValComparator. valuesprivate BytesRef[]FieldComparator.TermValComparator. valuesFields in org.apache.lucene.search with type parameters of type BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>SortField. bytesComparatorprivate java.util.Map<java.lang.Integer,BytesRef>TermAutomatonQuery. idToTermprivate java.util.Map<java.lang.Integer,BytesRef>TermAutomatonScorer. idToTermprivate java.util.Set<BytesRef>BM25FQuery.Builder. termsSetprivate java.util.Map<BytesRef,java.lang.Integer>TermAutomatonQuery. termToIDMethods in org.apache.lucene.search that return BytesRef Modifier and Type Method Description private static BytesRefDocValuesStats. copyFrom(BytesRef src, BytesRef dest)BytesRefMaxNonCompetitiveBoostAttribute. getCompetitiveTerm()This is the term ornullof the term that triggered the boost change.BytesRefMaxNonCompetitiveBoostAttributeImpl. getCompetitiveTerm()BytesRefTermRangeQuery. getLowerTerm()Returns the lower value of this range queryBytesRefMultiPhraseQuery.UnionFullPostingsEnum. getPayload()BytesRefMultiPhraseQuery.UnionPostingsEnum. getPayload()BytesRefPhraseWildcardQuery.TermStats. getTermBytes()BytesRefTermRangeQuery. getUpperTerm()Returns the upper value of this range queryprivate BytesRefFieldComparator.TermValComparator. getValueForDoc(int doc)BytesRefSortedSetSelector.MaxValue. lookupOrd(int ord)BytesRefSortedSetSelector.MiddleMaxValue. lookupOrd(int ord)BytesRefSortedSetSelector.MiddleMinValue. lookupOrd(int ord)BytesRefSortedSetSelector.MinValue. lookupOrd(int ord)BytesRefFuzzyTermsEnum. next()abstract BytesRefPointInSetQuery.Stream. next()BytesRefFuzzyTermsEnum. term()BytesRefTermStatistics. term()The term text.BytesRefFieldComparator.TermOrdValComparator. value(int slot)BytesRefFieldComparator.TermValComparator. value(int slot)Methods in org.apache.lucene.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.TermStatsmap for aPhraseWildcardQuery.MultiTerm.java.util.Comparator<BytesRef>SortField. getBytesComparator()Methods in org.apache.lucene.search with parameters of type BytesRef Modifier and Type Method Description BM25FQuery.BuilderBM25FQuery.Builder. addTerm(BytesRef term)Adds a term to this builder.PhraseWildcardQuery.BuilderPhraseWildcardQuery.Builder. addTerm(BytesRef termBytes)Adds a single term at the next position in the phrase.voidTermAutomatonQuery. addTransition(int source, int dest, BytesRef term)Adds a transition to the automaton.private voidFuzzyTermsEnum. bottomChanged(BytesRef lastTerm)fired when the max non-competitive boost has changed.booleanScoringRewrite.ParallelArraysTermCollector. collect(BytesRef bytes)abstract booleanTermCollectingRewrite.TermCollector. collect(BytesRef bytes)return false to stop collectingintFieldComparator.TermOrdValComparator. compareValues(BytesRef val1, BytesRef val2)intFieldComparator.TermValComparator. compareValues(BytesRef val1, BytesRef val2)private static BytesRefDocValuesStats. copyFrom(BytesRef src, BytesRef dest)private TermsEnumFuzzyTermsEnum. getAutomatonEnum(int editDistance, BytesRef lastTerm)return an automata-based enum for matching up to editDistance from lastTerm, if possibleprivate intTermAutomatonQuery. getTermID(BytesRef term)intSortedSetSelector.MaxValue. lookupTerm(BytesRef key)intSortedSetSelector.MiddleMaxValue. lookupTerm(BytesRef key)intSortedSetSelector.MiddleMinValue. lookupTerm(BytesRef key)intSortedSetSelector.MinValue. lookupTerm(BytesRef key)private booleanFuzzyTermsEnum. matches(BytesRef termIn, int k)returns true if term is within k edits of the query termTermsEnum.SeekStatusFuzzyTermsEnum. seekCeil(BytesRef text)booleanFuzzyTermsEnum. seekExact(BytesRef text)voidFuzzyTermsEnum. seekExact(BytesRef term, TermState state)voidMaxNonCompetitiveBoostAttribute. setCompetitiveTerm(BytesRef competitiveTerm)This is the term ornullof the term that triggered the boost change.voidMaxNonCompetitiveBoostAttributeImpl. setCompetitiveTerm(BytesRef competitiveTerm)voidPointInSetQuery.SinglePointVisitor. setPoint(BytesRef point)voidFieldComparator.TermOrdValComparator. setTopValue(BytesRef value)voidFieldComparator.TermValComparator. setTopValue(BytesRef value)static AutomatonPrefixQuery. toAutomaton(BytesRef prefix)Build an automaton accepting all terms with the specified prefix.static AutomatonTermRangeQuery. 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 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 theTermStatelist andTermStatisticsfor a multi-term on a specific index segment.protected voidPhraseWildcardQuery. collectMultiTermStats(IndexSearcher searcher, java.util.Map<BytesRef,PhraseWildcardQuery.TermStats> termStatsMap, PhraseWildcardQuery.TermsData termsData, PhraseWildcardQuery.TermData termData)Collect the term stats across all segments.voidSortField. setBytesComparator(java.util.Comparator<BytesRef> b)Constructors in org.apache.lucene.search with parameters of type BytesRef Constructor Description BM25FQuery(BM25Similarity similarity, java.util.TreeMap<java.lang.String,BM25FQuery.FieldAndWeight> fieldAndWeights, BytesRef[] terms)DocValuesTermsQuery(java.lang.String field, BytesRef... terms)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.TermAndState(BytesRef term, TermState state, int docFreq, long totalTermFreq)TermBytesTermState(BytesRef termBytes, TermState termState)TermInSetQuery(java.lang.String field, BytesRef... terms)Creates a newTermInSetQueryfrom the given array of terms.TermRangeQuery(java.lang.String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper)Constructs a query selecting all terms greater/equal thanlowerTermbut less/equal thanupperTerm.TermStatistics(BytesRef term, long docFreq, long totalTermFreq)Creates statistics instance for a term.TermStats(BytesRef termBytes)Constructor parameters in org.apache.lucene.search with type arguments of type BytesRef Constructor Description DocValuesTermsQuery(java.lang.String field, java.util.Collection<BytesRef> terms)TermAutomatonScorer(TermAutomatonQuery.TermAutomatonWeight weight, TermAutomatonQuery.EnumAndScorer[] subs, int anyTermID, java.util.Map<java.lang.Integer,BytesRef> idToTerm, LeafSimScorer docScorer)TermInSetQuery(java.lang.String field, java.util.Collection<BytesRef> terms)Creates a newTermInSetQueryfrom the given collection of terms. -
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 BytesRefGroupFacetCollector. facetPrefix(package private) BytesRefTermGroupFacetCollector.GroupedFacetHit. facetValue(package private) BytesRefTermGroupFacetCollector.GroupedFacetHit. groupValueprotected BytesRefGroupFacetCollector.SegmentResult. mergeTermprivate BytesRefTermGroupSelector. scratchprivate BytesRefGroupFacetCollector.FacetEntry. valueMethods in org.apache.lucene.search.grouping that return BytesRef Modifier and Type Method Description BytesRefTermGroupSelector. copyValue()BytesRefTermGroupSelector. currentValue()BytesRefGroupFacetCollector.FacetEntry. getValue()Methods in org.apache.lucene.search.grouping with parameters of type BytesRef Modifier and Type Method Description voidGroupFacetCollector.GroupedFacetResult. addFacetCount(BytesRef facetValue, int count)static TermGroupFacetCollectorTermGroupFacetCollector. 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 voidTermGroupSelector. 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 BytesRefSeekingTermSetTermsEnum. lastTermprivate BytesRefPointInSetIncludingScoreQuery.MergePointVisitor. nextQueryPointprivate BytesRefPointInSetIncludingScoreQuery.MergePointVisitor. scratchprivate BytesRefSeekingTermSetTermsEnum. seekTermprivate BytesRefSeekingTermSetTermsEnum. spareMethods in org.apache.lucene.search.join that return BytesRef Modifier and Type Method Description BytesRefToParentDocValues.SortedDVs. lookupOrd(int ord)protected BytesRefSeekingTermSetTermsEnum. nextSeekTerm(BytesRef currentTerm)Methods in org.apache.lucene.search.join with parameters of type BytesRef Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatusSeekingTermSetTermsEnum. accept(BytesRef term)protected BytesRefSeekingTermSetTermsEnum. nextSeekTerm(BytesRef currentTerm) -
Uses of BytesRef in org.apache.lucene.search.similarities
Methods in org.apache.lucene.search.similarities with parameters of type BytesRef Modifier and Type Method Description protected floatBM25Similarity. scorePayload(int doc, int start, int end, BytesRef payload)The default implementation returns1 -
Uses of BytesRef in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as BytesRef Modifier and Type Field Description BytesRefDirectSpellChecker.ScoreTerm. termThe actual spellcheck correction.Methods in org.apache.lucene.search.spell that return BytesRef Modifier and Type Method Description BytesRefHighFrequencyDictionary.HighFrequencyIterator. next()BytesRefPlainTextDictionary.FileIterator. next()BytesRefHighFrequencyDictionary.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 BytesRefDocumentDictionary.DocumentInputIterator. currentPayloadBytesRefLookup.LookupResult. payloadthe key's payload (null if not present)private BytesRefSortedInputIterator. payloadFields in org.apache.lucene.search.suggest with type parameters of type BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>InMemorySorter. comparatorprivate java.util.Comparator<BytesRef>SortedInputIterator. comparatorjava.util.Set<BytesRef>Lookup.LookupResult. contextsthe key's contexts (null if not present)private java.util.Set<BytesRef>SortedInputIterator. contextsprotected java.util.List<java.util.Set<BytesRef>>BufferedInputIterator. contextSetsbuffered context set entriesprivate java.util.Set<BytesRef>DocumentDictionary.DocumentInputIterator. currentContextsprivate java.util.Comparator<BytesRef>SortedInputIterator. tieBreakByCostComparatorSortes by BytesRef (ascending) then cost (ascending).Methods in org.apache.lucene.search.suggest that return BytesRef Modifier and Type Method Description protected BytesRefSortedInputIterator. decodePayload(BytesRef scratch, ByteArrayDataInput tmpInput)decodes the payload at the current positionBytesRefBufferedInputIterator. next()BytesRefDocumentDictionary.DocumentInputIterator. next()BytesRefFileDictionary.FileIterator. next()BytesRefInputIterator.InputIteratorWrapper. next()BytesRefSortedInputIterator. next()BytesRefUnsortedInputIterator. next()BytesRefBufferedInputIterator. payload()BytesRefDocumentDictionary.DocumentInputIterator. payload()BytesRefFileDictionary.FileIterator. payload()BytesRefInputIterator.InputIteratorWrapper. payload()BytesRefInputIterator. payload()An arbitrary byte[] to record per suggestion.BytesRefSortedInputIterator. payload()BytesRefUnsortedInputIterator. 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 voidInMemorySorter. add(BytesRef utf8)protected longSortedInputIterator. 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 BytesRefSortedInputIterator. decodePayload(BytesRef scratch, ByteArrayDataInput tmpInput)decodes the payload at the current positionprotected voidSortedInputIterator. 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 voidSortedInputIterator. 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 BytesRefAnalyzingSuggester.AnalyzingComparator. scratchAprivate BytesRefAnalyzingSuggester.AnalyzingComparator. scratchBFields 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. fstFST<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. weightComparatorMethods 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 voidAnalyzingInfixSuggester. add(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)Adds a new suggestion.voidAnalyzingInfixSuggester. 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 DocumentAnalyzingInfixSuggester. buildDocument(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)intAnalyzingSuggester.AnalyzingComparator. compare(BytesRef a, BytesRef b)private intFreeTextSuggester. countGrams(BytesRef token)private Lookup.LookupResultAnalyzingSuggester. getLookupResult(java.lang.Long output1, BytesRef output2, CharsRefBuilder spare)private java.lang.LongFreeTextSuggester. lookupPrefix(FST<java.lang.Long> fst, FST.BytesReader bytesReader, BytesRef scratch, FST.Arc<java.lang.Long> arc)private booleanAnalyzingSuggester. sameSurfaceForm(BytesRef key, BytesRef output2)(package private) AutomatonAnalyzingSuggester. toAutomaton(BytesRef surfaceForm, TokenStreamToAutomaton ts2a)voidAnalyzingInfixSuggester. 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 voidAnalyzingInfixSuggester. add(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)Adds a new suggestion.private DocumentAnalyzingInfixSuggester. 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 BooleanQueryAnalyzingInfixSuggester. toQuery(java.util.Map<BytesRef,BooleanClause.Occur> contextInfo)private BooleanQueryAnalyzingInfixSuggester. toQuery(java.util.Set<BytesRef> contextInfo)voidAnalyzingInfixSuggester. 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 BytesRefCompletionTokenStream. payload(package private) BytesRefNRTSuggesterBuilder.Entry. payloadprivate BytesRefSuggestField. surfaceFormFields in org.apache.lucene.search.suggest.document with type parameters of type BytesRef Modifier and Type Field Description private Builder<PairOutputs.Pair<java.lang.Long,BytesRef>>NRTSuggesterBuilder. builderprivate FST<PairOutputs.Pair<java.lang.Long,BytesRef>>NRTSuggester. fstFST: input is the analyzed form, with a null byte between terms and a NRTSuggesterBuilder.END_BYTEto denote the end of the input weight is a long surface is the original, unanalyzed form followed by the docIDprivate PairOutputs<java.lang.Long,BytesRef>NRTSuggesterBuilder. outputsMethods in org.apache.lucene.search.suggest.document that return BytesRef Modifier and Type Method Description private BytesRefSuggestField. buildSuggestPayload()(package private) static BytesRefNRTSuggester.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 voidNRTSuggesterBuilder. 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 BytesRefNRTSuggester.PayLoadProcessor. make(BytesRef surface, int docID, int payloadSep)(package private) static intNRTSuggester.PayLoadProcessor. parseSurfaceForm(BytesRef output, int payloadSep, CharsRefBuilder spare)voidCompletionTokenStream. setPayload(BytesRef payload)Sets a payload available throughout successive token stream enumerationvoidNRTSuggesterBuilder. startTerm(BytesRef analyzed)Initializes an FST input term to add entries againstvoidCompletionFieldsConsumer.CompletionTermWriter. write(BytesRef term, TermsEnum termsEnum)Writes all postings (surface form, weight, document id) fortermMethod parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRef Modifier and Type Method Description intNRTSuggester.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 private BytesRefExternalRefSorter.ByteSequenceIterator. scratchBytesRefFSTCompletion.Completion. utf8UTF-8 bytes of the suggestionMethods in org.apache.lucene.search.suggest.fst that return BytesRef Modifier and Type Method Description BytesRefExternalRefSorter.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 voidBytesRefSorter. add(BytesRef utf8)Adds a single suggestion entry (possibly compound with its bucket).voidExternalRefSorter. add(BytesRef utf8)voidFSTCompletionBuilder. add(BytesRef utf8, int bucket)Appends a single suggestion and its weight to the internal buffers.private booleanFSTCompletion. checkExistingAndReorder(java.util.ArrayList<FSTCompletion.Completion> list, BytesRef key)Checks if the list ofLookup.LookupResults already has akey.private booleanFSTCompletion. collect(java.util.List<FSTCompletion.Completion> res, int num, int bucket, BytesRef output, FST.Arc<java.lang.Object> arc)Recursive collect lookup results from the automaton subgraph starting atarc.protected longWFSTCompletionLookup.WFSTInputIterator. decode(BytesRef scratch, ByteArrayDataInput tmpInput)private booleanFSTCompletion. descendWithPrefix(FST.Arc<java.lang.Object> arc, BytesRef utf8)Descend along the path starting atarcand going through bytes in the argument.protected voidWFSTCompletionLookup.WFSTInputIterator. encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, java.util.Set<BytesRef> contexts, long weight)private intFSTCompletion. getExactMatchStartingFromRootArc(int rootArcIndex, BytesRef utf8)Returns the first exact match by traversing root arcs, starting from the arcrootArcIndex.private java.lang.LongWFSTCompletionLookup. lookupPrefix(BytesRef scratch, FST.Arc<java.lang.Long> arc)private java.util.List<FSTCompletion.Completion>FSTCompletion. lookupSortedAlphabetically(BytesRef key, int num)Lookup suggestions sorted alphabetically if weights are not constant.private java.util.ArrayList<FSTCompletion.Completion>FSTCompletion. lookupSortedByWeight(BytesRef key, int num, boolean collectAll)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 voidWFSTCompletionLookup.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.jaspell
Method parameters in org.apache.lucene.search.suggest.jaspell with type arguments of type BytesRef Modifier and Type Method Description java.util.List<Lookup.LookupResult>JaspellLookup. lookup(java.lang.CharSequence key, java.util.Set<BytesRef> contexts, boolean onlyMorePopular, int num)Deprecated. -
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. utf8SortedAsUTF16SortOrderTST 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. matchDescriptionsprivate BytesRef[]Passage. matchTerms(package private) BytesRefOffsetsEnum.OfMatchesIteratorWithSubs.CachedOE. termprivate BytesRefOffsetsEnum.OfPostings. termprivate BytesRefPhraseHelper.SpanCollectedOffsetsEnum. termprivate BytesRef[]UHComponents. termsFields in org.apache.lucene.search.uhighlight with type parameters of type BytesRef Modifier and Type Field Description private java.util.Set<BytesRef>PhraseHelper. positionInsensitiveTermsprivate java.util.HashMap<Query,BytesRef>OffsetsEnum.OfMatchesIteratorWithSubs. queryToTermMapprivate java.util.function.Supplier<BytesRef>OffsetsEnum.OfMatchesIterator. termSupplier(package private) java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum>PhraseHelper.OffsetSpanCollector. termToOffsetsEnumsMethods 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 BytesRefOffsetsEnum. getTerm()The term at this position.BytesRefOffsetsEnum.MultiOffsetsEnum. getTerm()BytesRefOffsetsEnum.OfMatchesIterator. getTerm()BytesRefOffsetsEnum.OfMatchesIteratorWithSubs.CachedOE. getTerm()BytesRefOffsetsEnum.OfMatchesIteratorWithSubs. getTerm()BytesRefOffsetsEnum.OfPostings. getTerm()BytesRefPhraseHelper.SpanCollectedOffsetsEnum. getTerm()BytesRefTokenStreamOffsetStrategy.TokenStreamOffsetsEnum. getTerm()BytesRef[]UHComponents. getTerms()private BytesRefOffsetsEnum.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 voidPassage. addMatch(int startOffset, int endOffset, BytesRef term, int termFreqInDoc)private static CharArrayMatcher[]TokenStreamOffsetStrategy. convertTermsToMatchers(BytesRef[] terms, CharArrayMatcher[] matchers)protected voidFieldOffsetStrategy. createOffsetsEnumsForTerms(BytesRef[] sourceTerms, Terms termsIndex, int doc, java.util.List<OffsetsEnum> results)TermsEnumTermVectorFilteredLeafReader.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 CharArrayMatcherCharArrayMatcher. 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 BytesRefUnicodeUtil. BIG_TERMA binary term consisting of a number of 0xff bytes, likely to be bigger than other terms (e.g.(package private) BytesRefOfflineSorter.FileAndTop. currentprivate BytesRefBytesRefBuilder. refprivate BytesRefBytesRefHash. scratch1Fields in org.apache.lucene.util with type parameters of type BytesRef Modifier and Type Field Description private java.util.Comparator<BytesRef>OfflineSorter. comparatorstatic java.util.Comparator<BytesRef>OfflineSorter. DEFAULT_COMPARATORDefault comparator: sorts in binary (codepoint) orderMethods in org.apache.lucene.util that return BytesRef Modifier and Type Method Description BytesRefBytesRef. 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 BytesRefBytesRef. deepCopyOf(BytesRef other)Creates a new BytesRef that points to a copy of the bytes fromotherBytesRefBytesRefArray. get(BytesRefBuilder spare, int index)Returns the n'th element of thisBytesRefArrayBytesRefBytesRefBuilder. get()Return aBytesRefthat points to the internal content of this builder.BytesRefBytesRefHash. get(int bytesID, BytesRef ref)Populates and returns aBytesRefwith the bytes for the given bytesID.protected abstract BytesRefStringMSBRadixSorter. get(int i)Get aBytesReffor the given index.static BytesRefStringHelper. intsRefToBytesRef(IntsRef ints)BytesRefBytesRefIterator. next()Increments the iteration to the nextBytesRefin the iterator.BytesRefOfflineSorter.ByteSequencesReader. next()Reads the next entry into the providedBytesRef.BytesRefBytesRefBuilder. toBytesRef()Build a newBytesRefthat 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 intBytesRefHash. add(BytesRef bytes)Adds a newBytesRefvoidByteBlockPool. append(BytesRef bytes)Appends the bytes in the providedBytesRefat the current position.intBytesRefArray. append(BytesRef bytes)Appends a copy of the givenBytesRefto thisBytesRefArray.voidBytesRefBuilder. append(BytesRef ref)Append the provided bytes to this builder.intFixedLengthBytesRefArray. append(BytesRef bytes)Appends a copy of the givenBytesRefto thisBytesRefArray.intSortableBytesRefArray. append(BytesRef bytes)Append a new valueprotected abstract intBytesRefComparator. byteAt(BytesRef ref, int i)Return the unsigned byte to use for comparison at indexi, or-1if all bytes that are useful for comparisons are exhausted.static intStringHelper. 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).booleanBytesRef. bytesEquals(BytesRef other)Expert: compares the bytes against another BytesRef, returning true if the bytes are equal.static intUnicodeUtil. codePointCount(BytesRef utf8)Returns the number of code points in this UTF8 sequence.intBytesRefComparator. compare(BytesRef o1, BytesRef o2)intBytesRef. compareTo(BytesRef other)Unsigned byte order comparisonvoidPagedBytes. copy(BytesRef bytes, BytesRef out)Copy BytesRef in, setting BytesRef out to the result.voidBytesRefBuilder. copyBytes(BytesRef ref)Replace the content of this builder with the provided bytes.longPagedBytes. copyUsingLengthPrefix(BytesRef bytes)Copy bytes in, writing the length as a 1 or 2 byte vInt prefix.voidCharsRefBuilder. copyUTF8Bytes(BytesRef bytes)Copy the provided bytes, interpreted as UTF-8 bytes.voidIntsRefBuilder. copyUTF8Bytes(BytesRef bytes)Copy the given UTF-8 bytes into this builder.static BytesRefBytesRef. deepCopyOf(BytesRef other)Creates a new BytesRef that points to a copy of the bytes fromotherstatic booleanStringHelper. endsWith(BytesRef ref, BytesRef suffix)Returnstrueiff the ref ends with the given suffix.private booleanBytesRefHash. equals(int id, BytesRef b)voidPagedBytes.Reader. fill(BytesRef b, long start)Reads length as 1 or 2 byte vInt prefix, starting at start.voidPagedBytes.Reader. fillSlice(BytesRef b, long start, int length)Gets a slice out ofPagedBytesstarting at start with a given length.intBytesRefHash. find(BytesRef bytes)Returns the id of the givenBytesRef.private intBytesRefHash. findHash(BytesRef bytes)BytesRefBytesRefHash. get(int bytesID, BytesRef ref)Populates and returns aBytesRefwith the bytes for the given bytesID.static intStringHelper. murmurhash3_x86_32(BytesRef bytes, int seed)(package private) voidByteBlockPool. setBytesRef(BytesRefBuilder builder, BytesRef result, long offset, int length)Fill the providedBytesRefwith the bytes at the specified offset/length slice.voidByteBlockPool. setBytesRef(BytesRef term, int textStart)private voidBytesRefArray. setBytesRef(BytesRefBuilder spare, BytesRef result, int index)Used only by sort below, to set aBytesRefwith the specified slice, avoiding copying bytes in the common case when the slice is contained in a single block in the byte block pool.voidByteBlockPool. setRawBytesRef(BytesRef ref, long offset)static intStringHelper. sortKeyLength(BytesRef priorTerm, BytesRef currentTerm)Returns the length ofcurrentTermneeded for use as a sort key.static booleanStringHelper. startsWith(byte[] ref, BytesRef prefix)Returnstrueiff the ref starts with the given prefix.static booleanStringHelper. startsWith(BytesRef ref, BytesRef prefix)Returnstrueiff the ref starts with the given prefix.static intUnicodeUtil. UTF8toUTF16(BytesRef bytesRef, char[] chars)Utility method forUnicodeUtil.UTF8toUTF16(byte[], int, int, char[])static intUnicodeUtil. UTF8toUTF32(BytesRef utf8, int[] ints)This method assumes valid UTF8 input.voidOfflineSorter.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 BytesRefIteratorBytesRefArray. iterator(java.util.Comparator<BytesRef> comp)Returns aBytesRefIteratorwith point in time semantics.BytesRefIteratorFixedLengthBytesRefArray. iterator(java.util.Comparator<BytesRef> comp)Returns aBytesRefIteratorwith point in time semantics.BytesRefIteratorSortableBytesRefArray. iterator(java.util.Comparator<BytesRef> comp)Sort all values by the provided comparator and return an iterator over the sorted valuesBytesRefArray.SortStateBytesRefArray. sort(java.util.Comparator<BytesRef> comp, java.util.function.IntBinaryOperator tieComparator)Returns aBytesRefArray.SortStaterepresenting 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)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. -
Uses of BytesRef in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as BytesRef Modifier and Type Field Description BytesRefCompiledAutomaton. commonSuffixRefShared common suffix accepted by the automaton.BytesRefCompiledAutomaton. termForCompiledAutomaton.AUTOMATON_TYPE.SINGLEthis is the singleton term.Methods in org.apache.lucene.util.automaton that return BytesRef Modifier and Type Method Description private BytesRefCompiledAutomaton. addTail(int state, BytesRefBuilder term, int idx, int leadLabel)BytesRefCompiledAutomaton. floor(BytesRef input, BytesRefBuilder output)Finds largest term accepted by this Automaton, that's <= the provided input term.static BytesRefOperations. getCommonPrefixBytesRef(Automaton a)Returns the longest BytesRef that is a prefix of all accepted strings and visits each state at most once.static BytesRefOperations. getCommonSuffixBytesRef(Automaton a, int maxDeterminizedStates)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 BytesRefCompiledAutomaton. floor(BytesRef input, BytesRefBuilder output)Finds largest term accepted by this Automaton, that's <= the provided input term.static AutomatonAutomata. makeBinary(BytesRef term)Returns a new (deterministic) automaton that accepts the single given binary term.static AutomatonAutomata. 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 voidOperations. reverseBytes(BytesRef ref)private static booleanAutomata. 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 AutomatonDaciukMihovAutomatonBuilder. build(java.util.Collection<BytesRef> input)Build a minimal, deterministic automaton from a sorted list ofBytesRefrepresenting strings in UTF-8.static AutomatonAutomata. makeStringUnion(java.util.Collection<BytesRef> utf8Strings)Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRefs 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 (package private) BytesRefHeapPointReader.HeapPointValue. packedValue(package private) BytesRefOfflinePointReader.OfflinePointValue. packedValue(package private) BytesRefHeapPointReader.HeapPointValue. packedValueDocID(package private) BytesRefOfflinePointReader.OfflinePointValue. packedValueDocIDprivate BytesRefBKDReader.IndexTree. scratch(package private) BytesRefBKDWriter. scratchBytesRef1(package private) BytesRefBKDWriter. scratchBytesRef2Methods 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 givenBytesRefs.BytesRefBKDReader.IndexTree. getSplitDimValue()Only valid after pushLeft or pushRight, not pop!BytesRefBKDWriter.BKDTreeLeafNodes. getSplitValue(int index)split value between two leaves.BytesRefHeapPointReader.HeapPointValue. packedValue()BytesRefOfflinePointReader.OfflinePointValue. packedValue()BytesRefPointValue. packedValue()Returns the packed values for the dimensionsBytesRefHeapPointReader.HeapPointValue. packedValueDocIDBytes()BytesRefOfflinePointReader.OfflinePointValue. packedValueDocIDBytes()BytesRefPointValue. 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 voidBKDWriter. computePackedValueBounds(MutablePointValues values, int from, int to, byte[] minPackedValue, byte[] maxPackedValue, BytesRef scratch)static voidMutablePointsReaderUtils. partition(BKDConfig config, int maxDoc, int splitDim, int commonPrefixLen, MutablePointValues reader, int from, int to, int mid, BytesRef scratch1, BytesRef scratch2)Partition points aroundmid.static voidMutablePointsReaderUtils. sortByDim(BKDConfig config, int sortedDim, int[] commonPrefixLengths, MutablePointValues reader, int from, int to, BytesRef scratch1, BytesRef scratch2)Sort points on the given dimension.private static booleanBKDWriter. 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 givenBytesRefs.private static intBKDWriter. runLen(java.util.function.IntFunction<BytesRef> packedValues, int start, int end, int byteOffset)private static booleanBKDWriter. valuesInOrderAndBounds(BKDConfig config, int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, java.util.function.IntFunction<BytesRef> values, int[] docs, int docsOffset)private voidBKDWriter. writeActualBounds(DataOutput out, int[] commonPrefixLengths, int count, java.util.function.IntFunction<BytesRef> packedValues)private voidBKDWriter. writeHighCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int compressedByteOffset)private voidBKDWriter. writeLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int leafCardinality)private voidBKDWriter. writeLeafBlockPackedValuesRange(DataOutput out, int[] commonPrefixLengths, int start, int end, java.util.function.IntFunction<BytesRef> packedValues)private voidBKDWriter. 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 BytesRefBytesRefFSTEnum. currentBytesRefBytesRefFSTEnum.InputOutput. inputprivate static BytesRefByteSequenceOutputs. NO_OUTPUTprivate BytesRefBytesRefFSTEnum. targetMethods in org.apache.lucene.util.fst that return BytesRef Modifier and Type Method Description BytesRefByteSequenceOutputs. add(BytesRef prefix, BytesRef output)BytesRefByteSequenceOutputs. common(BytesRef output1, BytesRef output2)BytesRefByteSequenceOutputs. getNoOutput()BytesRefByteSequenceOutputs. read(DataInput in)BytesRefByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)static BytesRefUtil. toBytesRef(IntsRef input, 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 BytesRefByteSequenceOutputs. add(BytesRef prefix, BytesRef output)BytesRefByteSequenceOutputs. common(BytesRef output1, BytesRef output2)static <T> TUtil. get(FST<T> fst, BytesRef input)Looks up the output for this input, or null if the input is not acceptedjava.lang.StringByteSequenceOutputs. outputToString(BytesRef output)longByteSequenceOutputs. 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.BytesRefByteSequenceOutputs. subtract(BytesRef output, BytesRef inc)static IntsRefUtil. toIntsRef(BytesRef input, IntsRefBuilder scratch)Just takes unsigned byte values from the BytesRef and converts into an IntsRef.voidByteSequenceOutputs. write(BytesRef prefix, DataOutput out)
-