Uses of Class
org.apache.lucene.util.BytesRef
Packages that use BytesRef
Package
Description
Text analysis.
Analysis components based on ICU
Additional ICU-specific Attributes for text analysis.
Miscellaneous Tokenstreams.
Provides various convenience classes for creating payloads on Tokens.
Analysis components for Synonyms.
Analysis components for Synonyms using Word2Vec model.
General-purpose attributes for text analysis.
Compressing helper classes.
BlockTree terms dictionary.
Lucene 5.0 file format.
Lucene 5.0 compressing format.
Components from the Lucene 7.0 index format.
Components from the Lucene 8.0 index format.
Lucene 8.4 file format.
Lucene 8.7 file format.
Lucene 9.0 file format.
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a
structured document).
Uses already seen data (the indexed documents) to classify new documents.
Codecs API: API for customization of the encoding and structure of the index.
Pluggable term index / block terms dictionary implementations.
Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.
Codec PostingsFormat for fast access to low-frequency terms such as primary key fields.
Compressing helper classes.
Lucene 9.0 file format.
BlockTree terms dictionary.
Lucene 9.0 compressing format.
Lucene 9.9 file format.
Term dictionary, DocValues or Postings formats that are read entirely into memory.
Simpletext Codec: writes human readable postings.
Pluggable term index / block terms dictionary implementations.
Pluggable term index / block terms dictionary implementations.
Unicode collation support.
Custom
AttributeImpl for indexing collation keys as index terms.The logical representation of a
Document for indexing and
searching.Code to maintain and access indices.
High-performance single-document main memory Apache Lucene fulltext search index.
Miscellaneous Lucene utilities that don't really fit anywhere else.
Misc extensions of the Document/Field API.
Misc search implementations.
Monitoring framework
A variety of functions to use with FunctionQuery.
Intervals queries
The payloads package provides Query mechanisms for finding and using payloads.
A simple query parser implemented with JavaCC.
Standard Lucene Query Nodes.
A primary-key postings format that associates a version (long) with each term and can provide
fail-fast lookups by ID and version.
This package contains several point types:
BigIntegerPoint for 128-bit
integers
LatLonPoint for latitude/longitude
geospatial points
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Comparators, used to compare hits so as to determine their sort order when collecting the top
results with
TopFieldCollector.Grouping.
Support for index-time and query-time joins.
Suggest alternate spellings for words.
Support for Autocomplete/Autosuggest
Analyzer based autosuggest.
Support for document suggestion
Finite-state based autosuggest.
Ternary Search Tree based autosuggest.
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
Some utility classes.
Finite-state automaton for regular expressions.
Block KD-tree, implementing the generic spatial data structure described in this paper.
Finite state transducers
-
Uses of BytesRef in org.apache.lucene.analysis
Methods in org.apache.lucene.analysis that return BytesRefModifier and TypeMethodDescriptionprotected 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.final BytesRefNormalize a string down to the representation that it would have in the index.Methods in org.apache.lucene.analysis with parameters of type BytesRefModifier and TypeMethodDescriptionprotected 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.icu
Fields in org.apache.lucene.analysis.icu declared as BytesRef -
Uses of BytesRef in org.apache.lucene.analysis.icu.tokenattributes
Methods in org.apache.lucene.analysis.icu.tokenattributes that return BytesRef -
Uses of BytesRef in org.apache.lucene.analysis.miscellaneous
Fields in org.apache.lucene.analysis.miscellaneous with type parameters of type BytesRefModifier and TypeFieldDescriptionStemmerOverrideFilter.StemmerOverrideMap.fstStemmerOverrideFilter.scratchArcMethods in org.apache.lucene.analysis.miscellaneous that return BytesRefModifier and TypeMethodDescriptionprotected BytesRefConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken(BytesRef in) StemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader) Returns the value mapped to the given key ornullif the key is not in the FST dictionary.ConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl.getBytesRef()Methods in org.apache.lucene.analysis.miscellaneous with parameters of type BytesRefModifier and TypeMethodDescriptionprotected BytesRefConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken(BytesRef in) Method parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRefModifier and TypeMethodDescriptionStemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader) Returns the value mapped to the given key ornullif the key is not in the FST dictionary.Constructor parameters in org.apache.lucene.analysis.miscellaneous with type arguments of type BytesRefModifierConstructorDescriptionStemmerOverrideMap(FST<BytesRef> fst, boolean ignoreCase) Creates a newStemmerOverrideFilter.StemmerOverrideMap -
Uses of BytesRef in org.apache.lucene.analysis.payloads
Fields in org.apache.lucene.analysis.payloads declared as BytesRefMethods in org.apache.lucene.analysis.payloads that return BytesRefModifier and TypeMethodDescriptionAbstractEncoder.encode(char[] buffer) FloatEncoder.encode(char[] buffer, int offset, int length) IdentityEncoder.encode(char[] buffer, int offset, int length) IntegerEncoder.encode(char[] buffer, int offset, int length) PayloadEncoder.encode(char[] buffer) PayloadEncoder.encode(char[] buffer, int offset, int length) Convert a char array to aBytesRef -
Uses of BytesRef in org.apache.lucene.analysis.synonym
Fields in org.apache.lucene.analysis.synonym declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefSynonymFilter.scratchBytesDeprecated.private final BytesRefSynonymGraphFilter.scratchBytesFields in org.apache.lucene.analysis.synonym with type parameters of type BytesRefModifier and TypeFieldDescriptionSynonymFilter.fstDeprecated.SynonymGraphFilter.fstSynonymMap.fstmap<input word, list<ord>>SynonymFilter.scratchArcDeprecated.SynonymGraphFilter.scratchArcMethods in org.apache.lucene.analysis.synonym with parameters of type BytesRefModifier and TypeMethodDescriptionprivate voidDeprecated.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 BytesRefModifierConstructorDescriptionSynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext) -
Uses of BytesRef in org.apache.lucene.analysis.synonym.word2vec
Fields in org.apache.lucene.analysis.synonym.word2vec declared as BytesRefMethods in org.apache.lucene.analysis.synonym.word2vec that return BytesRefModifier and TypeMethodDescription(package private) static BytesRefDl4jModelReader.decodeB64Term(String term) Word2VecModel.termValue(int targetOrd) Methods in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRefModifier and TypeMethodDescriptionWord2VecSynonymProvider.getSynonyms(BytesRef term, int maxSynonymsPerTerm, float minAcceptedSimilarity) float[]Word2VecModel.vectorValue(BytesRef term) Constructors in org.apache.lucene.analysis.synonym.word2vec with parameters of type BytesRefModifierConstructorDescriptionTermAndBoost(BytesRef term, float boost) Creates a new TermAndBoost -
Uses of BytesRef in org.apache.lucene.analysis.tokenattributes
Fields in org.apache.lucene.analysis.tokenattributes declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRefBytesTermAttributeImpl.bytesprivate BytesRefPayloadAttributeImpl.payloadMethods in org.apache.lucene.analysis.tokenattributes that return BytesRefModifier and TypeMethodDescriptionBytesTermAttributeImpl.getBytesRef()CharTermAttributeImpl.getBytesRef()TermToBytesRefAttribute.getBytesRef()Retrieve this attribute's BytesRef.PayloadAttribute.getPayload()Returns this Token's payload.PayloadAttributeImpl.getPayload()Methods in org.apache.lucene.analysis.tokenattributes with parameters of type BytesRefModifier and TypeMethodDescriptionvoidBytesTermAttribute.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 BytesRefModifierConstructorDescriptionPayloadAttributeImpl(BytesRef payload) Initialize this attribute with the given payload. -
Uses of BytesRef in org.apache.lucene.backward_codecs.compressing
Methods in org.apache.lucene.backward_codecs.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoidCompressionMode.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. -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene40.blocktree
Fields in org.apache.lucene.backward_codecs.lucene40.blocktree declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefIntersectTermsEnum.commonSuffix(package private) final BytesRefFieldReader.maxTerm(package private) final BytesRefFieldReader.minTerm(package private) static final BytesRefLucene40BlockTreeTermsReader.NO_OUTPUT(package private) BytesRefIntersectTermsEnumFrame.outputPrefix(package private) final BytesRefFieldReader.rootCodeprivate BytesRefIntersectTermsEnum.savedStartTermprivate final BytesRefIntersectTermsEnum.termFields in org.apache.lucene.backward_codecs.lucene40.blocktree with type parameters of type BytesRefModifier and TypeFieldDescriptionIntersectTermsEnumFrame.arcSegmentTermsEnumFrame.arcLucene40BlockTreeTermsReader.FST_OUTPUTSIntersectTermsEnum.fstOutputsFieldReader.indexMethods in org.apache.lucene.backward_codecs.lucene40.blocktree that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefIntersectTermsEnum._next()FieldReader.getMax()FieldReader.getMin()IntersectTermsEnum.next()SegmentTermsEnum.next()private static BytesRefLucene40BlockTreeTermsReader.readBytesRef(IndexInput in) IntersectTermsEnum.term()SegmentTermsEnum.term()Methods in org.apache.lucene.backward_codecs.lucene40.blocktree that return types with arguments of type BytesRefModifier and TypeMethodDescriptionIntersectTermsEnum.getArc(int ord) SegmentTermsEnum.getArc(int ord) Methods in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRefModifier and TypeMethodDescriptionFieldReader.intersect(CompiledAutomaton compiled, BytesRef startTerm) (package private) voidprivate booleanSegmentTermsEnumFrame.prefixMatches(BytesRef target) (package private) SegmentTermsEnumFramevoidSegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) SegmentTermsEnumFrame.scanToTerm(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermLeaf(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target, boolean exactOnly) booleanbooleanvoidprivate voidIntersectTermsEnum.seekToStartTerm(BytesRef target) voidSegmentTermsEnumFrame.setFloorData(ByteArrayDataInput in, BytesRef source) private booleanIntersectTermsEnum.setSavedStartTerm(BytesRef startTerm) (package private) voidMethod parameters in org.apache.lucene.backward_codecs.lucene40.blocktree with type arguments of type BytesRefModifier and TypeMethodDescription(package private) SegmentTermsEnumFrame(package private) SegmentTermsEnumFrameConstructors in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type BytesRefModifierConstructorDescription(package private)FieldReader(Lucene40BlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, BytesRef rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput metaIn, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) IntersectTermsEnum(FieldReader fr, Automaton automaton, RunAutomaton runAutomaton, BytesRef commonSuffix, BytesRef startTerm) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene50
Fields in org.apache.lucene.backward_codecs.lucene50 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefLucene50PostingsReader.BlockImpactsEverythingEnum.payload(package private) final BytesRefLucene50PostingsReader.EverythingEnum.payloadMethods in org.apache.lucene.backward_codecs.lucene50 that return BytesRefModifier and TypeMethodDescriptionLucene50PostingsReader.BlockDocsEnum.getPayload()Lucene50PostingsReader.BlockImpactsEverythingEnum.getPayload()Lucene50PostingsReader.BlockImpactsPostingsEnum.getPayload()Lucene50PostingsReader.EverythingEnum.getPayload() -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene50.compressing
Fields in org.apache.lucene.backward_codecs.lucene50.compressing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefLucene50CompressingStoredFieldsReader.BlockState.bytesprivate final BytesRefLucene50CompressingTermVectorsReader.TVPostingsEnum.payloadprivate final BytesRefLucene50CompressingTermVectorsReader.TVFields.payloadBytesprivate final BytesRefLucene50CompressingTermVectorsReader.TVTerms.payloadBytesprivate BytesRefLucene50CompressingTermVectorsReader.TVTermsEnum.payloadsprivate final BytesRefLucene50CompressingStoredFieldsReader.BlockState.spareprivate final BytesRefLucene50CompressingTermVectorsReader.TVFields.suffixBytesprivate final BytesRefLucene50CompressingTermVectorsReader.TVTermsEnum.termprivate final BytesRefLucene50CompressingTermVectorsReader.TVTerms.termBytesMethods in org.apache.lucene.backward_codecs.lucene50.compressing that return BytesRefModifier and TypeMethodDescriptionLucene50CompressingTermVectorsReader.TVPostingsEnum.getPayload()Lucene50CompressingTermVectorsReader.TVTermsEnum.next()Lucene50CompressingTermVectorsReader.TVTermsEnum.term()Methods in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoidLucene50CompressingTermVectorsReader.TVPostingsEnum.reset(int freq, int positionIndex, int[] positions, int[] startOffsets, int[] lengths, BytesRef payloads, int[] payloadIndex) (package private) voidLucene50CompressingTermVectorsReader.TVTermsEnum.reset(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloads, ByteArrayDataInput in) Constructors in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type BytesRefModifierConstructorDescriptionTVFields(int[] fieldNums, int[] fieldFlags, int[] fieldNumOffs, int[] numTerms, int[] fieldLengths, int[][] prefixLengths, int[][] suffixLengths, int[][] termFreqs, int[][] positionIndex, int[][] positions, int[][] startOffsets, int[][] lengths, BytesRef payloadBytes, int[][] payloadIndex, BytesRef suffixBytes) (package private)TVTerms(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloadBytes, BytesRef termBytes) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene70
Fields in org.apache.lucene.backward_codecs.lucene70 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefLucene70DocValuesProducer.TermsDict.termMethods in org.apache.lucene.backward_codecs.lucene70 that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefLucene70DocValuesProducer.TermsDict.getFirstTermFromBlock(long block) private BytesRefLucene70DocValuesProducer.TermsDict.getTermFromIndex(long index) Lucene70DocValuesProducer.BaseSortedDocValues.lookupOrd(int ord) Lucene70DocValuesProducer.BaseSortedSetDocValues.lookupOrd(long ord) Lucene70DocValuesProducer.TermsDict.next()Lucene70DocValuesProducer.TermsDict.term()Methods in org.apache.lucene.backward_codecs.lucene70 with parameters of type BytesRefModifier and TypeMethodDescriptionintLucene70DocValuesProducer.BaseSortedDocValues.lookupTerm(BytesRef key) longLucene70DocValuesProducer.BaseSortedSetDocValues.lookupTerm(BytesRef key) private longprivate longLucene70DocValuesProducer.TermsDict.seekTermsIndex(BytesRef text) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene80
Fields in org.apache.lucene.backward_codecs.lucene80 declared as BytesRefModifier and TypeFieldDescription(package private) BytesRefLucene80DocValuesProducer.TermsDict.blockBuffer(package private) final BytesRefLucene80DocValuesProducer.TermsDict.termprivate final BytesRefLucene80DocValuesProducer.BinaryDecoder.uncompressedBytesRefMethods in org.apache.lucene.backward_codecs.lucene80 that return BytesRefModifier and TypeMethodDescription(package private) BytesRefLucene80DocValuesProducer.BinaryDecoder.decode(int docNumber) private BytesRefLucene80DocValuesProducer.TermsDict.getFirstTermFromBlock(long block) private BytesRefLucene80DocValuesProducer.TermsDict.getTermFromIndex(long index) Lucene80DocValuesProducer.BaseSortedDocValues.lookupOrd(int ord) Lucene80DocValuesProducer.BaseSortedSetDocValues.lookupOrd(long ord) Lucene80DocValuesProducer.TermsDict.next()Lucene80DocValuesProducer.TermsDict.term()Methods in org.apache.lucene.backward_codecs.lucene80 with parameters of type BytesRefModifier and TypeMethodDescription(package private) voidintLucene80DocValuesProducer.BaseSortedDocValues.lookupTerm(BytesRef key) longLucene80DocValuesProducer.BaseSortedSetDocValues.lookupTerm(BytesRef key) private longprivate longLucene80DocValuesProducer.TermsDict.seekTermsIndex(BytesRef text) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene84
Fields in org.apache.lucene.backward_codecs.lucene84 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefLucene84PostingsReader.BlockImpactsEverythingEnum.payload(package private) final BytesRefLucene84PostingsReader.EverythingEnum.payloadMethods in org.apache.lucene.backward_codecs.lucene84 that return BytesRefModifier and TypeMethodDescriptionLucene84PostingsReader.BlockDocsEnum.getPayload()Lucene84PostingsReader.BlockImpactsDocsEnum.getPayload()Lucene84PostingsReader.BlockImpactsEverythingEnum.getPayload()Lucene84PostingsReader.BlockImpactsPostingsEnum.getPayload()Lucene84PostingsReader.EverythingEnum.getPayload() -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene87
Methods in org.apache.lucene.backward_codecs.lucene87 with parameters of type BytesRefModifier and TypeMethodDescriptionvoidDeflateWithPresetDictCompressionMode.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, Inflater decompressor, BytesRef bytes) -
Uses of BytesRef in org.apache.lucene.backward_codecs.lucene90
Fields in org.apache.lucene.backward_codecs.lucene90 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefLucene90PostingsReader.BlockImpactsEverythingEnum.payload(package private) final BytesRefLucene90PostingsReader.EverythingEnum.payloadMethods in org.apache.lucene.backward_codecs.lucene90 that return BytesRefModifier and TypeMethodDescriptionLucene90PostingsReader.BlockDocsEnum.getPayload()Lucene90PostingsReader.BlockImpactsDocsEnum.getPayload()Lucene90PostingsReader.BlockImpactsEverythingEnum.getPayload()Lucene90PostingsReader.BlockImpactsPostingsEnum.getPayload()Lucene90PostingsReader.EverythingEnum.getPayload()Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type BytesRefModifier and TypeMethodDescriptionvoidLucene90PostingsWriter.addPosition(int position, BytesRef payload, int startOffset, int endOffset) -
Uses of BytesRef in org.apache.lucene.classification
Fields in org.apache.lucene.classification with type parameters of type BytesRefModifier and TypeFieldDescriptionCachingNaiveBayesClassifier.cclassesCachingNaiveBayesClassifier.classTermFreqCachingNaiveBayesClassifier.termCClassHitCacheMethods in org.apache.lucene.classification that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBM25NBClassifier.assignClass(String inputDocument) KNearestFuzzyClassifier.assignClass(String text) KNearestNeighborClassifier.assignClass(String text) SimpleNaiveBayesClassifier.assignClass(String inputDocument) private List<ClassificationResult<BytesRef>> BM25NBClassifier.assignClassNormalizedList(String inputDocument) Calculate probabilities for all classes for a given input textprotected List<ClassificationResult<BytesRef>> CachingNaiveBayesClassifier.assignClassNormalizedList(String inputDocument) Transforms values into a range between 0 and 1protected List<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.assignClassNormalizedList(String inputDocument) Calculate probabilities for all classes for a given input textprivate List<ClassificationResult<BytesRef>> KNearestFuzzyClassifier.buildListFromTopDocs(TopDocs topDocs) build a list of classification results from search resultsprotected List<ClassificationResult<BytesRef>> KNearestNeighborClassifier.buildListFromTopDocs(TopDocs topDocs) build a list of classification results from search resultsprivate List<ClassificationResult<BytesRef>> CachingNaiveBayesClassifier.calculateLogLikelihood(String[] tokenizedText) protected ClassificationResult<BytesRef> KNearestNeighborClassifier.classifyFromTopDocs(TopDocs knnResults) TODOBM25NBClassifier.getClasses(String text) BM25NBClassifier.getClasses(String text, int max) KNearestFuzzyClassifier.getClasses(String text) KNearestFuzzyClassifier.getClasses(String text, int max) KNearestNeighborClassifier.getClasses(String text) KNearestNeighborClassifier.getClasses(String text, int max) SimpleNaiveBayesClassifier.getClasses(String text) SimpleNaiveBayesClassifier.getClasses(String text, int max) CachingNaiveBayesClassifier.getWordFreqForClassess(String word) private ArrayList<ClassificationResult<BytesRef>> BM25NBClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableprotected ArrayList<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableMethod parameters in org.apache.lucene.classification with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate ArrayList<ClassificationResult<BytesRef>> BM25NBClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score availableprotected ArrayList<ClassificationResult<BytesRef>> SimpleNaiveBayesClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses) Normalize the classification results based on the max score available -
Uses of BytesRef in org.apache.lucene.classification.document
Methods in org.apache.lucene.classification.document that return types with arguments of type BytesRefModifier and TypeMethodDescriptionKNearestNeighborDocumentClassifier.assignClass(Document document) SimpleNaiveBayesDocumentClassifier.assignClass(Document document) private List<ClassificationResult<BytesRef>> SimpleNaiveBayesDocumentClassifier.assignNormClasses(Document inputDocument) KNearestNeighborDocumentClassifier.getClasses(Document document) KNearestNeighborDocumentClassifier.getClasses(Document document, int max) SimpleNaiveBayesDocumentClassifier.getClasses(Document document) SimpleNaiveBayesDocumentClassifier.getClasses(Document document, int max) -
Uses of BytesRef in org.apache.lucene.codecs
Fields in org.apache.lucene.codecs declared as BytesRefMethods in org.apache.lucene.codecs that return BytesRefModifier and TypeMethodDescriptionDocValuesConsumer.MergedTermsEnum.next()DocValuesConsumer.MergedTermsEnum.term()Methods in org.apache.lucene.codecs with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusabstract 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 voidSetpackedValuewith a reference to the packed bytes of the i-th value.booleanvoidabstract voidAdds a term and its term frequencyfreq.abstract voidStoredFieldsWriter.writeField(FieldInfo info, BytesRef value) Writes a stored binary value.abstract BlockTermStatePostingsWriterBase.writeTerm(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) Write all postings for one term; use the providedTermsEnumto pull aPostingsEnum.final 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 BytesRefModifier and TypeFieldDescriptionprivate BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum.nextIndexTerm(package private) BytesRefBlockTermsReader.FieldAndTerm.termprivate final BytesRefFixedGapTermsIndexReader.IndexEnum.termMethods in org.apache.lucene.codecs.blockterms that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefBlockTermsReader.FieldReader.SegmentTermsEnum._next()BlockTermsReader.FieldReader.SegmentTermsEnum.next()BlockTermsReader.FieldReader.SegmentTermsEnum.term()FixedGapTermsIndexReader.IndexEnum.term()abstract BytesRefTermsIndexReaderBase.FieldIndexEnum.term()VariableGapTermsIndexReader.IndexEnum.term()Methods in org.apache.lucene.codecs.blockterms with parameters of type BytesRefModifier and TypeMethodDescriptionvoidFixedGapTermsIndexWriter.SimpleFieldWriter.add(BytesRef text, TermStats stats, long termsFilePointer) abstract voidvoidVariableGapTermsIndexWriter.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 indexedlongabstract longSeeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that termlongvoidprivate 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.blocktreeords
Fields in org.apache.lucene.codecs.blocktreeords declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRefFSTOrdsOutputs.Output.bytesfinal BytesRefOrdsBlockTreeTermsWriter.FieldMetaData.maxTerm(package private) final BytesRefOrdsFieldReader.maxTermfinal BytesRefOrdsBlockTreeTermsWriter.FieldMetaData.minTerm(package private) final BytesRefOrdsFieldReader.minTermprivate static final BytesRefFSTOrdsOutputs.NO_BYTESfinal BytesRefOrdsBlockTreeTermsWriter.PendingBlock.prefixprivate BytesRefOrdsIntersectTermsEnum.savedStartTermprivate final BytesRefOrdsIntersectTermsEnum.termMethods in org.apache.lucene.codecs.blocktreeords that return BytesRefModifier and TypeMethodDescriptionOrdsFieldReader.getMax()OrdsFieldReader.getMin()OrdsIntersectTermsEnum.next()OrdsSegmentTermsEnum.next()private static BytesRefOrdsBlockTreeTermsReader.readBytesRef(IndexInput in) OrdsIntersectTermsEnum.term()OrdsSegmentTermsEnum.term()Methods in org.apache.lucene.codecs.blocktreeords with parameters of type BytesRefModifier and TypeMethodDescriptionOrdsFieldReader.intersect(CompiledAutomaton compiled, BytesRef startTerm) private booleanOrdsSegmentTermsEnumFrame.prefixMatches(BytesRef target) private voidPushes the new term to the top of the stack, and writes new blocks.voidOrdsSegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) OrdsSegmentTermsEnumFrame.scanToTerm(BytesRef target, boolean exactOnly) OrdsSegmentTermsEnumFrame.scanToTermLeaf(BytesRef target, boolean exactOnly) OrdsSegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target, boolean exactOnly) booleanbooleanvoidprivate 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 BytesRefModifierConstructorDescriptionFieldMetaData(FieldInfo fieldInfo, FSTOrdsOutputs.Output rootCode, long numTerms, long indexStartFP, long sumTotalTermFreq, long sumDocFreq, int docCount, BytesRef minTerm, BytesRef maxTerm) (package private)OrdsFieldReader(OrdsBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, FSTOrdsOutputs.Output rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) OrdsIntersectTermsEnum(OrdsFieldReader fr, CompiledAutomaton compiled, BytesRef startTerm) PendingBlock(BytesRef prefix, long fp, boolean hasTerms, long totalTermCount, boolean isFloor, int floorLeadByte, List<OrdsBlockTreeTermsWriter.SubIndex> subIndices) PendingTerm(BytesRef term, BlockTermState state) -
Uses of BytesRef in org.apache.lucene.codecs.bloom
Methods in org.apache.lucene.codecs.bloom that return BytesRefModifier and TypeMethodDescriptionBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.getMax()BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.getMin()BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.next()BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.term()Methods in org.apache.lucene.codecs.bloom with parameters of type BytesRefModifier and TypeMethodDescriptionvoidRecords a value in the set.The main method required for a Bloom filter which, given a value determines set membership.abstract longHashes the contents of the referenced bytesfinal longBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) BloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.seekCeil(BytesRef text) booleanBloomFilteringPostingsFormat.BloomFilteredFieldsProducer.BloomFilteredTermsEnum.seekExact(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoidCompressionMode.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. -
Uses of BytesRef in org.apache.lucene.codecs.lucene90
Fields in org.apache.lucene.codecs.lucene90 declared as BytesRefModifier and TypeFieldDescription(package private) BytesRefLucene90DocValuesProducer.TermsDict.blockBuffer(package private) final BytesRefLucene90DocValuesProducer.TermsDict.termMethods in org.apache.lucene.codecs.lucene90 that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefLucene90DocValuesProducer.TermsDict.getFirstTermFromBlock(long block) private BytesRefLucene90DocValuesProducer.TermsDict.getTermFromIndex(long index) Lucene90DocValuesProducer.BaseSortedDocValues.lookupOrd(int ord) Lucene90DocValuesProducer.BaseSortedSetDocValues.lookupOrd(long ord) Lucene90DocValuesProducer.TermsDict.next()Lucene90DocValuesProducer.TermsDict.term()Methods in org.apache.lucene.codecs.lucene90 with parameters of type BytesRefModifier and TypeMethodDescriptionvoidDeflateWithPresetDictCompressionMode.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, Inflater decompressor, BytesRef bytes) intLucene90DocValuesProducer.BaseSortedDocValues.lookupTerm(BytesRef key) longLucene90DocValuesProducer.BaseSortedSetDocValues.lookupTerm(BytesRef key) private longprivate longLucene90DocValuesProducer.TermsDict.seekTermsIndex(BytesRef text) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.blocktree
Fields in org.apache.lucene.codecs.lucene90.blocktree declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefIntersectTermsEnum.commonSuffix(package private) BytesRefSegmentTermsEnum.OutputAccumulator.current(package private) static final BytesRefLucene90BlockTreeTermsWriter.EMPTY_BYTES_REF(package private) final BytesRefFieldReader.maxTerm(package private) final BytesRefFieldReader.minTerm(package private) static final BytesRefLucene90BlockTreeTermsReader.NO_OUTPUT(package private) BytesRef[]SegmentTermsEnum.OutputAccumulator.outputsfinal BytesRefLucene90BlockTreeTermsWriter.PendingBlock.prefix(package private) final BytesRefFieldReader.rootCodeprivate BytesRefIntersectTermsEnum.savedStartTermprivate final BytesRefIntersectTermsEnum.termFields in org.apache.lucene.codecs.lucene90.blocktree with type parameters of type BytesRefModifier and TypeFieldDescriptionIntersectTermsEnumFrame.arcSegmentTermsEnumFrame.arcLucene90BlockTreeTermsReader.FST_OUTPUTSFieldReader.indexLucene90BlockTreeTermsWriter.PendingBlock.indexLucene90BlockTreeTermsWriter.PendingBlock.subIndicesMethods in org.apache.lucene.codecs.lucene90.blocktree that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefIntersectTermsEnum._next()FieldReader.getMax()FieldReader.getMin()IntersectTermsEnum.next()SegmentTermsEnum.next()private static BytesRefLucene90BlockTreeTermsReader.readBytesRef(IndexInput in) IntersectTermsEnum.term()SegmentTermsEnum.term()Methods in org.apache.lucene.codecs.lucene90.blocktree that return types with arguments of type BytesRefModifier and TypeMethodDescriptionIntersectTermsEnum.getArc(int ord) SegmentTermsEnum.getArc(int ord) Methods in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRefModifier and TypeMethodDescriptionSegmentTermsEnumFrame.binarySearchTermLeaf(BytesRef target, boolean exactOnly) FieldReader.intersect(CompiledAutomaton compiled, BytesRef startTerm) (package private) void(package private) voidprivate booleanSegmentTermsEnumFrame.prefixMatches(BytesRef target) (package private) void(package private) SegmentTermsEnumFrameprivate voidPushes the new term to the top of the stack, and writes new blocks.voidSegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) SegmentTermsEnumFrame.scanToTerm(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermLeaf(BytesRef target, boolean exactOnly) SegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target, boolean exactOnly) booleanbooleanvoidprivate voidIntersectTermsEnum.seekToStartTerm(BytesRef target) private booleanIntersectTermsEnum.setSavedStartTerm(BytesRef startTerm) (package private) voidvoidLucene90BlockTreeTermsWriter.TermsWriter.write(BytesRef text, TermsEnum termsEnum, NormsProducer norms) Writes one term's worth of postings.private static voidLucene90BlockTreeTermsWriter.writeBytesRef(DataOutput out, BytesRef bytes) Method parameters in org.apache.lucene.codecs.lucene90.blocktree with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate voidLucene90BlockTreeTermsWriter.PendingBlock.append(FSTCompiler<BytesRef> fstCompiler, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef) private voidLucene90BlockTreeTermsWriter.PendingBlock.append(FSTCompiler<BytesRef> fstCompiler, FST<BytesRef> subIndex, IntsRefBuilder scratchIntsRef) (package private) SegmentTermsEnumFrame(package private) SegmentTermsEnumFrame(package private) SegmentTermsEnumFrameConstructors in org.apache.lucene.codecs.lucene90.blocktree with parameters of type BytesRefModifierConstructorDescription(package private)FieldReader(Lucene90BlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, BytesRef rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput metaIn, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) IntersectTermsEnum(FieldReader fr, Automaton automaton, RunAutomaton runAutomaton, BytesRef commonSuffix, BytesRef startTerm) PendingBlock(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<BytesRef>> subIndices) PendingTerm(BytesRef term, BlockTermState state) Constructor parameters in org.apache.lucene.codecs.lucene90.blocktree with type arguments of type BytesRefModifierConstructorDescriptionPendingBlock(BytesRef prefix, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<BytesRef>> subIndices) -
Uses of BytesRef in org.apache.lucene.codecs.lucene90.compressing
Fields in org.apache.lucene.codecs.lucene90.compressing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefLucene90CompressingStoredFieldsReader.BlockState.bytesprivate final BytesRefLucene90CompressingTermVectorsWriter.lastTermprivate final BytesRefLucene90CompressingTermVectorsReader.TVPostingsEnum.payloadprivate final BytesRefLucene90CompressingTermVectorsReader.TVFields.payloadBytesprivate final BytesRefLucene90CompressingTermVectorsReader.TVTerms.payloadBytesprivate BytesRefLucene90CompressingTermVectorsReader.TVTermsEnum.payloadsprivate final BytesRefLucene90CompressingStoredFieldsReader.BlockState.spareprivate final BytesRefLucene90CompressingTermVectorsReader.TVFields.suffixBytesprivate final BytesRefLucene90CompressingTermVectorsReader.TVTermsEnum.termprivate final BytesRefLucene90CompressingTermVectorsReader.TVTerms.termBytesMethods in org.apache.lucene.codecs.lucene90.compressing that return BytesRefModifier and TypeMethodDescriptionLucene90CompressingTermVectorsReader.TVPostingsEnum.getPayload()Lucene90CompressingTermVectorsReader.TVTermsEnum.next()Lucene90CompressingTermVectorsReader.TVTermsEnum.term()Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRefModifier and TypeMethodDescriptionvoidLucene90CompressingTermVectorsWriter.addPosition(int position, int startOffset, int endOffset, BytesRef payload) voidLucene90CompressingTermVectorsReader.TVPostingsEnum.reset(int freq, int positionIndex, int[] positions, int[] startOffsets, int[] lengths, BytesRef payloads, int[] payloadIndex) (package private) voidLucene90CompressingTermVectorsReader.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) voidvoidLucene90CompressingStoredFieldsWriter.writeField(FieldInfo info, BytesRef value) Constructors in org.apache.lucene.codecs.lucene90.compressing with parameters of type BytesRefModifierConstructorDescriptionTVFields(int[] fieldNums, int[] fieldFlags, int[] fieldNumOffs, int[] numTerms, int[] fieldLengths, int[][] prefixLengths, int[][] suffixLengths, int[][] termFreqs, int[][] positionIndex, int[][] positions, int[][] startOffsets, int[][] lengths, BytesRef payloadBytes, int[][] payloadIndex, BytesRef suffixBytes) (package private)TVTerms(int numTerms, int flags, int[] prefixLengths, int[] suffixLengths, int[] termFreqs, int[] positionIndex, int[] positions, int[] startOffsets, int[] lengths, int[] payloadIndex, BytesRef payloadBytes, BytesRef termBytes) -
Uses of BytesRef in org.apache.lucene.codecs.lucene99
Fields in org.apache.lucene.codecs.lucene99 declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefLucene99PostingsReader.BlockImpactsEverythingEnum.payload(package private) final BytesRefLucene99PostingsReader.EverythingEnum.payloadMethods in org.apache.lucene.codecs.lucene99 that return BytesRefModifier and TypeMethodDescriptionLucene99PostingsReader.BlockDocsEnum.getPayload()Lucene99PostingsReader.BlockImpactsDocsEnum.getPayload()Lucene99PostingsReader.BlockImpactsEverythingEnum.getPayload()Lucene99PostingsReader.BlockImpactsPostingsEnum.getPayload()Lucene99PostingsReader.EverythingEnum.getPayload()Methods in org.apache.lucene.codecs.lucene99 with parameters of type BytesRefModifier and TypeMethodDescriptionvoidLucene99PostingsWriter.addPosition(int position, BytesRef payload, int startOffset, int endOffset) -
Uses of BytesRef in org.apache.lucene.codecs.memory
Fields in org.apache.lucene.codecs.memory declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefDirectPostingsFormat.HighFreqPostingsEnum.payloadprivate final BytesRefDirectPostingsFormat.LowFreqPostingsEnum.payloadprivate final BytesRefDirectPostingsFormat.DirectField.DirectIntersectTermsEnum.scratchprivate final BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum.scratch(package private) BytesRefFSTTermsReader.TermsReader.SegmentTermsEnum.termMethods in org.apache.lucene.codecs.memory that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum.doSeekCeil(BytesRef target) DirectPostingsFormat.HighFreqDocsEnum.getPayload()DirectPostingsFormat.HighFreqPostingsEnum.getPayload()DirectPostingsFormat.LowFreqDocsEnum.getPayload()DirectPostingsFormat.LowFreqDocsEnumNoPos.getPayload()DirectPostingsFormat.LowFreqDocsEnumNoTF.getPayload()DirectPostingsFormat.LowFreqPostingsEnum.getPayload()DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.next()DirectPostingsFormat.DirectField.DirectTermsEnum.next()FSTTermsReader.TermsReader.IntersectTermsEnum.next()FSTTermsReader.TermsReader.SegmentTermsEnum.next()private BytesRefDirectPostingsFormat.DirectField.DirectTermsEnum.setTerm()DirectPostingsFormat.DirectField.DirectIntersectTermsEnum.term()DirectPostingsFormat.DirectField.DirectTermsEnum.term()FSTTermsReader.TermsReader.IntersectTermsEnum.term()FSTTermsReader.TermsReader.SegmentTermsEnum.term()Methods in org.apache.lucene.codecs.memory with parameters of type BytesRefModifier and TypeMethodDescription(package private) intprivate BytesRefFSTTermsReader.TermsReader.IntersectTermsEnum.doSeekCeil(BytesRef target) private intvoidFSTTermsWriter.TermsWriter.finishTerm(BytesRef text, BlockTermState state) DirectPostingsFormat.DirectField.intersect(CompiledAutomaton compiled, BytesRef startTerm) FSTTermsReader.TermsReader.intersect(CompiledAutomaton compiled, BytesRef startTerm) booleanvoidbooleanvoidConstructors in org.apache.lucene.codecs.memory with parameters of type BytesRefModifierConstructorDescriptionDirectIntersectTermsEnum(CompiledAutomaton compiled, BytesRef startTerm) (package private)IntersectTermsEnum(CompiledAutomaton compiled, BytesRef startTerm) -
Uses of BytesRef in org.apache.lucene.codecs.simpletext
Fields in org.apache.lucene.codecs.simpletext declared as BytesRefModifier and TypeFieldDescription(package private) static final BytesRefSimpleTextFieldInfosFormat.ATT_KEY(package private) static final BytesRefSimpleTextFieldInfosFormat.ATT_VALUEprivate final BytesRefSimpleTextKnnVectorsReader.SimpleTextByteVectorValues.binaryValuestatic final BytesRefSimpleTextPointsWriter.BLOCK_COUNTstatic final BytesRefSimpleTextPointsWriter.BLOCK_DOC_IDstatic final BytesRefSimpleTextPointsWriter.BLOCK_FPstatic final BytesRefSimpleTextPointsWriter.BLOCK_VALUEstatic final BytesRefSimpleTextPointsWriter.BYTES_PER_DIM(package private) static final BytesRefSimpleTextUtil.CHECKSUM(package private) static final BytesRefSimpleTextSkipWriter.CHILD_POINTER(package private) static final BytesRefSimpleTextFieldInfosFormat.DATA_DIM_COUNT(package private) static final BytesRefSimpleTextFieldInfosFormat.DIM_NUM_BYTES(package private) static final BytesRefSimpleTextFieldsWriter.DOC(package private) static final BytesRefSimpleTextLiveDocsFormat.DOC(package private) static final BytesRefSimpleTextStoredFieldsWriter.DOC(package private) static final BytesRefSimpleTextTermVectorsWriter.DOCstatic final BytesRefSimpleTextPointsWriter.DOC_COUNT(package private) static final BytesRefSimpleTextFieldInfosFormat.DOCVALUES(package private) static final BytesRefSimpleTextFieldInfosFormat.DOCVALUES_GENprivate static final BytesRefSimpleTextKnnVectorsReader.EMPTY(package private) static final BytesRefSimpleTextDocValuesWriter.END(package private) static final BytesRefSimpleTextFieldsWriter.END(package private) static final BytesRefSimpleTextLiveDocsFormat.ENDstatic final BytesRefSimpleTextPointsWriter.END(package private) static final BytesRefSimpleTextStoredFieldsWriter.END(package private) static final BytesRefSimpleTextTermVectorsWriter.END(package private) static final BytesRefSimpleTextFieldsWriter.END_OFFSET(package private) static final BytesRefSimpleTextTermVectorsWriter.ENDOFFSET(package private) static final BytesRefSimpleTextDocValuesWriter.FIELD(package private) static final BytesRefSimpleTextFieldsWriter.FIELD(package private) static final BytesRefSimpleTextStoredFieldsWriter.FIELD(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDstatic final BytesRefSimpleTextPointsWriter.FIELD_COUNTstatic final BytesRefSimpleTextPointsWriter.FIELD_FPstatic final BytesRefSimpleTextPointsWriter.FIELD_FP_NAME(package private) static final BytesRefSimpleTextKnnVectorsWriter.FIELD_NAME(package private) static final BytesRefSimpleTextKnnVectorsWriter.FIELD_NUMBER(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDNAME(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDOFFSETS(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDPAYLOADS(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDPOSITIONS(package private) static final BytesRefSimpleTextTermVectorsWriter.FIELDTERMCOUNT(package private) static final BytesRefSimpleTextFieldsWriter.FREQ(package private) static final BytesRefSimpleTextSkipWriter.FREQ(package private) static final BytesRefSimpleTextCompoundFormat.HEADER(package private) static final BytesRefSimpleTextSkipWriter.IMPACT(package private) static final BytesRefSimpleTextSkipWriter.IMPACTS(package private) static final BytesRefSimpleTextSkipWriter.IMPACTS_ENDstatic final BytesRefSimpleTextPointsWriter.INDEX_COUNT(package private) static final BytesRefSimpleTextFieldInfosFormat.INDEX_DIM_COUNT(package private) static final BytesRefSimpleTextFieldInfosFormat.INDEXOPTIONS(package private) static final BytesRefSimpleTextDocValuesWriter.LENGTH(package private) static final BytesRefSimpleTextSkipWriter.LEVEL(package private) static final BytesRefSimpleTextSkipWriter.LEVEL_LENGTHstatic final BytesRefSimpleTextPointsWriter.MAX_LEAF_POINTSstatic final BytesRefSimpleTextPointsWriter.MAX_VALUE(package private) static final BytesRefSimpleTextDocValuesWriter.MAXLENGTHstatic final BytesRefSimpleTextPointsWriter.MIN_VALUE(package private) static final BytesRefSimpleTextDocValuesWriter.MINVALUE(package private) static final BytesRefSimpleTextFieldInfosFormat.NAME(package private) static final BytesRefSimpleTextStoredFieldsWriter.NAME(package private) static final BytesRefSimpleTextSkipWriter.NORM(package private) static final BytesRefSimpleTextFieldInfosFormat.NORMS(package private) static final BytesRefSimpleTextFieldInfosFormat.NUM_ATTSstatic final BytesRefSimpleTextPointsWriter.NUM_DATA_DIMSstatic final BytesRefSimpleTextPointsWriter.NUM_INDEX_DIMS(package private) static final BytesRefSimpleTextFieldInfosFormat.NUMBER(package private) static final BytesRefSimpleTextFieldInfosFormat.NUMFIELDS(package private) static final BytesRefSimpleTextTermVectorsWriter.NUMFIELDS(package private) static final BytesRefSimpleTextDocValuesWriter.NUMVALUES(package private) static final BytesRefSimpleTextDocValuesWriter.ORDPATTERN(package private) static final BytesRefSimpleTextFieldInfosFormat.PARENT(package private) static final BytesRefSimpleTextDocValuesWriter.PATTERNprivate BytesRefSimpleTextFieldsReader.SimpleTextPostingsEnum.payload(package private) static final BytesRefSimpleTextFieldsWriter.PAYLOAD(package private) static final BytesRefSimpleTextTermVectorsWriter.PAYLOADprivate BytesRef[]SimpleTextTermVectorsReader.SimpleTVPostings.payloadsprivate BytesRef[]SimpleTextTermVectorsReader.SimpleTVPostingsEnum.payloads(package private) static final BytesRefSimpleTextFieldInfosFormat.PAYLOADSstatic final BytesRefSimpleTextPointsWriter.POINT_COUNT(package private) static final BytesRefSimpleTextFieldsWriter.POS(package private) static final BytesRefSimpleTextTermVectorsWriter.POSITION(package private) final BytesRefSimpleTextBKDWriter.scratchBytesRef1(package private) final BytesRefSimpleTextBKDWriter.scratchBytesRef2(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_ATT_KEY(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_ATT_VALUE(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_DIAG_KEY(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_DIAG_VALUE(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_DOCCOUNT(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_FILE(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_HAS_BLOCKS(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_ID(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_MIN_VERSION(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_NUM_ATT(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_NUM_DIAG(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_NUM_FILES(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_SORT(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_SORT_BYTES(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_SORT_NAME(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_SORT_TYPE(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_USECOMPOUND(package private) static final BytesRefSimpleTextSegmentInfoFormat.SI_VERSION(package private) static final BytesRefSimpleTextKnnVectorsWriter.SIZE(package private) static final BytesRefSimpleTextLiveDocsFormat.SIZE(package private) static final BytesRefSimpleTextSkipWriter.SKIP_DOC(package private) static final BytesRefSimpleTextSkipWriter.SKIP_DOC_FP(package private) static final BytesRefSimpleTextSkipWriter.SKIP_LIST(package private) static final BytesRefSimpleTextFieldInfosFormat.SOFT_DELETESstatic final BytesRefSimpleTextPointsWriter.SPLIT_COUNTstatic final BytesRefSimpleTextPointsWriter.SPLIT_DIMstatic final BytesRefSimpleTextPointsWriter.SPLIT_VALUE(package private) static final BytesRefSimpleTextFieldsWriter.START_OFFSET(package private) static final BytesRefSimpleTextTermVectorsWriter.STARTOFFSET(package private) static final BytesRefSimpleTextFieldInfosFormat.STORETV(package private) static final BytesRefSimpleTextFieldInfosFormat.STORETVOFF(package private) static final BytesRefSimpleTextFieldInfosFormat.STORETVPOS(package private) static final BytesRefSimpleTextCompoundFormat.TABLE(package private) static final BytesRefSimpleTextCompoundFormat.TABLEEND(package private) static final BytesRefSimpleTextCompoundFormat.TABLENAME(package private) static final BytesRefSimpleTextCompoundFormat.TABLEPOS(package private) static final BytesRefSimpleTextCompoundFormat.TABLESTART(package private) static final BytesRefSimpleTextFieldsWriter.TERM(package private) static final BytesRefSimpleTextTermVectorsWriter.TERMFREQ(package private) static final BytesRefSimpleTextTermVectorsWriter.TERMTEXT(package private) static final BytesRefSimpleTextDocValuesWriter.TYPE(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_BINARY(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_DOUBLE(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_FLOAT(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_INT(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_LONG(package private) static final BytesRefSimpleTextStoredFieldsWriter.TYPE_STRING(package private) static final BytesRefSimpleTextStoredFieldsWriter.VALUE(package private) static final BytesRefSimpleTextKnnVectorsWriter.VECTOR_DATA_LENGTH(package private) static final BytesRefSimpleTextKnnVectorsWriter.VECTOR_DATA_OFFSET(package private) static final BytesRefSimpleTextKnnVectorsWriter.VECTOR_DIMENSION(package private) static final BytesRefSimpleTextFieldInfosFormat.VECTOR_ENCODING(package private) static final BytesRefSimpleTextFieldInfosFormat.VECTOR_NUM_DIMS(package private) static final BytesRefSimpleTextFieldInfosFormat.VECTOR_SIMILARITYFields in org.apache.lucene.codecs.simpletext with type parameters of type BytesRefModifier and TypeFieldDescription(package private) Map.Entry<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTermsEnum.current(package private) Iterator<Map.Entry<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings>> SimpleTextTermVectorsReader.SimpleTVTermsEnum.iterator(package private) final SortedMap<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTerms.terms(package private) SortedMap<BytesRef, SimpleTextTermVectorsReader.SimpleTVPostings> SimpleTextTermVectorsReader.SimpleTVTermsEnum.termsMethods in org.apache.lucene.codecs.simpletext that return BytesRefModifier and TypeMethodDescriptionstatic BytesRefSimpleTextUtil.fromBytesRefString(String s) Inverse oftoString().SimpleTextFieldsReader.SimpleTextDocsEnum.getPayload()SimpleTextFieldsReader.SimpleTextPostingsEnum.getPayload()SimpleTextTermVectorsReader.SimpleTVDocsEnum.getPayload()SimpleTextTermVectorsReader.SimpleTVPostingsEnum.getPayload()SimpleTextFieldsReader.SimpleTextTermsEnum.next()SimpleTextTermVectorsReader.SimpleTVTermsEnum.next()SimpleTextFieldsReader.SimpleTextTermsEnum.term()SimpleTextTermVectorsReader.SimpleTVTermsEnum.term()Methods in org.apache.lucene.codecs.simpletext with parameters of type BytesRefModifier and TypeMethodDescriptionvoidSimpleTextTermVectorsWriter.addPosition(int position, int startOffset, int endOffset, BytesRef payload) private booleanprivate intSimpleTextBKDReader.SimpleTextPointTree.parseInt(BytesRefBuilder scratch, BytesRef prefix) private intprivate intprivate intSimpleTextLiveDocsFormat.parseIntAt(BytesRef bytes, int offset, CharsRefBuilder scratch) private longprivate longprivate voidSimpleTextStoredFieldsReader.readField(BytesRef type, FieldInfo fieldInfo, StoredFieldVisitor visitor) private intSimpleTextKnnVectorsReader.readInt(IndexInput in, BytesRef field) private longSimpleTextKnnVectorsReader.readLong(IndexInput in, BytesRef field) private StringSimpleTextKnnVectorsReader.readString(IndexInput in, BytesRef field) voidSimpleTextTermVectorsReader.SimpleTVPostingsEnum.reset(int[] positions, int[] startOffsets, int[] endOffsets, BytesRef[] payloads) booleanprivate booleanSimpleTextBKDReader.SimpleTextPointTree.startsWith(BytesRefBuilder scratch, BytesRef prefix) private booleanSimpleTextDocValuesReader.startsWith(BytesRef prefix) Used only in ctor:private booleanSimpleTextKnnVectorsReader.startsWith(BytesRef prefix) private booleanSimpleTextPointsReader.startsWith(BytesRef prefix) voidprivate StringSimpleTextBKDReader.SimpleTextPointTree.stripPrefix(BytesRefBuilder scratch, BytesRef prefix) private StringSimpleTextCompoundFormat.stripPrefix(BytesRefBuilder scratch, BytesRef prefix) private StringSimpleTextDocValuesReader.stripPrefix(BytesRef prefix) Used only in ctor:private StringSimpleTextKnnVectorsReader.stripPrefix(BytesRef prefix) private StringSimpleTextPointsReader.stripPrefix(BytesRef prefix) private booleanSimpleTextBKDWriter.valueInBounds(BytesRef packedValue, byte[] minPackedValue, byte[] maxPackedValue) Called only in assertprivate voidSimpleTextBKDWriter.write(IndexOutput out, BytesRef b) private voidprivate voidSimpleTextKnnVectorsWriter.write(IndexOutput out, BytesRef b) private voidSimpleTextPointsWriter.write(IndexOutput out, BytesRef b) private voidprivate voidstatic voidSimpleTextUtil.write(DataOutput out, BytesRef b) private voidSimpleTextKnnVectorsWriter.writeField(IndexOutput out, BytesRef fieldName, int value) private voidSimpleTextKnnVectorsWriter.writeField(IndexOutput out, BytesRef fieldName, long value) private voidSimpleTextKnnVectorsWriter.writeField(IndexOutput out, BytesRef fieldName, String value) voidSimpleTextStoredFieldsWriter.writeField(FieldInfo info, BytesRef value) Method parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate booleanSimpleTextBKDWriter.valuesInOrderAndBounds(int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, IntFunction<BytesRef> values, int[] docs, int docsOffset) protected voidSimpleTextBKDWriter.writeLeafBlockPackedValues(IndexOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues) Constructor parameters in org.apache.lucene.codecs.simpletext with type arguments of type BytesRefModifierConstructorDescription(package private) -
Uses of BytesRef in org.apache.lucene.codecs.uniformsplit
Fields in org.apache.lucene.codecs.uniformsplit declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRefIntersectBlockReader.commonSuffixprotected final BytesRefBlockLine.Serializer.currentTermprotected BytesRefBlockWriter.lastTermprotected BytesRefFieldMetadata.lastTermprotected final 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 BytesRefModifier and TypeMethodDescriptionDecodes all the bytes of one block in a single operation.protected BytesRefBlockReader.decodeBlockBytesIfNeeded(int numBlockBytes) FieldMetadata.getLastTerm()UniformSplitTerms.getMax()TermBytes.getTerm()BlockReader.next()IntersectBlockReader.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.BlockReader.term()Methods in org.apache.lucene.codecs.uniformsplit with parameters of type BytesRefModifier and TypeMethodDescriptionvoidvoidAdds 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.UniformSplitTerms.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 voidlonglongSeeks the given term in theIndexDictionaryand returns its corresponding block file pointer.booleanvoidPositions thisBlockReaderwithout re-seeking the term dictionary.booleanvoidprotected 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 BytesRefModifierConstructorDescriptionFieldMetadata(long dictionaryStartFP, long firstBlockStartFP, long lastBlockStartFP, BytesRef lastTerm) Constructs immutable virtual field metadata for reading.protectedIntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder) -
Uses of BytesRef in org.apache.lucene.collation
Fields in org.apache.lucene.collation declared as BytesRef -
Uses of BytesRef in org.apache.lucene.collation.tokenattributes
Methods in org.apache.lucene.collation.tokenattributes that return BytesRef -
Uses of BytesRef in org.apache.lucene.document
Fields in org.apache.lucene.document declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRefKeywordField.binaryValueprivate BytesRefStoredValue.binaryValueprivate BytesRefStringField.binaryValueprivate BytesRefShapeDocValues.Writer.bytesRefprivate final BytesRefShapeDocValues.datathe binary doc valueprivate final BytesRefFeatureDoubleValuesSource.featureNameprivate final BytesRefFeatureSortField.FeatureComparator.featureNameprivate final BytesRefSortedSetDocValuesRangeQuery.lowerValueprivate final BytesRefSortedSetDocValuesRangeQuery.upperValueprivate BytesRefField.BinaryTokenStream.valueMethods in org.apache.lucene.document that return BytesRefModifier and TypeMethodDescriptionBinaryRangeDocValues.binaryValue()DoubleField.binaryValue()Field.binaryValue()FloatField.binaryValue()IntField.binaryValue()KeywordField.binaryValue()LongField.binaryValue()protected BytesRefShapeDocValues.binaryValue()returns the encoded doc values field as aBytesRefStringField.binaryValue()private BytesRefShapeDocValues.computeBinaryValue(List<ShapeField.DecodedTriangle> tessellation) final BytesRefDocument.getBinaryValue(String name) Returns an array of bytes for the first (or only) field that has the name specified as the method parameter.StoredValue.getBinaryValue()Retrieve a binary value.final BytesRef[]Document.getBinaryValues(String name) Returns an array of byte arrays for of the fields that have the name specified as the method parameter.(package private) BytesRefShapeDocValues.Writer.getBytesRef()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 BytesRefstatic 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 BytesRefModifier and TypeMethodDescriptionstatic LatLonShapeDocValuesFieldLatLonShape.createDocValueField(String fieldName, BytesRef binaryValue) create aLatLonShapeDocValuesFieldfrom an existing encoded representationstatic XYShapeDocValuesFieldXYShape.createDocValueField(String fieldName, BytesRef binaryValue) create aXYShapeDocValuesFieldfrom an existing encoded representationstatic LatLonShapeDocValuesLatLonShape.createLatLonShapeDocValues(BytesRef bytesRef) Factory method for creating theLatLonShapeDocValuesstatic XYShapeDocValuesXYShape.createXYShapeDocValues(BytesRef bytesRef) Factory method for creating theXYShapeDocValuesprotected abstract ShapeDocValuesBaseShapeDocValuesQuery.getShapeDocValues(BytesRef binaryValue) protected ShapeDocValuesLatLonShapeDocValuesQuery.getShapeDocValues(BytesRef binaryValue) protected ShapeDocValuesXYShapeDocValuesQuery.getShapeDocValues(BytesRef binaryValue) static QueryKeywordField.newExactQuery(String field, BytesRef value) Create a query for matching an exactBytesRefvalue.static QueryKeywordField.newSetQuery(String field, BytesRef... values) Deprecated, for removal: This API element is subject to removal in a future version.static QuerySortedDocValuesField.newSlowExactQuery(String field, BytesRef value) Create a query for matching an exactBytesRefvalue.static QuerySortedSetDocValuesField.newSlowExactQuery(String field, BytesRef value) Create a query for matching an exactBytesRefvalue.static QuerySortedDocValuesField.newSlowRangeQuery(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(String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive) Create a range query that matches all documents whose value is betweenlowerValueandupperValue.static QuerySortedDocValuesField.newSlowSetQuery(String field, BytesRef... values) Deprecated, for removal: This API element is subject to removal in a future version.static QuerySortedSetDocValuesField.newSlowSetQuery(String field, BytesRef... values) Deprecated, for removal: This API element is subject to removal in a future version.voidStoredValue.setBinaryValue(BytesRef value) Set a binary value.voidDoublePoint.setBytesValue(BytesRef bytes) voidField.setBytesValue(BytesRef value) Expert: change the value of this field.voidFloatPoint.setBytesValue(BytesRef bytes) voidInetAddressPoint.setBytesValue(BytesRef bytes) voidIntPoint.setBytesValue(BytesRef bytes) voidKeywordField.setBytesValue(BytesRef value) voidLongPoint.setBytesValue(BytesRef bytes) voidStringField.setBytesValue(BytesRef value) voidstatic voidUnpack a BytesRef into a long point.Method parameters in org.apache.lucene.document with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic QueryKeywordField.newSetQuery(String field, Collection<BytesRef> values) Create a query for matching any of a set of providedBytesRefvalues.static QuerySortedDocValuesField.newSlowSetQuery(String field, Collection<BytesRef> values) Create a query matching any of the specified values.static QuerySortedSetDocValuesField.newSlowSetQuery(String field, Collection<BytesRef> values) Create a query matching any of the specified values.Constructors in org.apache.lucene.document with parameters of type BytesRefModifierConstructorDescriptionBinaryDocValuesField(String name, BytesRef value) Create a new binary DocValues field.Field(String name, BytesRef bytes, IndexableFieldType type) Create field with binary value.KeywordField(String name, BytesRef value, Field.Store stored) Creates a new KeywordField.protectedLatLonShapeDocValues(BytesRef binaryValue) protected ctor for instantiating a lat lon doc value based on an already retrieved binary formatprotectedLatLonShapeDocValuesField(String name, BytesRef binaryValue) Creates aLatLonShapeDocValueFieldfrom a given serialized value(package private)creates the docvalue reader from the binary value(package private)ShapeComparator(BytesRef binaryValue) (package private)ShapeDocValues(BytesRef binaryValue) Creates aShapeDocValuesinstance from a given serialized valueSortedDocValuesField(String name, BytesRef bytes) Create a new sorted DocValues field.SortedSetDocValuesField(String name, BytesRef bytes) Create a new sorted DocValues field.(package private)SortedSetDocValuesRangeQuery(String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive) StoredField(String name, BytesRef value) Create a stored-only field with the given binary value.StoredField(String name, BytesRef bytes, FieldType type) Expert: allows you to customize theFieldType.StoredValue(BytesRef value) Ctor for binary values.StringField(String name, BytesRef value, Field.Store stored) Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token.protectedXYShapeDocValues(BytesRef binaryValue) protected ctor for instantiating a cartesian doc value based on an already retrieved binary formatprotectedXYShapeDocValuesField(String name, BytesRef binaryValue) Creates aXYShapeDocValueFieldfrom a given serialized value -
Uses of BytesRef in org.apache.lucene.index
Fields in org.apache.lucene.index declared as BytesRefModifier and TypeFieldDescriptionprotected 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) final BytesRefPrefixCodedTerms.TermIterator.bytes(package private) BytesRefTerm.bytesprivate final BytesRefAutomatonTermsEnum.commonSuffixRefprivate BytesRefMultiTermsEnum.currentprivate BytesRefTermsEnumIndex.currentTerm(package private) final BytesRefTermVectorsConsumer.flushTermScratch term used by TermVectorsConsumerPerField.finishDocument.private BytesRefFilteredTermsEnum.initialSeekTermprivate BytesRefMultiTermsEnum.lastSeekprivate BytesRefFrozenBufferedUpdates.TermDocsIterator.lastTermprivate final BytesRefAutomatonTermsEnum.linearUpperBoundprivate final BytesRefFreqProxTermsWriter.SortingPostingsEnum.payloadprivate BytesRefFrozenBufferedUpdates.TermDocsIterator.readerTerm(package private) final BytesRefFreqProxFields.FreqProxTermsEnum.scratch(package private) final BytesRefSortedDocValuesWriter.BufferedSortedDocValues.scratch(package private) final BytesRefSortedSetDocValuesWriter.BufferedSortedSetDocValues.scratchprivate final BytesRefSingleTermsEnum.singleRef(package private) BytesRefBufferedUpdatesStream.SegmentState.term(package private) BytesRefFieldUpdatesBuffer.BufferedUpdate.termValueThe update terms value.private final BytesRefBinaryDocValuesFieldUpdates.Iterator.valueprivate final BytesRefDocValuesUpdate.BinaryDocValuesUpdate.valueMethods in org.apache.lucene.index that return BytesRefModifier and TypeMethodDescriptionabstract BytesRefBinaryDocValues.binaryValue()Returns the binary value for the current document ID.(package private) BytesRefBinaryDocValuesFieldUpdates.Iterator.binaryValue()BinaryDocValuesWriter.BufferedBinaryDocValues.binaryValue()BinaryDocValuesWriter.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()FilterBinaryDocValues.binaryValue()IndexableField.binaryValue()Non-null if this field has a binary valueIndexingChain.ReservedField.binaryValue()(package private) BytesRefNumericDocValuesFieldUpdates.Iterator.binaryValue()protected BytesRefNumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates.binaryValue()final BytesRefTerm.bytes()Returns the bytes of this term, these should not be modified.ExitableDirectoryReader.ExitableTerms.getMax()MultiTerms.getMax()Terms.getMax()Returns the largest term (in lexicographic order) in the field.ExitableDirectoryReader.ExitableTerms.getMin()MultiTerms.getMin()Terms.getMin()Returns the smallest term (in lexicographic order) in the field.FilterLeafReader.FilterPostingsEnum.getPayload()FreqProxFields.FreqProxDocsEnum.getPayload()FreqProxFields.FreqProxPostingsEnum.getPayload()FreqProxTermsWriter.SortingDocsEnum.getPayload()FreqProxTermsWriter.SortingPostingsEnum.getPayload()MappingMultiPostingsEnum.getPayload()MultiPostingsEnum.getPayload()abstract BytesRefPostingsEnum.getPayload()Returns the payload at this position, or null if no payload was indexed.SlowImpactsEnum.getPayload()(package private) BytesRefDocValuesUpdate.BinaryDocValuesUpdate.getValue()FilterSortedDocValues.lookupOrd(int ord) FilterSortedSetDocValues.lookupOrd(long ord) MultiDocValues.MultiSortedDocValues.lookupOrd(int ord) MultiDocValues.MultiSortedSetDocValues.lookupOrd(long ord) SingletonSortedSetDocValues.lookupOrd(long ord) abstract BytesRefSortedDocValues.lookupOrd(int ord) Retrieves the value for the specified ordinal.SortedDocValuesWriter.BufferedSortedDocValues.lookupOrd(int ord) SortedDocValuesWriter.SortingSortedDocValues.lookupOrd(int ord) abstract BytesRefSortedSetDocValues.lookupOrd(long ord) Retrieves the value for the specified ordinal.SortedSetDocValuesWriter.BufferedSortedSetDocValues.lookupOrd(long ord) SortedSetDocValuesWriter.SortingSortedSetDocValues.lookupOrd(long ord) ExitableDirectoryReader.ExitableTermsEnum.next()FilteredTermsEnum.next()FilterLeafReader.FilterTermsEnum.next()FreqProxFields.FreqProxTermsEnum.next()MultiTermsEnum.next()PrefixCodedTerms.TermIterator.next()SortedDocValuesTermsEnum.next()SortedSetDocValuesTermsEnum.next()(package private) BytesRefTermsEnumIndex.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 BytesRefFilteredTermsEnum.term()FilterLeafReader.FilterTermsEnum.term()FreqProxFields.FreqProxTermsEnum.term()MultiTermsEnum.term()SortedDocValuesTermsEnum.term()SortedSetDocValuesTermsEnum.term()abstract BytesRefTermsEnum.term()Returns current term.(package private) BytesRefTermsEnumIndex.term()Methods in org.apache.lucene.index that return types with arguments of type BytesRefMethods in org.apache.lucene.index with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusReturns true if the term matches the automaton.protected abstract FilteredTermsEnum.AcceptStatusReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).protected FilteredTermsEnum.AcceptStatusvoid(package private) abstract void(package private) void(package private) voidvoidadd a term.(package private) voidCalled once per inverted token.private voidSortedDocValuesWriter.addOneValue(BytesRef value) private voidSortedSetDocValuesWriter.addOneValue(BytesRef value) voidPointValuesWriter.addPackedValue(int docID, BytesRef value) (package private) voidvoidvoidvoidprivate booleanFrozenBufferedUpdates.TermDocsIterator.assertSorted(BytesRef term) private static voidCheckIndex.checkTermsIntersect(Terms terms, Automaton automaton, BytesRef startTerm) private intstatic PostingsEnumMultiTerms.getTermPostingsEnum(IndexReader r, String field, BytesRef term) ReturnsPostingsEnumfor the specified field and term.static PostingsEnumMultiTerms.getTermPostingsEnum(IndexReader r, String field, BytesRef term, int flags) ReturnsPostingsEnumfor the specified field and term, with control over whether freqs, positions, offsets or payloads are required.voidExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) FreqProxTermsWriter.SortingTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) MultiTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) Terms.intersect(CompiledAutomaton compiled, BytesRef startTerm) Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton.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) DocIdSetIterator(package private) static longTermsEnumIndex.prefix8ToComparableUnsignedLong(BytesRef term) Copy the first 8 bytes of the given term as a comparable unsigned long.private boolean(package private) static BytesRefThis enum does not support seeking!abstract TermsEnum.SeekStatusSeeks to the specified term, if it exists, or to the next (ceiling) term.(package private) TermsEnum.SeekStatusbooleanvoidbooleanThis enum does not support seeking!voidThis enum does not support seeking!booleanvoidbooleanbooleanvoidbooleanvoidabstract booleanAttempts to seek to the exact term, returning true if the term is found.abstract voidExpert: Seeks a specific position byTermStatepreviously obtained fromTermsEnum.termState().(package private) boolean(package private) final voidResets the field and text of a Term.protected final voidFilteredTermsEnum.setInitialSeekTerm(BytesRef term) Use this method to set the initialBytesRefto seek before iterating.private voidstatic final StringReturns human-readable form of the term text.longIndexWriter.updateBinaryDocValue(Term term, String field, BytesRef value) Constructors in org.apache.lucene.index with parameters of type BytesRefModifierConstructorDescription(package private)BinaryDocValuesUpdate(Term term, String field, BytesRef value) privateBinaryDocValuesUpdate(Term term, String field, BytesRef value, int docIDUpTo) (package private)Iterator(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen) SingleTermsEnum(TermsEnum tenum, BytesRef termText) Creates a newSingleTermsEnum.Constructs a Term with the given field and bytes. -
Uses of BytesRef in org.apache.lucene.index.memory
Fields in org.apache.lucene.index.memory declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefMemoryIndex.MemoryIndexReader.MemoryTermsEnum.br(package private) BytesRefMemoryIndex.BinaryDocValuesProducer.dvBytesValuesSetprivate BytesRef[]MemoryIndex.Info.pointValuesMethods in org.apache.lucene.index.memory that return BytesRefModifier and TypeMethodDescriptionMemoryIndex.MemoryIndexReader.MemoryPostingsEnum.getPayload()MemoryIndex.MemoryIndexReader.MemoryTermsEnum.next()MemoryIndex.MemoryIndexReader.MemoryTermsEnum.term()Methods in org.apache.lucene.index.memory with parameters of type BytesRefModifier and TypeMethodDescriptionprivate final intMemoryIndex.MemoryIndexReader.MemoryTermsEnum.binarySearch(BytesRef b, BytesRef bytesRef, int low, int high, BytesRefHash hash, int[] ords) booleanvoidprivate static SortedDocValuesMemoryIndex.sortedDocValues(BytesRef value) private voidMemoryIndex.storePointValues(MemoryIndex.Info info, BytesRef pointValue) private voidMemoryIndex.storeTerm(MemoryIndex.Info info, BytesRef term) -
Uses of BytesRef in org.apache.lucene.misc
Fields in org.apache.lucene.misc declared as BytesRefConstructors in org.apache.lucene.misc with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.misc.document
Methods in org.apache.lucene.misc.document that return BytesRef -
Uses of BytesRef in org.apache.lucene.misc.search
Methods in org.apache.lucene.misc.search that return BytesRefMethods in org.apache.lucene.misc.search with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as BytesRefModifier and TypeFieldDescriptionprivate static final BytesRefWritableQueryIndex.EMPTY(package private) final BytesRefTermFilteredPresearcher.BytesRefHashIterator.scratchprivate final BytesRefRegexpQueryHandler.wildcardTokenBytesMethods in org.apache.lucene.monitor that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]MultipassTermFilteredPresearcher.convertHash(BytesRefHash hash) TermFilteredPresearcher.BytesRefHashIterator.next()MonitorQuerySerializer.serialize(MonitorQuery query) Converts a MonitorQuery into a byte representationMethods in org.apache.lucene.monitor with parameters of type BytesRefModifier and TypeMethodDescriptionvoidvoidAdd a term from this documentMonitorQuerySerializer.deserialize(BytesRef binaryValue) Builds a MonitorQuery from a byte representationstatic QueryTreeReturns a leaf node for a particular term and weightstatic TermWeightorTermWeightor.termWeightor(double weight, BytesRef... terms) QueryTerms with a term value from the selected set will be assigned the given weightbooleanMethod parameters in org.apache.lucene.monitor with type arguments of type BytesRefModifier and TypeMethodDescriptionabstract QueryPresearcher.buildQuery(LeafReader reader, BiPredicate<String, BytesRef> termAcceptor) Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.QueryIndex.QueryBuilder.buildQuery(BiPredicate<String, BytesRef> termAcceptor) final QueryTermFilteredPresearcher.buildQuery(LeafReader reader, BiPredicate<String, BytesRef> termAcceptor) abstract voidQueryTree.collectTerms(BiConsumer<String, BytesRef> termCollector) Collect terms from the most highly-weighted path below this nodevoidQueryTree.ConjunctionQueryTree.collectTerms(BiConsumer<String, BytesRef> termCollector) voidQueryTree.DisjunctionQueryTree.collectTerms(BiConsumer<String, BytesRef> termCollector) static TermWeightorTermWeightor.termWeightor(double weight, Set<BytesRef> terms) QueryTerms with a term value from the selected set will be assigned the given weight -
Uses of BytesRef in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRefLiteralValueSource.bytesRefprotected final BytesRefDocFreqValueSource.indexedBytesprotected final BytesRefTotalTermFreqValueSource.indexedBytesConstructors in org.apache.lucene.queries.function.valuesource with parameters of type BytesRefModifierConstructorDescriptionDocFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) IDFValueSource(String field, String val, String indexedField, BytesRef indexedBytes) TermFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) TFValueSource(String field, String val, String indexedField, BytesRef indexedBytes) TotalTermFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) -
Uses of BytesRef in org.apache.lucene.queries.intervals
Fields in org.apache.lucene.queries.intervals declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRefPayloadFilteredTermIntervalsSource.term(package private) final BytesRefTermIntervalsSource.termFields in org.apache.lucene.queries.intervals with type parameters of type BytesRefMethods in org.apache.lucene.queries.intervals with parameters of type BytesRefModifier and TypeMethodDescription(package private) static IntervalIteratorstatic IntervalsSourceReturn anIntervalsSourceover the disjunction of all terms that begin with a prefixstatic IntervalsSourceExpert: Return anIntervalsSourceover the disjunction of all terms that begin with a prefixstatic IntervalsSourceReturn anIntervalsSourceexposing intervals for a termstatic IntervalsSourceReturn anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceReturn anIntervalsSourceover the disjunction of all terms that match a wildcard globstatic IntervalsSourceExpert: Return anIntervalsSourceover the disjunction of all terms that match a wildcard globMethod parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic IntervalsSourceReturn anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceReturn 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 BytesRefModifierConstructorDescription(package private)PayloadFilteredTermIntervalsSource(BytesRef term, Predicate<BytesRef> filter) (package private)TermIntervalsSource(BytesRef term) Constructor parameters in org.apache.lucene.queries.intervals with type arguments of type BytesRefModifierConstructorDescription(package private)PayloadFilteredTermIntervalsSource(BytesRef term, Predicate<BytesRef> filter) -
Uses of BytesRef in org.apache.lucene.queries.payloads
Fields in org.apache.lucene.queries.payloads with type parameters of type BytesRefMethods in org.apache.lucene.queries.payloads with parameters of type BytesRefModifier and TypeMethodDescriptionbooleanPayloadMatcher.comparePayload(BytesRef source, BytesRef payload) This method tests if two BytesRef match.booleanPayloadMatcherFactory.EQPayloadMatcher.comparePayload(BytesRef source, BytesRef payload) booleanPayloadMatcherFactory.FloatPayloadMatcher.comparePayload(BytesRef source, BytesRef payload) booleanPayloadMatcherFactory.IntPayloadMatcher.comparePayload(BytesRef source, BytesRef payload) booleanPayloadMatcherFactory.StringPayloadMatcher.comparePayload(BytesRef source, BytesRef payload) floatPayloadDecoder.computePayloadFactor(BytesRef payload) Compute a float value for the given payloadConstructor parameters in org.apache.lucene.queries.payloads with type arguments of type BytesRefModifierConstructorDescriptionSpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch) SpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation) -
Uses of BytesRef in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefQueryParserBase.analyzeWildcard(String field, String termStr) -
Uses of BytesRef in org.apache.lucene.queryparser.flexible.standard.nodes
Methods in org.apache.lucene.queryparser.flexible.standard.nodes that return BytesRef -
Uses of BytesRef in org.apache.lucene.sandbox.codecs.idversion
Fields in org.apache.lucene.sandbox.codecs.idversion declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRefVersionBlockTreeTermsWriter.FieldMetaData.maxTerm(package private) final BytesRefVersionFieldReader.maxTermfinal BytesRefVersionBlockTreeTermsWriter.FieldMetaData.minTerm(package private) final BytesRefVersionFieldReader.minTermprivate final BytesRefSinglePostingsEnum.payloadfinal BytesRefVersionBlockTreeTermsWriter.PendingBlock.prefixFields in org.apache.lucene.sandbox.codecs.idversion with type parameters of type BytesRefModifier and TypeFieldDescription(package private) FST.Arc<PairOutputs.Pair<BytesRef, Long>> IDVersionSegmentTermsEnumFrame.arc(package private) static final PairOutputs<BytesRef, Long> VersionBlockTreeTermsWriter.FST_OUTPUTSVersionBlockTreeTermsWriter.PendingBlock.index(package private) final FST<PairOutputs.Pair<BytesRef, Long>> VersionFieldReader.index(package private) static final PairOutputs.Pair<BytesRef, Long> VersionBlockTreeTermsWriter.NO_OUTPUTfinal PairOutputs.Pair<BytesRef, Long> VersionBlockTreeTermsWriter.FieldMetaData.rootCode(package private) final PairOutputs.Pair<BytesRef, Long> VersionFieldReader.rootCodeVersionBlockTreeTermsWriter.PendingBlock.subIndicesMethods in org.apache.lucene.sandbox.codecs.idversion that return BytesRefModifier and TypeMethodDescriptionVersionFieldReader.getMax()VersionFieldReader.getMin()SingleDocsEnum.getPayload()SinglePostingsEnum.getPayload()IDVersionSegmentTermsEnum.next()private static BytesRefVersionBlockTreeTermsReader.readBytesRef(IndexInput in) IDVersionSegmentTermsEnum.term()Methods in org.apache.lucene.sandbox.codecs.idversion that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprivate FST.Arc<PairOutputs.Pair<BytesRef, Long>> IDVersionSegmentTermsEnum.getArc(int ord) Methods in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRefModifier and TypeMethodDescriptionvoidIDVersionPostingsWriter.addPosition(int position, BytesRef payload, int startOffset, int endOffset) static longIDVersionPostingsFormat.bytesToLong(BytesRef bytes) static voidIDVersionPostingsFormat.longToBytes(long v, BytesRef bytes) private booleanIDVersionSegmentTermsEnumFrame.prefixMatches(BytesRef target) private voidPushes the new term to the top of the stack, and writes new blocks.voidIDVersionSegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) IDVersionSegmentTermsEnumFrame.scanToTerm(BytesRef target, boolean exactOnly) IDVersionSegmentTermsEnumFrame.scanToTermLeaf(BytesRef target, boolean exactOnly) IDVersionSegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target, boolean exactOnly) booleanbooleanOptimized version ofIDVersionSegmentTermsEnum.seekExact(BytesRef)that can sometimes fail-fast if the version indexed with the requested ID is less than the specified minIDVersion.voidvoidIDVersionSegmentTermsEnumFrame.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.sandbox.codecs.idversion with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate voidVersionBlockTreeTermsWriter.PendingBlock.append(FSTCompiler<PairOutputs.Pair<BytesRef, Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef, Long>> subIndex, IntsRefBuilder scratchIntsRef) private voidVersionBlockTreeTermsWriter.PendingBlock.append(FSTCompiler<PairOutputs.Pair<BytesRef, Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef, Long>> subIndex, IntsRefBuilder scratchIntsRef) (package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, long fp, int length) (package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, PairOutputs.Pair<BytesRef, Long> frameData, int length) (package private) IDVersionSegmentTermsEnumFrameIDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef, Long>> arc, PairOutputs.Pair<BytesRef, Long> frameData, int length) Constructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type BytesRefModifierConstructorDescriptionFieldMetaData(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef, Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm) PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<PairOutputs.Pair<BytesRef, Long>>> subIndices) PendingTerm(BytesRef term, BlockTermState state) (package private)VersionFieldReader(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef, Long> rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) Constructor parameters in org.apache.lucene.sandbox.codecs.idversion with type arguments of type BytesRefModifierConstructorDescriptionFieldMetaData(FieldInfo fieldInfo, PairOutputs.Pair<BytesRef, Long> rootCode, long numTerms, long indexStartFP, BytesRef minTerm, BytesRef maxTerm) PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, List<FST<PairOutputs.Pair<BytesRef, Long>>> subIndices) (package private)VersionFieldReader(VersionBlockTreeTermsReader parent, FieldInfo fieldInfo, long numTerms, PairOutputs.Pair<BytesRef, Long> rootCode, long sumTotalTermFreq, long sumDocFreq, int docCount, long indexStartFP, IndexInput indexIn, BytesRef minTerm, BytesRef maxTerm) -
Uses of BytesRef in org.apache.lucene.sandbox.document
Methods in org.apache.lucene.sandbox.document that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRefBigIntegerPoint.pack(BigInteger... point) private static BytesRefHalfFloatPoint.pack(float... point) Methods in org.apache.lucene.sandbox.document with parameters of type BytesRefModifier and TypeMethodDescriptionvoidBigIntegerPoint.setBytesValue(BytesRef bytes) voidHalfFloatPoint.setBytesValue(BytesRef bytes) -
Uses of BytesRef in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRefPhraseWildcardQuery.TermBytesTermState.termBytesprotected final BytesRefPhraseWildcardQuery.TermStats.termBytesprivate final BytesRef[]CombinedFieldQuery.termsFields in org.apache.lucene.sandbox.search with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final IntObjectHashMap<BytesRef> TermAutomatonQuery.idToTermCombinedFieldQuery.Builder.termsSetTermAutomatonQuery.termToIDMethods in org.apache.lucene.sandbox.search that return BytesRefMethods in org.apache.lucene.sandbox.search that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprotected Map<BytesRef, PhraseWildcardQuery.TermStats> PhraseWildcardQuery.createTermStatsMap(PhraseWildcardQuery.MultiTerm multiTerm) Creates aPhraseWildcardQuery.TermStatsmap for aPhraseWildcardQuery.MultiTerm.Methods in org.apache.lucene.sandbox.search with parameters of type BytesRefModifier and TypeMethodDescriptionAdds a term to this builder.Adds a single term at the next position in the phrase.voidTermAutomatonQuery.addTransition(int source, int dest, BytesRef term) Adds a transition to the automaton.private intMethod parameters in org.apache.lucene.sandbox.search with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected List<PhraseWildcardQuery.TermBytesTermState> PhraseWildcardQuery.collectMultiTermDataForSegment(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext, int remainingExpansions, MutableValueBool shouldStopSegmentIteration, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap) Collects theTermStatelist andTermStatisticsfor a multi-term on a specific index segment.protected voidPhraseWildcardQuery.collectMultiTermStats(IndexSearcher searcher, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap, PhraseWildcardQuery.TermsData termsData, PhraseWildcardQuery.TermData termData) Collect the term stats across all segments.Constructors in org.apache.lucene.sandbox.search with parameters of type BytesRefModifierConstructorDescriptionprivateCombinedFieldQuery(TreeMap<String, CombinedFieldQuery.FieldAndWeight> fieldAndWeights, BytesRef[] terms) TermBytesTermState(BytesRef termBytes, TermState termState) protected -
Uses of BytesRef in org.apache.lucene.search
Fields in org.apache.lucene.search declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRefFieldComparator.TermValComparator.bottomprivate BytesRefFuzzyTermsEnum.bottomTermprivate BytesRefMaxNonCompetitiveBoostAttributeImpl.competitiveTermprivate final BytesRefTermRangeQuery.lowerTermprivate BytesRefPointInSetQuery.MergePointVisitor.nextQueryPointprivate BytesRefFuzzyTermsEnum.queuedBottomprivate BytesRefTermInSetQuery.SetEnum.seekTerm(package private) final BytesRefAbstractMultiTermQueryConstantScoreWrapper.TermAndState.term(package private) final BytesRefSynonymQuery.TermAndBoost.termprivate final BytesRefTermStatistics.termprivate BytesRefFieldComparator.TermValComparator.topValueprivate final BytesRefTermRangeQuery.upperTermprivate final BytesRef[]FieldComparator.TermValComparator.valuesFields in org.apache.lucene.search with type parameters of type BytesRefMethods in org.apache.lucene.search that return BytesRefModifier and TypeMethodDescriptionMaxNonCompetitiveBoostAttribute.getCompetitiveTerm()This is the term ornullof the term that triggered the boost change.MaxNonCompetitiveBoostAttributeImpl.getCompetitiveTerm()TermRangeQuery.getLowerTerm()Returns the lower value of this range queryMultiPhraseQuery.UnionFullPostingsEnum.getPayload()MultiPhraseQuery.UnionPostingsEnum.getPayload()TermRangeQuery.getUpperTerm()Returns the upper value of this range queryprivate BytesRefFieldComparator.TermValComparator.getValueForDoc(int doc) SortedSetSelector.MaxValue.lookupOrd(int ord) SortedSetSelector.MiddleMaxValue.lookupOrd(int ord) SortedSetSelector.MiddleMinValue.lookupOrd(int ord) SortedSetSelector.MinValue.lookupOrd(int ord) FuzzyTermsEnum.next()abstract BytesRefPointInSetQuery.Stream.next()protected BytesRefTermInSetQuery.SetEnum.nextSeekTerm(BytesRef currentTerm) FuzzyTermsEnum.term()final BytesRefTermStatistics.term()The term text.FieldComparator.TermValComparator.value(int slot) Methods in org.apache.lucene.search that return types with arguments of type BytesRefMethods in org.apache.lucene.search with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusAdds the providedtermas a synonym, document frequencies of this term will be boosted byboost.private voidFuzzyTermsEnum.bottomChanged(BytesRef lastTerm) fired when the max non-competitive boost has changed.booleanabstract booleanreturn false to stop collectingintFieldComparator.TermValComparator.compareValues(BytesRef val1, BytesRef val2) private TermsEnumFuzzyTermsEnum.getAutomatonEnum(int editDistance, BytesRef lastTerm) return an automata-based enum for matching up to editDistance from lastTerm, if possibleintSortedSetSelector.MaxValue.lookupTerm(BytesRef key) intSortedSetSelector.MiddleMaxValue.lookupTerm(BytesRef key) intSortedSetSelector.MiddleMinValue.lookupTerm(BytesRef key) intSortedSetSelector.MinValue.lookupTerm(BytesRef key) private booleanreturns true if term is within k edits of the query termprotected BytesRefTermInSetQuery.SetEnum.nextSeekTerm(BytesRef currentTerm) booleanvoidvoidMaxNonCompetitiveBoostAttribute.setCompetitiveTerm(BytesRef competitiveTerm) This is the term ornullof the term that triggered the boost change.voidMaxNonCompetitiveBoostAttributeImpl.setCompetitiveTerm(BytesRef competitiveTerm) voidvoidFieldComparator.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[]Method parameters in org.apache.lucene.search with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate static PrefixCodedTermsTermInSetQuery.packTerms(String field, Collection<BytesRef> terms) voidSortField.setBytesComparator(Comparator<BytesRef> b) Constructors in org.apache.lucene.search with parameters of type BytesRefModifierConstructorDescriptionPhraseQuery(int slop, String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions infield, and at a maximum edit distance ofslop.PhraseQuery(String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions infield.(package private)TermAndBoost(BytesRef term, float boost) (package private)TermAndState(BytesRef term, TermState state, int docFreq, long totalTermFreq) TermInSetQuery(String field, BytesRef... terms) Deprecated.UseTermInSetQuery(String, Collection)instead.TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, String field, BytesRef... terms) Deprecated.UseTermInSetQuery(RewriteMethod, String, Collection)instead.TermRangeQuery(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) Constructs a query selecting all terms greater/equal thanlowerTermbut less/equal thanupperTerm.TermRangeQuery(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query selecting all terms greater/equal thanlowerTermbut less/equal thanupperTerm.TermStatistics(BytesRef term, long docFreq, long totalTermFreq) Creates statistics instance for a term.Constructor parameters in org.apache.lucene.search with type arguments of type BytesRefModifierConstructorDescriptionTermInSetQuery(String field, Collection<BytesRef> terms) TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, String field, Collection<BytesRef> terms) Creates a newTermInSetQueryfrom the given collection of terms. -
Uses of BytesRef in org.apache.lucene.search.comparators
Fields in org.apache.lucene.search.comparators declared as BytesRefModifier and TypeFieldDescription(package private) BytesRefTermOrdValComparator.bottomValue(package private) BytesRefTermOrdValComparator.topValueSet by setTopValue.(package private) final BytesRef[]TermOrdValComparator.valuesMethods in org.apache.lucene.search.comparators that return BytesRefMethods in org.apache.lucene.search.comparators with parameters of type BytesRefModifier and TypeMethodDescriptionintTermOrdValComparator.compareValues(BytesRef val1, BytesRef val2) voidTermOrdValComparator.setTopValue(BytesRef value) -
Uses of BytesRef in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as BytesRefModifier and TypeFieldDescriptionprotected final BytesRefGroupFacetCollector.facetPrefix(package private) final BytesRefTermGroupFacetCollector.GroupedFacetHit.facetValue(package private) final BytesRefTermGroupFacetCollector.GroupedFacetHit.groupValueprotected BytesRefGroupFacetCollector.SegmentResult.mergeTermprivate BytesRefTermGroupSelector.scratchprivate final BytesRefGroupFacetCollector.FacetEntry.valueMethods in org.apache.lucene.search.grouping that return BytesRefModifier and TypeMethodDescriptionTermGroupSelector.copyValue()TermGroupSelector.currentValue()GroupFacetCollector.FacetEntry.getValue()Methods in org.apache.lucene.search.grouping with parameters of type BytesRefModifier and TypeMethodDescriptionvoidGroupFacetCollector.GroupedFacetResult.addFacetCount(BytesRef facetValue, int count) static TermGroupFacetCollectorTermGroupFacetCollector.createTermGroupFacetCollector(String groupField, String facetField, boolean facetFieldMultivalued, BytesRef facetPrefix, int initialSize) Factory method for creating the right implementation based on the fact whether the facet field contains multiple tokens per documents.Method parameters in org.apache.lucene.search.grouping with type arguments of type BytesRefModifier and TypeMethodDescriptionvoidTermGroupSelector.setGroups(Collection<SearchGroup<BytesRef>> searchGroups) Constructors in org.apache.lucene.search.grouping with parameters of type BytesRefModifierConstructorDescriptionFacetEntry(BytesRef value, int count) (package private)GroupedFacetHit(BytesRef groupValue, BytesRef facetValue) protectedGroupFacetCollector(String groupField, String facetField, BytesRef facetPrefix) (package private)(package private)(package private)TermGroupFacetCollector(String groupField, String facetField, BytesRef facetPrefix, int initialSize) -
Uses of BytesRef in org.apache.lucene.search.join
Fields in org.apache.lucene.search.join declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefSeekingTermSetTermsEnum.lastTermprivate BytesRefPointInSetIncludingScoreQuery.MergePointVisitor.nextQueryPointprivate final BytesRefPointInSetIncludingScoreQuery.MergePointVisitor.scratchprivate BytesRefSeekingTermSetTermsEnum.seekTermprivate final BytesRefSeekingTermSetTermsEnum.spareMethods in org.apache.lucene.search.join that return BytesRefModifier and TypeMethodDescriptionToParentDocValues.SortedDVs.lookupOrd(int ord) protected BytesRefSeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) Methods in org.apache.lucene.search.join with parameters of type BytesRefModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusprotected BytesRefSeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) -
Uses of BytesRef in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as BytesRefModifier and TypeFieldDescriptionDirectSpellChecker.ScoreTerm.termThe actual spellcheck correction.Methods in org.apache.lucene.search.spell that return BytesRefModifier and TypeMethodDescriptionHighFrequencyDictionary.HighFrequencyIterator.next()PlainTextDictionary.FileIterator.next()HighFrequencyDictionary.HighFrequencyIterator.payload()Methods in org.apache.lucene.search.spell that return types with arguments of type BytesRef -
Uses of BytesRef in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRefDocumentDictionary.DocumentInputIterator.currentPayloadfinal BytesRefLookup.LookupResult.payloadthe key's payload (null if not present)private BytesRefSortedInputIterator.payloadFields in org.apache.lucene.search.suggest with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final Comparator<BytesRef> InMemorySorter.comparatorprivate final Comparator<BytesRef> SortedInputIterator.comparatorLookup.LookupResult.contextsthe key's contexts (null if not present)SortedInputIterator.contextsBufferedInputIterator.contextSetsbuffered context set entriesDocumentDictionary.DocumentInputIterator.currentContextsprivate final Comparator<BytesRef> SortedInputIterator.tieBreakByCostComparatorSortes by BytesRef (ascending) then cost (ascending).Methods in org.apache.lucene.search.suggest that return BytesRefModifier and TypeMethodDescriptionprotected BytesRefSortedInputIterator.decodePayload(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the payload at the current positionBufferedInputIterator.next()DocumentDictionary.DocumentInputIterator.next()FileDictionary.FileIterator.next()InputIterator.InputIteratorWrapper.next()SortedInputIterator.next()UnsortedInputIterator.next()BufferedInputIterator.payload()DocumentDictionary.DocumentInputIterator.payload()FileDictionary.FileIterator.payload()InputIterator.InputIteratorWrapper.payload()InputIterator.payload()An arbitrary byte[] to record per suggestion.SortedInputIterator.payload()UnsortedInputIterator.payload()Methods in org.apache.lucene.search.suggest that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBufferedInputIterator.contexts()DocumentDictionary.DocumentInputIterator.contexts()FileDictionary.FileIterator.contexts()InputIterator.contexts()A term's contexts context can be used to filter suggestions.InputIterator.InputIteratorWrapper.contexts()SortedInputIterator.contexts()UnsortedInputIterator.contexts()SortedInputIterator.decodeContexts(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the contexts at the current positionInMemorySorter.getComparator()Methods in org.apache.lucene.search.suggest with parameters of type BytesRefModifier and TypeMethodDescriptionvoidprotected longSortedInputIterator.decode(BytesRef scratch, ByteArrayDataInput tmpInput) decodes the weight at the current positionSortedInputIterator.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, Set<BytesRef> contexts, long weight) encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writerMethod parameters in org.apache.lucene.search.suggest with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected voidSortedInputIterator.encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writerabstract List<Lookup.LookupResult> Lookup.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) Look up a key and return possible completion for this key.Constructors in org.apache.lucene.search.suggest with parameters of type BytesRefModifierConstructorDescriptionLookupResult(CharSequence key, long value, BytesRef payload) Create a new result from a key+weight+payload triple.LookupResult(CharSequence key, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+weight+payload+contexts triple.LookupResult(CharSequence key, Object highlightKey, long value, BytesRef payload) Create a new result from a key+highlightKey+weight+payload triple.LookupResult(CharSequence key, Object highlightKey, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+highlightKey+weight+payload+contexts triple.Constructor parameters in org.apache.lucene.search.suggest with type arguments of type BytesRefModifierConstructorDescriptionInMemorySorter(Comparator<BytesRef> comparator) Creates an InMemorySorter, sorting entries by the provided comparator.LookupResult(CharSequence key, long value, Set<BytesRef> contexts) Create a new result from a key+weight+contexts triple.LookupResult(CharSequence key, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+weight+payload+contexts triple.LookupResult(CharSequence key, Object highlightKey, long value, BytesRef payload, Set<BytesRef> contexts) Create a new result from a key+highlightKey+weight+payload+contexts triple.SortedInputIterator(Directory tempDir, String tempFileNamePrefix, InputIterator source, Comparator<BytesRef> comparator) Creates a new sorted wrapper, sorting by BytesRef (ascending) then cost (ascending). -
Uses of BytesRef in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefAnalyzingSuggester.AnalyzingComparator.scratchAprivate final BytesRefAnalyzingSuggester.AnalyzingComparator.scratchBFields in org.apache.lucene.search.suggest.analyzing with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate FST<PairOutputs.Pair<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 final Comparator<PairOutputs.Pair<Long, BytesRef>> AnalyzingSuggester.weightComparatorMethods in org.apache.lucene.search.suggest.analyzing that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprotected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Methods in org.apache.lucene.search.suggest.analyzing with parameters of type BytesRefModifier and TypeMethodDescriptionvoidAdds 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, Set<BytesRef> contexts, long weight, BytesRef payload) intprivate intFreeTextSuggester.countGrams(BytesRef token) private Lookup.LookupResultAnalyzingSuggester.getLookupResult(Long output1, BytesRef output2, CharsRefBuilder spare) private LongFreeTextSuggester.lookupPrefix(FST<Long> fst, FST.BytesReader bytesReader, BytesRef scratch, FST.Arc<Long> arc) private booleanAnalyzingSuggester.sameSurfaceForm(BytesRef key, BytesRef output2) (package private) final AutomatonAnalyzingSuggester.toAutomaton(BytesRef surfaceForm, TokenStreamToAutomaton ts2a) voidAnalyzingInfixSuggester.update(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) Updates a previous suggestion, matching the exact same text as before.Method parameters in org.apache.lucene.search.suggest.analyzing with type arguments of type BytesRefModifier and TypeMethodDescriptionvoidAdds a new suggestion.private DocumentAnalyzingInfixSuggester.buildDocument(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) AnalyzingInfixSuggester.lookup(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) Retrieve suggestions, specifying whether all terms must match (allTermsRequired) and whether the hits should be highlighted (doHighlight).AnalyzingInfixSuggester.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) AnalyzingInfixSuggester.lookup(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) Lookup, with context but without booleans.AnalyzingSuggester.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) BlendedInfixSuggester.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) FreeTextSuggester.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) FreeTextSuggester.lookup(CharSequence key, Set<BytesRef> contexts, int num) Retrieve suggestions.private BooleanQueryAnalyzingInfixSuggester.toQuery(Map<BytesRef, BooleanClause.Occur> contextInfo) private BooleanQueryvoidAnalyzingInfixSuggester.update(BytesRef text, Set<BytesRef> contexts, long weight, BytesRef payload) Updates a previous suggestion, matching the exact same text as before. -
Uses of BytesRef in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as BytesRefModifier and TypeFieldDescriptionprivate BytesRefCompletionTokenStream.payload(package private) final BytesRefNRTSuggesterBuilder.Entry.payloadprivate final BytesRefSuggestField.surfaceFormFields in org.apache.lucene.search.suggest.document with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final FST<PairOutputs.Pair<Long, BytesRef>> NRTSuggester.fstFSTinvalid input: '<'Weight,Surface>: input is the analyzed form, with a null byte between terms and aNRTSuggesterBuilder.END_BYTEto denote the end of the input weight is a long surface is the original, unanalyzed form followed by the docIDprivate final FSTCompiler<PairOutputs.Pair<Long, BytesRef>> NRTSuggesterBuilder.fstCompilerprivate final PairOutputs<Long, BytesRef> NRTSuggesterBuilder.outputsMethods in org.apache.lucene.search.suggest.document that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefSuggestField.buildSuggestPayload()(package private) static BytesRefMethods in org.apache.lucene.search.suggest.document that return types with arguments of type BytesRefModifier and TypeMethodDescriptionprivate static Comparator<PairOutputs.Pair<Long, BytesRef>> NRTSuggester.getComparator()Methods in org.apache.lucene.search.suggest.document with parameters of type BytesRefModifier and TypeMethodDescriptionvoidAdds an entry for the latest input term, should be called afterNRTSuggesterBuilder.startTerm(org.apache.lucene.util.BytesRef)on the desired input(package private) static BytesRef(package private) static intNRTSuggester.PayLoadProcessor.parseSurfaceForm(BytesRef output, int payloadSep, CharsRefBuilder spare) voidCompletionTokenStream.setPayload(BytesRef payload) Sets a payload available throughout successive token stream enumerationvoidInitializes an FST input term to add entries againstvoidWrites all postings (surface form, weight, document id) fortermMethod parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRefModifier and TypeMethodDescriptionintNRTSuggester.ScoringPathComparator.compare(Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> first, Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> second) Constructors in org.apache.lucene.search.suggest.document with parameters of type BytesRefConstructor parameters in org.apache.lucene.search.suggest.document with type arguments of type BytesRefModifierConstructorDescriptionprivateNRTSuggester(FST<PairOutputs.Pair<Long, BytesRef>> fst, int maxAnalyzedPathsPerOutput, int payloadSep) -
Uses of BytesRef in org.apache.lucene.search.suggest.fst
Fields in org.apache.lucene.search.suggest.fst declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRefFSTCompletion.Completion.utf8UTF-8 bytes of the suggestionMethods in org.apache.lucene.search.suggest.fst that return BytesRefMethods in org.apache.lucene.search.suggest.fst that return types with arguments of type BytesRefModifier and TypeMethodDescriptionBytesRefSorter.getComparator()Comparator used to determine the sort order of entries.ExternalRefSorter.getComparator()Methods in org.apache.lucene.search.suggest.fst with parameters of type BytesRefModifier and TypeMethodDescriptionvoidAdds a single suggestion entry (possibly compound with its bucket).voidvoidAppends a single suggestion and its weight to the internal buffers.private Stream<? extends FSTCompletion.Completion> FSTCompletion.completionStream(BytesRef output, int bucket, FST.Arc<Object> fromArc) Return a stream of all completions starting from the provided arc.protected longWFSTCompletionLookup.WFSTInputIterator.decode(BytesRef scratch, ByteArrayDataInput tmpInput) private booleanFSTCompletion.descendWithPrefix(FST.Arc<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, 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 LongWFSTCompletionLookup.lookupPrefix(BytesRef scratch, FST.Arc<Long> arc) private Stream<FSTCompletion.Completion> FSTCompletion.lookupSortedByWeight(BytesRef key) Lookup suggestions sorted by weight (descending order).Method parameters in org.apache.lucene.search.suggest.fst with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected voidWFSTCompletionLookup.WFSTInputIterator.encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, Set<BytesRef> contexts, long weight) FSTCompletionLookup.lookup(CharSequence key, Set<BytesRef> contexts, boolean higherWeightsFirst, int num) WFSTCompletionLookup.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) Constructors in org.apache.lucene.search.suggest.fst with parameters of type BytesRef -
Uses of BytesRef in org.apache.lucene.search.suggest.tst
Fields in org.apache.lucene.search.suggest.tst with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate static final Comparator<BytesRef> TSTLookup.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 BytesRefModifier and TypeMethodDescriptionTSTLookup.lookup(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) -
Uses of BytesRef in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight declared as BytesRefModifier and TypeFieldDescription(package private) final BytesRef[]TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.matchDescriptionsprivate BytesRef[]Passage.matchTerms(package private) final BytesRefOffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.termprivate final BytesRefOffsetsEnum.OfPostings.termprivate final BytesRefPhraseHelper.SpanCollectedOffsetsEnum.termprivate final BytesRef[]UHComponents.termsFields in org.apache.lucene.search.uhighlight with type parameters of type BytesRefModifier and TypeFieldDescriptionPhraseHelper.positionInsensitiveTermsOffsetsEnum.OfMatchesIteratorWithSubs.queryToTermMapOffsetsEnum.OfMatchesIterator.termSupplier(package private) Map<BytesRef, PhraseHelper.SpanCollectedOffsetsEnum> PhraseHelper.OffsetSpanCollector.termToOffsetsEnumsMethods in org.apache.lucene.search.uhighlight that return BytesRefModifier and TypeMethodDescriptionprotected static BytesRef[]UnifiedHighlighter.filterExtractedTerms(Predicate<String> fieldMatcher, Set<Term> queryTerms) BytesRef[]PhraseHelper.getAllPositionInsensitiveTerms()Returns the terms that are position-insensitive (sorted).BytesRef[]Passage.getMatchTerms()BytesRef (term text) of the matches, corresponding withPassage.getMatchStarts().abstract BytesRefOffsetsEnum.getTerm()The term at this position.OffsetsEnum.MultiOffsetsEnum.getTerm()OffsetsEnum.OfMatchesIterator.getTerm()OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.getTerm()OffsetsEnum.OfMatchesIteratorWithSubs.getTerm()OffsetsEnum.OfPostings.getTerm()PhraseHelper.SpanCollectedOffsetsEnum.getTerm()TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.getTerm()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 BytesRefModifier and TypeMethodDescriptionvoidprivate static CharArrayMatcher[]TokenStreamOffsetStrategy.convertTermsToMatchers(BytesRef[] terms, CharArrayMatcher[] matchers) protected voidFieldOffsetStrategy.createOffsetsEnumsForTerms(BytesRef[] sourceTerms, Terms termsIndex, int doc, List<OffsetsEnum> results) TermVectorFilteredLeafReader.TermsFilteredTerms.intersect(CompiledAutomaton compiled, BytesRef startTerm) Method parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRefConstructors in org.apache.lucene.search.uhighlight with parameters of type BytesRefModifierConstructorDescriptionprivateOfPostings(BytesRef term, int freq, PostingsEnum postingsEnum) OfPostings(BytesRef term, PostingsEnum postingsEnum) privateSpanCollectedOffsetsEnum(BytesRef term, int postingsFreq) UHComponents(String field, Predicate<String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, Set<UnifiedHighlighter.HighlightFlag> highlightFlags) Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type BytesRefModifierConstructorDescriptionOfMatchesIterator(MatchesIterator matchesIterator, Supplier<BytesRef> termSupplier) -
Uses of BytesRef in org.apache.lucene.util
Fields in org.apache.lucene.util declared as BytesRefModifier and TypeFieldDescriptionstatic final 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.currentprotected final BytesRefStringSorter.pivotprivate final BytesRefBytesRefBuilder.refprotected final BytesRefStringSorter.scratchBytes1protected final BytesRefStringSorter.scratchBytes2final BytesRefQueryBuilder.TermAndBoost.termthe termprivate final BytesRefTermAndVector.termFields in org.apache.lucene.util with type parameters of type BytesRefModifier and TypeFieldDescriptionprivate final Comparator<BytesRef> StringSorter.cmpprivate final Comparator<BytesRef> OfflineSorter.comparatorstatic final Comparator<BytesRef> OfflineSorter.DEFAULT_COMPARATORDefault comparator: sorts in binary (codepoint) orderMethods in org.apache.lucene.util that return BytesRefModifier and TypeMethodDescriptionBytesRef.clone()Returns a shallow clone of this instance (the underlying bytes are not copied and will be shared by both the returned object and this object.static BytesRefBytesRef.deepCopyOf(BytesRef other) Creates a new BytesRef that points to a copy of the bytes fromotherBytesRefArray.get(BytesRefBuilder spare, int index) Returns the n'th element of thisBytesRefArrayBytesRefBuilder.get()Return aBytesRefthat points to the internal content of this builder.Populates and returns aBytesRefwith the bytes for the given bytesID.TermAndVector.getTerm()static BytesRefStringHelper.intsRefToBytesRef(IntsRef ints) BytesRefIterator.next()Increments the iteration to the nextBytesRefin the iterator.OfflineSorter.ByteSequencesReader.next()Reads the next entry into the providedBytesRef.BytesRefBuilder.toBytesRef()Build a newBytesRefthat has the same content as this buffer.Methods in org.apache.lucene.util that return types with arguments of type BytesRefModifier and TypeMethodDescriptionOfflineSorter.getComparator()Returns the comparator in use to sort entriesMethods in org.apache.lucene.util with parameters of type BytesRefModifier and TypeMethodDescriptionintAdds a newBytesRefintBytesRefBlockPool.addBytesRef(BytesRef bytes) Add a term returning the start position on the underlyingByteBlockPool.voidAppends the bytes in the providedBytesRefat the current position.intAppends a copy of the givenBytesRefto thisBytesRefArray.voidAppend the provided bytes to this builder.intAppends a copy of the givenBytesRefto thisBytesRefArray.intAppend a new valueprotected abstract intReturn 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 StringToStringUtils.bytesRefToString(BytesRef b) Builds a String with both textual representation of theBytesRefdata and the bytes hex values.static intUnicodeUtil.codePointCount(BytesRef utf8) Returns the number of code points in this UTF8 sequence.final intintCompare two bytes refs that first k bytes are already guaranteed to be equal.intUnsigned byte order comparisonvoidCopy BytesRef in, setting BytesRef out to the result.voidReplace 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 booleanReturnstrueiff the ref ends with the given suffix.(package private) booleanComputes the equality between the BytesRef at the start position with the provided BytesRef.voidReads length as 1 or 2 byte vInt prefix, starting at start.voidBytesRefBlockPool.fillBytesRef(BytesRef term, int start) Populates the given BytesRef with the term starting at start.voidGets a slice out ofPagedBytesstarting at start with a given length.intReturns the id of the givenBytesRef.private intPopulates and returns aBytesRefwith the bytes for the given bytesID.protected abstract voidStringSorter.get(BytesRefBuilder builder, BytesRef result, int i) 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 and length.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.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.final voidWrites a BytesRef.Method parameters in org.apache.lucene.util with type arguments of type BytesRefModifier and TypeMethodDescriptionprotected SorterStableStringSorter.fallbackSorter(Comparator<BytesRef> cmp) protected SorterStringSorter.fallbackSorter(Comparator<BytesRef> cmp) BytesRefArray.iterator(Comparator<BytesRef> comp) Returns aBytesRefIteratorwith point in time semantics.FixedLengthBytesRefArray.iterator(Comparator<BytesRef> comp) Returns aBytesRefIteratorwith point in time semantics.SortableBytesRefArray.iterator(Comparator<BytesRef> comp) Sort all values by the provided comparator and return an iterator over the sorted valuesBytesRefArray.sort(Comparator<BytesRef> comp, boolean stable) Returns aBytesRefArray.SortStaterepresenting the order of elements in this array.private int[]FixedLengthBytesRefArray.sort(Comparator<BytesRef> comp) Constructors in org.apache.lucene.util with parameters of type BytesRefModifierConstructorDescription(package private)FileAndTop(int fd, BytesRef firstLine) TermAndBoost(BytesRef term, float boost) Creates a new TermAndBoostTermAndVector(BytesRef term, float[] vector) Constructor parameters in org.apache.lucene.util with type arguments of type BytesRefModifierConstructorDescriptionOfflineSorter(Directory dir, String tempFileNamePrefix, Comparator<BytesRef> comparator) Defaults constructor with a custom comparator.OfflineSorter(Directory dir, String tempFileNamePrefix, Comparator<BytesRef> comparator, OfflineSorter.BufferSize ramBufferSize, int maxTempfiles, int valueLength, ExecutorService exec, int maxPartitionsInRAM) All-details constructor.(package private)protectedStringSorter(Comparator<BytesRef> cmp) -
Uses of BytesRef in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as BytesRefModifier and TypeFieldDescriptionfinal BytesRefCompiledAutomaton.commonSuffixRefShared common suffix accepted by the automaton.final BytesRefCompiledAutomaton.termForCompiledAutomaton.AUTOMATON_TYPE.SINGLEthis is the singleton term.Methods in org.apache.lucene.util.automaton that return BytesRefModifier and TypeMethodDescriptionprivate BytesRefCompiledAutomaton.addTail(int state, BytesRefBuilder term, int idx, int leadLabel) CompiledAutomaton.floor(BytesRef input, BytesRefBuilder output) Finds largest term accepted by this Automaton, that's <= the provided input term.static 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) Returns the longest BytesRef that is a suffix of all accepted strings.Methods in org.apache.lucene.util.automaton with parameters of type BytesRefModifier and TypeMethodDescriptionprivate voidDeprecated.CompiledAutomaton.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 booleanDaciukMihovAutomatonBuilder.setPrevious(BytesRef current) Deprecated.Copycurrentinto an internal buffer.private static booleanAutomata.suffixIsZeros(BytesRef br, int len) Method parameters in org.apache.lucene.util.automaton with type arguments of type BytesRefModifier and TypeMethodDescriptionstatic AutomatonDeprecated.Please seeAutomata.makeStringUnion(Iterable)instead(package private) static AutomatonDeprecated.Build a minimal, deterministic automaton from a sorted list ofBytesRefrepresenting strings in UTF-8.static AutomatonAutomata.makeBinaryStringUnion(Iterable<BytesRef> utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRefs representing UTF-8 encoded strings.static AutomatonAutomata.makeStringUnion(Iterable<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 BytesRefModifier and TypeFieldDescriptionprivate final BytesRefHeapPointWriter.HeapPointValue.packedValue(package private) final BytesRefOfflinePointReader.OfflinePointValue.packedValueprivate final BytesRefHeapPointWriter.HeapPointValue.packedValueDocID(package private) final BytesRefOfflinePointReader.OfflinePointValue.packedValueDocID(package private) final BytesRefBKDWriter.scratchBytesRef1(package private) final BytesRefBKDWriter.scratchBytesRef2Methods in org.apache.lucene.util.bkd that return BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]BKDWriter.computeMinMax(int count, IntFunction<BytesRef> packedValues, int offset, int length) Return an array that contains the min and max values for the [offset, offset+length] interval of the givenBytesRefs.BKDWriter.BKDTreeLeafNodes.getSplitValue(int index) split value between two leaves.HeapPointWriter.HeapPointValue.packedValue()OfflinePointReader.OfflinePointValue.packedValue()PointValue.packedValue()Returns the packed values for the dimensionsHeapPointWriter.HeapPointValue.packedValueDocIDBytes()OfflinePointReader.OfflinePointValue.packedValueDocIDBytes()PointValue.packedValueDocIDBytes()Returns the byte representation of the packed value together with the docIDMethods in org.apache.lucene.util.bkd with parameters of type BytesRefModifier and TypeMethodDescriptionprivate voidBKDWriter.computePackedValueBounds(MutablePointTree values, int from, int to, byte[] minPackedValue, byte[] maxPackedValue, BytesRef scratch) static voidMutablePointTreeReaderUtils.partition(BKDConfig config, int maxDoc, int splitDim, int commonPrefixLen, MutablePointTree reader, int from, int to, int mid, BytesRef scratch1, BytesRef scratch2) Partition points aroundmid.static voidMutablePointTreeReaderUtils.sortByDim(BKDConfig config, int sortedDim, int[] commonPrefixLengths, MutablePointTree reader, int from, int to, BytesRef scratch1, BytesRef scratch2) Sort points on the given dimension.private static booleanBKDWriter.valueInBounds(BKDConfig config, BytesRef packedValue, byte[] minPackedValue, byte[] maxPackedValue) Method parameters in org.apache.lucene.util.bkd with type arguments of type BytesRefModifier and TypeMethodDescriptionprivate static BytesRef[]BKDWriter.computeMinMax(int count, IntFunction<BytesRef> packedValues, int offset, int length) Return an array that contains the min and max values for the [offset, offset+length] interval of the givenBytesRefs.private static intBKDWriter.runLen(IntFunction<BytesRef> packedValues, int start, int end, int byteOffset) private static booleanBKDWriter.valuesInOrderAndBounds(BKDConfig config, int count, int sortedDim, byte[] minPackedValue, byte[] maxPackedValue, IntFunction<BytesRef> values, int[] docs, int docsOffset) private voidBKDWriter.writeActualBounds(DataOutput out, int[] commonPrefixLengths, int count, IntFunction<BytesRef> packedValues) private voidBKDWriter.writeHighCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues, int compressedByteOffset) private voidBKDWriter.writeLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, IntFunction<BytesRef> packedValues, int leafCardinality) private voidBKDWriter.writeLeafBlockPackedValuesRange(DataOutput out, int[] commonPrefixLengths, int start, int end, IntFunction<BytesRef> packedValues) private voidBKDWriter.writeLowCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, IntFunction<BytesRef> packedValues) -
Uses of BytesRef in org.apache.lucene.util.fst
Fields in org.apache.lucene.util.fst declared as BytesRefModifier and TypeFieldDescriptionprivate final BytesRefBytesRefFSTEnum.currentBytesRefFSTEnum.InputOutput.inputprivate static final BytesRefByteSequenceOutputs.NO_OUTPUTprivate BytesRefBytesRefFSTEnum.targetMethods in org.apache.lucene.util.fst that return BytesRefModifier and TypeMethodDescriptionByteSequenceOutputs.getNoOutput()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 BytesRefModifier and TypeMethodDescriptionstatic <T> TLooks up the output for this input, or null if the input is not acceptedByteSequenceOutputs.outputToString(BytesRef output) longByteSequenceOutputs.ramBytesUsed(BytesRef output) Seeks to smallest term that's >= target.Seeks to exactly this term, returning null if the term doesn't exist.Seeks to biggest term that's <= target.static 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)
KeywordField.newSetQuery(String, Collection)instead.