Package | Description |
---|---|
org.apache.lucene.analysis |
Text analysis.
|
org.apache.lucene.analysis.hunspell |
Stemming TokenFilter using a Java implementation of the
Hunspell stemming algorithm.
|
org.apache.lucene.analysis.miscellaneous |
Miscellaneous Tokenstreams.
|
org.apache.lucene.analysis.payloads |
Provides various convenience classes for creating payloads on Tokens.
|
org.apache.lucene.analysis.synonym |
Analysis components for Synonyms.
|
org.apache.lucene.analysis.tokenattributes |
General-purpose attributes for text analysis.
|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.codecs.lucene70 |
Components from the Lucene 7.0 index format.
|
org.apache.lucene.codecs.lucene80 |
Lucene 8.0 file format.
|
org.apache.lucene.collation |
Unicode collation support.
|
org.apache.lucene.collation.tokenattributes |
Custom
AttributeImpl for indexing collation keys as index terms. |
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.queries.function.valuesource |
A variety of functions to use with FunctionQuery.
|
org.apache.lucene.queries.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.flexible.standard.nodes |
Standard Lucene Query Nodes.
|
org.apache.lucene.queryparser.surround.query |
This package contains SrndQuery and its subclasses.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.intervals |
Intervals queries
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
org.apache.lucene.util.bkd |
Block KD-tree, implementing the generic spatial data structure described in
this paper.
|
org.apache.lucene.util.fst |
Finite state transducers
|
org.apache.lucene.util.graph |
Utility classes for working with token streams as graphs.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass and implement this if you need to change the
token (such as escaping certain bytes) before it's
turned into a graph.
|
BytesRef |
Analyzer.normalize(java.lang.String fieldName,
java.lang.String text)
Normalize a string down to the representation that it would have in the
index.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass and implement this if you need to change the
token (such as escaping certain bytes) before it's
turned into a graph.
|
Modifier and Type | Field and Description |
---|---|
private BytesRef |
Stemmer.scratch |
Modifier and Type | Method and Description |
---|---|
(package private) static char[] |
Dictionary.decodeFlags(BytesRef b) |
Modifier and Type | Field and Description |
---|---|
private FST<BytesRef> |
StemmerOverrideFilter.StemmerOverrideMap.fst |
private FST.Arc<BytesRef> |
StemmerOverrideFilter.scratchArc |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken(BytesRef in) |
BytesRef |
StemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer,
int bufferLen,
FST.Arc<BytesRef> scratchArc,
FST.BytesReader fstReader)
Returns the value mapped to the given key or
null if the key is not in the FST dictionary. |
BytesRef |
ConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl.getBytesRef() |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
ConcatenateGraphFilter.EscapingTokenStreamToAutomaton.changeToken(BytesRef in) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
StemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer,
int bufferLen,
FST.Arc<BytesRef> scratchArc,
FST.BytesReader fstReader)
Returns the value mapped to the given key or
null if the key is not in the FST dictionary. |
Constructor and Description |
---|
StemmerOverrideMap(FST<BytesRef> fst,
boolean ignoreCase)
Creates a new
StemmerOverrideFilter.StemmerOverrideMap |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
NumericPayloadTokenFilter.thePayload |
Modifier and Type | Method and Description |
---|---|
BytesRef |
PayloadEncoder.encode(char[] buffer) |
BytesRef |
AbstractEncoder.encode(char[] buffer) |
BytesRef |
FloatEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
PayloadEncoder.encode(char[] buffer,
int offset,
int length)
Convert a char array to a
BytesRef |
BytesRef |
IdentityEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
IntegerEncoder.encode(char[] buffer,
int offset,
int length) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SynonymGraphFilter.scratchBytes |
private BytesRef |
SynonymFilter.scratchBytes
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
FST<BytesRef> |
SynonymMap.fst
map<input word, list<ord>>
|
private FST<BytesRef> |
SynonymGraphFilter.fst |
private FST<BytesRef> |
SynonymFilter.fst
Deprecated.
|
private FST.Arc<BytesRef> |
SynonymGraphFilter.scratchArc |
private FST.Arc<BytesRef> |
SynonymFilter.scratchArc
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
SynonymFilter.addOutput(BytesRef bytes,
int matchInputLength,
int matchEndOffset)
Deprecated.
|
private void |
SynonymGraphFilter.bufferOutputTokens(BytesRef bytes,
int matchInputLength)
Expands the output graph into the necessary tokens, adding
synonyms as side paths parallel to the input tokens, and
buffers them in the output token buffer.
|
Constructor and Description |
---|
SynonymMap(FST<BytesRef> fst,
BytesRefHash words,
int maxHorizontalContext) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
BytesTermAttributeImpl.bytes |
private BytesRef |
PayloadAttributeImpl.payload |
Modifier and Type | Method and Description |
---|---|
BytesRef |
BytesTermAttributeImpl.getBytesRef() |
BytesRef |
TermToBytesRefAttribute.getBytesRef()
Retrieve this attribute's BytesRef.
|
BytesRef |
CharTermAttributeImpl.getBytesRef() |
BytesRef |
PayloadAttribute.getPayload()
Returns this Token's payload.
|
BytesRef |
PayloadAttributeImpl.getPayload() |
Modifier and Type | Method and Description |
---|---|
void |
BytesTermAttributeImpl.setBytesRef(BytesRef bytes) |
void |
BytesTermAttribute.setBytesRef(BytesRef bytes)
Sets the
BytesRef of the term |
void |
PayloadAttribute.setPayload(BytesRef payload)
Sets this Token's payload.
|
void |
PayloadAttributeImpl.setPayload(BytesRef payload) |
Constructor and Description |
---|
PayloadAttributeImpl(BytesRef payload)
Initialize this attribute with the given payload.
|
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
StoredFieldsWriter.MergeVisitor.binaryValue |
Modifier and Type | Method and Description |
---|---|
BytesRef |
StoredFieldsWriter.MergeVisitor.binaryValue() |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
DocValuesConsumer.BitsFilteredTermsEnum.accept(BytesRef term) |
abstract void |
PushPostingsWriterBase.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset)
Add a new position and payload, and start/end offset.
|
abstract void |
TermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload)
Adds a term position and offsets
|
abstract void |
MutablePointValues.getValue(int i,
BytesRef packedValue)
Set
packedValue with a reference to the packed bytes of the i-th value. |
abstract void |
TermVectorsWriter.startTerm(BytesRef term,
int freq)
Adds a term and its term frequency
freq . |
abstract BlockTermState |
PostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
IntersectTermsEnum.commonSuffix |
(package private) static BytesRef |
BlockTreeTermsWriter.EMPTY_BYTES_REF |
BytesRef |
BlockTreeTermsWriter.FieldMetaData.maxTerm |
(package private) BytesRef |
FieldReader.maxTerm |
BytesRef |
BlockTreeTermsWriter.FieldMetaData.minTerm |
(package private) BytesRef |
FieldReader.minTerm |
(package private) static BytesRef |
BlockTreeTermsReader.NO_OUTPUT |
(package private) BytesRef |
IntersectTermsEnumFrame.outputPrefix |
BytesRef |
BlockTreeTermsWriter.PendingBlock.prefix |
BytesRef |
BlockTreeTermsWriter.FieldMetaData.rootCode |
(package private) BytesRef |
FieldReader.rootCode |
private BytesRef |
IntersectTermsEnum.savedStartTerm |
private BytesRef |
IntersectTermsEnum.term |
Modifier and Type | Field and Description |
---|---|
(package private) FST.Arc<BytesRef> |
IntersectTermsEnumFrame.arc |
(package private) FST.Arc<BytesRef> |
SegmentTermsEnumFrame.arc |
(package private) static Outputs<BytesRef> |
BlockTreeTermsReader.FST_OUTPUTS |
(package private) static Outputs<BytesRef> |
IntersectTermsEnum.fstOutputs |
FST<BytesRef> |
BlockTreeTermsWriter.PendingBlock.index |
(package private) FST<BytesRef> |
FieldReader.index |
java.util.List<FST<BytesRef>> |
BlockTreeTermsWriter.PendingBlock.subIndices |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
IntersectTermsEnum._next() |
BytesRef |
FieldReader.getMax() |
BytesRef |
FieldReader.getMin() |
BytesRef |
SegmentTermsEnum.next() |
BytesRef |
IntersectTermsEnum.next() |
private static BytesRef |
BlockTreeTermsReader.readBytesRef(IndexInput in) |
BytesRef |
SegmentTermsEnum.term() |
BytesRef |
IntersectTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
private FST.Arc<BytesRef> |
SegmentTermsEnum.getArc(int ord) |
private FST.Arc<BytesRef> |
IntersectTermsEnum.getArc(int ord) |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
BlockTreeTermsWriter.brToString(BytesRef b) |
(package private) java.lang.String |
BlockTreeTermsReader.brToString(BytesRef b) |
(package private) static java.lang.String |
IntersectTermsEnum.brToString(BytesRef b) |
TermsEnum |
FieldReader.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
(package private) void |
IntersectTermsEnumFrame.load(BytesRef frameIndexData) |
private boolean |
SegmentTermsEnumFrame.prefixMatches(BytesRef target) |
(package private) SegmentTermsEnumFrame |
SegmentTermsEnum.pushFrame(FST.Arc<BytesRef> arc,
BytesRef frameData,
int length) |
private void |
BlockTreeTermsWriter.TermsWriter.pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.
|
void |
SegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) |
TermsEnum.SeekStatus |
SegmentTermsEnumFrame.scanToTerm(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
SegmentTermsEnumFrame.scanToTermLeaf(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
SegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
SegmentTermsEnum.seekCeil(BytesRef target) |
TermsEnum.SeekStatus |
IntersectTermsEnum.seekCeil(BytesRef text) |
boolean |
SegmentTermsEnum.seekExact(BytesRef target) |
boolean |
IntersectTermsEnum.seekExact(BytesRef text) |
void |
SegmentTermsEnum.seekExact(BytesRef target,
TermState otherState) |
private void |
IntersectTermsEnum.seekToStartTerm(BytesRef target) |
void |
SegmentTermsEnumFrame.setFloorData(ByteArrayDataInput in,
BytesRef source) |
private boolean |
IntersectTermsEnum.setSavedStartTerm(BytesRef startTerm) |
(package private) void |
Stats.term(BytesRef term) |
void |
BlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
NormsProducer norms)
Writes one term's worth of postings.
|
private static void |
BlockTreeTermsWriter.writeBytesRef(IndexOutput out,
BytesRef bytes) |
Modifier and Type | Method and Description |
---|---|
private void |
BlockTreeTermsWriter.PendingBlock.append(Builder<BytesRef> builder,
FST<BytesRef> subIndex,
IntsRefBuilder scratchIntsRef) |
private void |
BlockTreeTermsWriter.PendingBlock.append(Builder<BytesRef> builder,
FST<BytesRef> subIndex,
IntsRefBuilder scratchIntsRef) |
(package private) SegmentTermsEnumFrame |
SegmentTermsEnum.pushFrame(FST.Arc<BytesRef> arc,
BytesRef frameData,
int length) |
(package private) SegmentTermsEnumFrame |
SegmentTermsEnum.pushFrame(FST.Arc<BytesRef> arc,
long fp,
int length) |
Constructor and Description |
---|
FieldMetaData(FieldInfo fieldInfo,
BytesRef rootCode,
long numTerms,
long indexStartFP,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
int longsSize,
BytesRef minTerm,
BytesRef maxTerm) |
FieldReader(BlockTreeTermsReader parent,
FieldInfo fieldInfo,
long numTerms,
BytesRef rootCode,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
long indexStartFP,
int longsSize,
IndexInput indexIn,
BytesRef minTerm,
BytesRef maxTerm,
boolean openedFromWriter,
BlockTreeTermsReader.FSTLoadMode fstLoadMode) |
IntersectTermsEnum(FieldReader fr,
Automaton automaton,
RunAutomaton runAutomaton,
BytesRef commonSuffix,
BytesRef startTerm) |
PendingBlock(BytesRef prefix,
long fp,
boolean hasTerms,
boolean isFloor,
int floorLeadByte,
java.util.List<FST<BytesRef>> subIndices) |
PendingTerm(BytesRef term,
BlockTermState state) |
Constructor and Description |
---|
PendingBlock(BytesRef prefix,
long fp,
boolean hasTerms,
boolean isFloor,
int floorLeadByte,
java.util.List<FST<BytesRef>> subIndices) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
CompressingStoredFieldsReader.BlockState.bytes |
private BytesRef |
CompressingTermVectorsWriter.lastTerm |
private BytesRef |
CompressingTermVectorsReader.TVPostingsEnum.payload |
private BytesRef |
CompressingTermVectorsReader.TVFields.payloadBytes |
private BytesRef |
CompressingTermVectorsReader.TVTerms.payloadBytes |
private BytesRef |
CompressingTermVectorsReader.TVTermsEnum.payloads |
private BytesRef |
CompressingStoredFieldsReader.BlockState.spare |
private BytesRef |
CompressingTermVectorsReader.TVFields.suffixBytes |
private BytesRef |
CompressingTermVectorsReader.TVTermsEnum.term |
private BytesRef |
CompressingTermVectorsReader.TVTerms.termBytes |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompressingTermVectorsReader.TVPostingsEnum.getPayload() |
BytesRef |
CompressingTermVectorsReader.TVTermsEnum.next() |
BytesRef |
CompressingTermVectorsReader.TVTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
void |
CompressingTermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload) |
void |
CompressionMode.DeflateDecompressor.decompress(DataInput in,
int originalLength,
int offset,
int length,
BytesRef bytes) |
abstract void |
Decompressor.decompress(DataInput in,
int originalLength,
int offset,
int length,
BytesRef bytes)
Decompress bytes that were stored between offsets
offset and
offset+length in the original stream from the compressed
stream in to bytes . |
void |
CompressingTermVectorsReader.TVPostingsEnum.reset(int freq,
int positionIndex,
int[] positions,
int[] startOffsets,
int[] lengths,
BytesRef payloads,
int[] payloadIndex) |
(package private) void |
CompressingTermVectorsReader.TVTermsEnum.reset(int numTerms,
int flags,
int[] prefixLengths,
int[] suffixLengths,
int[] termFreqs,
int[] positionIndex,
int[] positions,
int[] startOffsets,
int[] lengths,
int[] payloadIndex,
BytesRef payloads,
ByteArrayDataInput in) |
TermsEnum.SeekStatus |
CompressingTermVectorsReader.TVTermsEnum.seekCeil(BytesRef text) |
void |
CompressingTermVectorsWriter.startTerm(BytesRef term,
int freq) |
Constructor and Description |
---|
TVFields(int[] fieldNums,
int[] fieldFlags,
int[] fieldNumOffs,
int[] numTerms,
int[] fieldLengths,
int[][] prefixLengths,
int[][] suffixLengths,
int[][] termFreqs,
int[][] positionIndex,
int[][] positions,
int[][] startOffsets,
int[][] lengths,
BytesRef payloadBytes,
int[][] payloadIndex,
BytesRef suffixBytes) |
TVTerms(int numTerms,
int flags,
int[] prefixLengths,
int[] suffixLengths,
int[] termFreqs,
int[] positionIndex,
int[] positions,
int[] startOffsets,
int[] lengths,
int[] payloadIndex,
BytesRef payloadBytes,
BytesRef termBytes) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
VersionFieldReader.maxTerm |
BytesRef |
VersionBlockTreeTermsWriter.FieldMetaData.maxTerm |
(package private) BytesRef |
VersionFieldReader.minTerm |
BytesRef |
VersionBlockTreeTermsWriter.FieldMetaData.minTerm |
private BytesRef |
SinglePostingsEnum.payload |
BytesRef |
VersionBlockTreeTermsWriter.PendingBlock.prefix |
Modifier and Type | Field and Description |
---|---|
(package private) FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> |
IDVersionSegmentTermsEnumFrame.arc |
(package private) static PairOutputs<BytesRef,java.lang.Long> |
VersionBlockTreeTermsWriter.FST_OUTPUTS |
(package private) FST<PairOutputs.Pair<BytesRef,java.lang.Long>> |
VersionFieldReader.index |
FST<PairOutputs.Pair<BytesRef,java.lang.Long>> |
VersionBlockTreeTermsWriter.PendingBlock.index |
(package private) static PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionBlockTreeTermsWriter.NO_OUTPUT |
(package private) PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionFieldReader.rootCode |
PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionBlockTreeTermsWriter.FieldMetaData.rootCode |
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> |
VersionBlockTreeTermsWriter.PendingBlock.subIndices |
Modifier and Type | Method and Description |
---|---|
BytesRef |
VersionFieldReader.getMax() |
BytesRef |
VersionFieldReader.getMin() |
BytesRef |
SinglePostingsEnum.getPayload() |
BytesRef |
SingleDocsEnum.getPayload() |
BytesRef |
IDVersionSegmentTermsEnum.next() |
private static BytesRef |
VersionBlockTreeTermsReader.readBytesRef(IndexInput in) |
BytesRef |
IDVersionSegmentTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
private FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> |
IDVersionSegmentTermsEnum.getArc(int ord) |
Modifier and Type | Method and Description |
---|---|
void |
IDVersionPostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset) |
(package private) java.lang.String |
VersionBlockTreeTermsReader.brToString(BytesRef b) |
(package private) static java.lang.String |
IDVersionSegmentTermsEnum.brToString(BytesRef b) |
(package private) static java.lang.String |
VersionBlockTreeTermsWriter.brToString(BytesRef b) |
static long |
IDVersionPostingsFormat.bytesToLong(BytesRef bytes) |
static void |
IDVersionPostingsFormat.longToBytes(long v,
BytesRef bytes) |
private boolean |
IDVersionSegmentTermsEnumFrame.prefixMatches(BytesRef target) |
private void |
VersionBlockTreeTermsWriter.TermsWriter.pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.
|
void |
IDVersionSegmentTermsEnumFrame.scanToFloorFrame(BytesRef target) |
TermsEnum.SeekStatus |
IDVersionSegmentTermsEnumFrame.scanToTerm(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
IDVersionSegmentTermsEnumFrame.scanToTermLeaf(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
IDVersionSegmentTermsEnumFrame.scanToTermNonLeaf(BytesRef target,
boolean exactOnly) |
TermsEnum.SeekStatus |
IDVersionSegmentTermsEnum.seekCeil(BytesRef target) |
boolean |
IDVersionSegmentTermsEnum.seekExact(BytesRef target) |
boolean |
IDVersionSegmentTermsEnum.seekExact(BytesRef target,
long minIDVersion)
Optimized version of
IDVersionSegmentTermsEnum.seekExact(BytesRef) that can
sometimes fail-fast if the version indexed with the requested ID
is less than the specified minIDVersion. |
void |
IDVersionSegmentTermsEnum.seekExact(BytesRef target,
TermState otherState) |
void |
IDVersionSegmentTermsEnumFrame.setFloorData(ByteArrayDataInput in,
BytesRef source) |
void |
VersionBlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
NormsProducer norms)
Writes one term's worth of postings.
|
private static void |
VersionBlockTreeTermsWriter.writeBytesRef(IndexOutput out,
BytesRef bytes) |
Modifier and Type | Method and Description |
---|---|
private void |
VersionBlockTreeTermsWriter.PendingBlock.append(Builder<PairOutputs.Pair<BytesRef,java.lang.Long>> builder,
FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex,
IntsRefBuilder scratchIntsRef) |
private void |
VersionBlockTreeTermsWriter.PendingBlock.append(Builder<PairOutputs.Pair<BytesRef,java.lang.Long>> builder,
FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex,
IntsRefBuilder scratchIntsRef) |
(package private) IDVersionSegmentTermsEnumFrame |
IDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc,
long fp,
int length) |
(package private) IDVersionSegmentTermsEnumFrame |
IDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc,
PairOutputs.Pair<BytesRef,java.lang.Long> frameData,
int length) |
(package private) IDVersionSegmentTermsEnumFrame |
IDVersionSegmentTermsEnum.pushFrame(FST.Arc<PairOutputs.Pair<BytesRef,java.lang.Long>> arc,
PairOutputs.Pair<BytesRef,java.lang.Long> frameData,
int length) |
Constructor and Description |
---|
FieldMetaData(FieldInfo fieldInfo,
PairOutputs.Pair<BytesRef,java.lang.Long> rootCode,
long numTerms,
long indexStartFP,
int longsSize,
BytesRef minTerm,
BytesRef maxTerm) |
PendingBlock(BytesRef prefix,
long maxVersion,
long fp,
boolean hasTerms,
boolean isFloor,
int floorLeadByte,
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices) |
PendingTerm(BytesRef term,
BlockTermState state) |
VersionFieldReader(VersionBlockTreeTermsReader parent,
FieldInfo fieldInfo,
long numTerms,
PairOutputs.Pair<BytesRef,java.lang.Long> rootCode,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
long indexStartFP,
int longsSize,
IndexInput indexIn,
BytesRef minTerm,
BytesRef maxTerm) |
Constructor and Description |
---|
FieldMetaData(FieldInfo fieldInfo,
PairOutputs.Pair<BytesRef,java.lang.Long> rootCode,
long numTerms,
long indexStartFP,
int longsSize,
BytesRef minTerm,
BytesRef maxTerm) |
PendingBlock(BytesRef prefix,
long maxVersion,
long fp,
boolean hasTerms,
boolean isFloor,
int floorLeadByte,
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices) |
VersionFieldReader(VersionBlockTreeTermsReader parent,
FieldInfo fieldInfo,
long numTerms,
PairOutputs.Pair<BytesRef,java.lang.Long> rootCode,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
long indexStartFP,
int longsSize,
IndexInput indexIn,
BytesRef minTerm,
BytesRef maxTerm) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
Lucene50PostingsReader.EverythingEnum.payload |
(package private) BytesRef |
Lucene50PostingsReader.BlockImpactsEverythingEnum.payload |
Modifier and Type | Method and Description |
---|---|
BytesRef |
Lucene50PostingsReader.BlockDocsEnum.getPayload() |
BytesRef |
Lucene50PostingsReader.BlockPostingsEnum.getPayload() |
BytesRef |
Lucene50PostingsReader.EverythingEnum.getPayload() |
BytesRef |
Lucene50PostingsReader.BlockImpactsEverythingEnum.getPayload() |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
Lucene70DocValuesProducer.TermsDict.term |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
Lucene70DocValuesProducer.TermsDict.getFirstTermFromBlock(long block) |
private BytesRef |
Lucene70DocValuesProducer.TermsDict.getTermFromIndex(long index) |
BytesRef |
Lucene70DocValuesProducer.BaseSortedDocValues.lookupOrd(int ord) |
BytesRef |
Lucene70DocValuesProducer.BaseSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
Lucene70DocValuesProducer.TermsDict.next() |
BytesRef |
Lucene70DocValuesProducer.TermsDict.term() |
Modifier and Type | Method and Description |
---|---|
int |
Lucene70DocValuesProducer.BaseSortedDocValues.lookupTerm(BytesRef key) |
long |
Lucene70DocValuesProducer.BaseSortedSetDocValues.lookupTerm(BytesRef key) |
private long |
Lucene70DocValuesProducer.TermsDict.seekBlock(BytesRef text) |
TermsEnum.SeekStatus |
Lucene70DocValuesProducer.TermsDict.seekCeil(BytesRef text) |
private long |
Lucene70DocValuesProducer.TermsDict.seekTermsIndex(BytesRef text) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
Lucene80DocValuesProducer.TermsDict.term |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
Lucene80DocValuesProducer.TermsDict.getFirstTermFromBlock(long block) |
private BytesRef |
Lucene80DocValuesProducer.TermsDict.getTermFromIndex(long index) |
BytesRef |
Lucene80DocValuesProducer.BaseSortedDocValues.lookupOrd(int ord) |
BytesRef |
Lucene80DocValuesProducer.BaseSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
Lucene80DocValuesProducer.TermsDict.next() |
BytesRef |
Lucene80DocValuesProducer.TermsDict.term() |
Modifier and Type | Method and Description |
---|---|
int |
Lucene80DocValuesProducer.BaseSortedDocValues.lookupTerm(BytesRef key) |
long |
Lucene80DocValuesProducer.BaseSortedSetDocValues.lookupTerm(BytesRef key) |
private long |
Lucene80DocValuesProducer.TermsDict.seekBlock(BytesRef text) |
TermsEnum.SeekStatus |
Lucene80DocValuesProducer.TermsDict.seekCeil(BytesRef text) |
private long |
Lucene80DocValuesProducer.TermsDict.seekTermsIndex(BytesRef text) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
CollationDocValuesField.bytes |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CollatedTermAttributeImpl.getBytesRef() |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SortedSetDocValuesRangeQuery.lowerValue |
private BytesRef |
SortedSetDocValuesRangeQuery.upperValue |
private BytesRef |
Field.BinaryTokenStream.value |
Modifier and Type | Method and Description |
---|---|
BytesRef |
Field.binaryValue() |
BytesRef |
LazyDocument.LazyField.binaryValue() |
BytesRef |
Document.getBinaryValue(java.lang.String name)
Returns an array of bytes for the first (or only) field that has the name
specified as the method parameter.
|
BytesRef[] |
Document.getBinaryValues(java.lang.String name)
Returns an array of byte arrays for of the fields that have the name specified
as the method parameter.
|
private static BytesRef |
BigIntegerPoint.pack(java.math.BigInteger... point) |
private static BytesRef |
BinaryPoint.pack(byte[]... point) |
private static BytesRef |
DoublePoint.pack(double... point) |
private static BytesRef |
HalfFloatPoint.pack(float... point) |
private static BytesRef |
FloatPoint.pack(float... point) |
private static BytesRef |
IntPoint.pack(int... point) |
private static BytesRef |
LongPoint.pack(long... point) |
Modifier and Type | Method and Description |
---|---|
static Query |
SortedDocValuesField.newSlowExactQuery(java.lang.String field,
BytesRef value)
Create a query for matching an exact
BytesRef value. |
static Query |
SortedSetDocValuesField.newSlowExactQuery(java.lang.String field,
BytesRef value)
Create a query for matching an exact
BytesRef value. |
static Query |
SortedDocValuesField.newSlowRangeQuery(java.lang.String field,
BytesRef lowerValue,
BytesRef upperValue,
boolean lowerInclusive,
boolean upperInclusive)
Create a range query that matches all documents whose value is between
lowerValue and upperValue included. |
static Query |
SortedSetDocValuesField.newSlowRangeQuery(java.lang.String field,
BytesRef lowerValue,
BytesRef upperValue,
boolean lowerInclusive,
boolean upperInclusive)
Create a range query that matches all documents whose value is between
lowerValue and upperValue . |
void |
BigIntegerPoint.setBytesValue(BytesRef bytes) |
void |
HalfFloatPoint.setBytesValue(BytesRef bytes) |
void |
IntPoint.setBytesValue(BytesRef bytes) |
void |
LongPoint.setBytesValue(BytesRef bytes) |
void |
Field.setBytesValue(BytesRef value)
Expert: change the value of this field.
|
void |
FloatPoint.setBytesValue(BytesRef bytes) |
void |
DoublePoint.setBytesValue(BytesRef bytes) |
void |
InetAddressPoint.setBytesValue(BytesRef bytes) |
void |
Field.BinaryTokenStream.setValue(BytesRef value) |
Constructor and Description |
---|
BinaryDocValuesField(java.lang.String name,
BytesRef value)
Create a new binary DocValues field.
|
Field(java.lang.String name,
BytesRef bytes,
IndexableFieldType type)
Create field with binary value.
|
SortedDocValuesField(java.lang.String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
SortedSetDocValuesField(java.lang.String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
SortedSetDocValuesRangeQuery(java.lang.String field,
BytesRef lowerValue,
BytesRef upperValue,
boolean lowerInclusive,
boolean upperInclusive) |
StoredField(java.lang.String name,
BytesRef value)
Create a stored-only field with the given binary value.
|
StoredField(java.lang.String name,
BytesRef bytes,
FieldType type)
Expert: allows you to customize the
FieldType . |
StringField(java.lang.String name,
BytesRef value,
Field.Store stored)
Creates a new binary StringField, indexing the provided binary (BytesRef)
value as a single token.
|
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
FilteredTermsEnum.actualTerm
Which term the enum is currently positioned to.
|
(package private) BytesRef |
SortingStoredFieldsConsumer.CopyVisitor.binaryValue |
(package private) BytesRef |
FieldUpdatesBuffer.BufferedUpdate.binaryValue
a binary value or null if this buffer holds numeric updates
|
(package private) BytesRef |
Term.bytes |
(package private) BytesRef |
PrefixCodedTerms.TermIterator.bytes |
private BytesRef |
AutomatonTermsEnum.commonSuffixRef |
private BytesRef |
MultiTermsEnum.current |
BytesRef |
MultiTermsEnum.TermsEnumWithSlice.current |
(package private) BytesRef |
OrdinalMap.TermsEnumIndex.currentTerm |
private BytesRef |
SortedDocValues.empty |
(package private) BytesRef |
TermVectorsConsumer.flushTerm
Scratch term used by TermVectorsConsumerPerField.finishDocument.
|
private BytesRef |
FilteredTermsEnum.initialSeekTerm |
private BytesRef |
MultiTermsEnum.lastSeek |
private BytesRef |
FrozenBufferedUpdates.TermDocsIterator.lastTerm |
private BytesRef |
AutomatonTermsEnum.linearUpperBound |
private BytesRef |
SortingLeafReader.SortingPostingsEnum.payload |
private BytesRef |
FrozenBufferedUpdates.TermDocsIterator.readerTerm |
(package private) BytesRef |
SortedDocValuesWriter.BufferedSortedDocValues.scratch |
(package private) BytesRef |
SortedSetDocValuesWriter.BufferedSortedSetDocValues.scratch |
(package private) BytesRef |
FreqProxFields.FreqProxTermsEnum.scratch |
private BytesRef |
SingleTermsEnum.singleRef |
(package private) BytesRef |
BufferedUpdatesStream.SegmentState.term |
(package private) BytesRef |
FieldUpdatesBuffer.BufferedUpdate.termValue
The update terms value.
|
private BytesRef |
BinaryDocValuesFieldUpdates.Iterator.value |
private BytesRef |
DocValuesUpdate.BinaryDocValuesUpdate.value |
private BytesRef[] |
SortingLeafReader.CachedBinaryDVs.values |
Modifier and Type | Method and Description |
---|---|
BytesRef |
SortingStoredFieldsConsumer.CopyVisitor.binaryValue() |
BytesRef |
IndexableField.binaryValue()
Non-null if this field has a binary value
|
(package private) BytesRef |
BinaryDocValuesFieldUpdates.Iterator.binaryValue() |
(package private) abstract BytesRef |
DocValuesFieldUpdates.Iterator.binaryValue()
Returns a binary value for the current document if this iterator is a binary value iterator.
|
protected abstract BytesRef |
DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates.binaryValue() |
BytesRef |
SortedDocValues.binaryValue() |
BytesRef |
SortingLeafReader.SortingBinaryDocValues.binaryValue() |
BytesRef |
FilterBinaryDocValues.binaryValue() |
(package private) BytesRef |
NumericDocValuesFieldUpdates.Iterator.binaryValue() |
protected BytesRef |
NumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates.binaryValue() |
abstract BytesRef |
BinaryDocValues.binaryValue()
Returns the binary value for the current document ID.
|
BytesRef |
BinaryDocValuesWriter.BufferedBinaryDocValues.binaryValue() |
BytesRef |
Term.bytes()
Returns the bytes of this term, these should not be modified.
|
BytesRef |
Terms.getMax()
Returns the largest term (in lexicographic order) in the field.
|
BytesRef |
MultiTerms.getMax() |
BytesRef |
Terms.getMin()
Returns the smallest term (in lexicographic order) in the field.
|
BytesRef |
MultiTerms.getMin() |
BytesRef |
MappingMultiPostingsEnum.getPayload() |
BytesRef |
FilterLeafReader.FilterPostingsEnum.getPayload() |
BytesRef |
MultiPostingsEnum.getPayload() |
abstract BytesRef |
PostingsEnum.getPayload()
Returns the payload at this position, or null if no
payload was indexed.
|
BytesRef |
FreqProxFields.FreqProxDocsEnum.getPayload() |
BytesRef |
FreqProxFields.FreqProxPostingsEnum.getPayload() |
BytesRef |
SlowImpactsEnum.getPayload() |
BytesRef |
SortingLeafReader.SortingDocsEnum.getPayload() |
BytesRef |
SortingLeafReader.SortingPostingsEnum.getPayload() |
(package private) BytesRef |
DocValuesUpdate.BinaryDocValuesUpdate.getValue() |
BytesRef |
SortedDocValuesWriter.BufferedSortedDocValues.lookupOrd(int ord) |
BytesRef |
MultiDocValues.MultiSortedDocValues.lookupOrd(int ord) |
abstract BytesRef |
SortedDocValues.lookupOrd(int ord)
Retrieves the value for the specified ordinal.
|
BytesRef |
SortingLeafReader.SortingSortedDocValues.lookupOrd(int ord) |
BytesRef |
SortedSetDocValuesWriter.BufferedSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
MultiDocValues.MultiSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
SortingLeafReader.SortingSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
SingletonSortedSetDocValues.lookupOrd(long ord) |
abstract BytesRef |
SortedSetDocValues.lookupOrd(long ord)
Retrieves the value for the specified ordinal.
|
BytesRef |
FilterLeafReader.FilterTermsEnum.next() |
BytesRef |
FreqProxFields.FreqProxTermsEnum.next() |
BytesRef |
SortedSetDocValuesTermsEnum.next() |
BytesRef |
SortedDocValuesTermsEnum.next() |
BytesRef |
OrdinalMap.TermsEnumIndex.next() |
BytesRef |
MultiTermsEnum.next() |
BytesRef |
ExitableDirectoryReader.ExitableTermsEnum.next() |
BytesRef |
FilteredTermsEnum.next() |
BytesRef |
PrefixCodedTerms.TermIterator.next() |
protected BytesRef |
AutomatonTermsEnum.nextSeekTerm(BytesRef term) |
protected BytesRef |
FilteredTermsEnum.nextSeekTerm(BytesRef currentTerm)
On the first call to
FilteredTermsEnum.next() or if FilteredTermsEnum.accept(org.apache.lucene.util.BytesRef) returns
FilteredTermsEnum.AcceptStatus.YES_AND_SEEK or FilteredTermsEnum.AcceptStatus.NO_AND_SEEK ,
this method will be called to eventually seek the underlying TermsEnum
to a new position. |
(package private) static BytesRef |
DocValuesUpdate.BinaryDocValuesUpdate.readFrom(DataInput in,
BytesRef scratch) |
BytesRef |
FilterLeafReader.FilterTermsEnum.term() |
BytesRef |
FreqProxFields.FreqProxTermsEnum.term() |
abstract BytesRef |
TermsEnum.term()
Returns current term.
|
BytesRef |
SortedSetDocValuesTermsEnum.term() |
BytesRef |
SortedDocValuesTermsEnum.term() |
BytesRef |
MultiTermsEnum.term() |
BytesRef |
FilteredTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
AutomatonTermsEnum.accept(BytesRef term)
Returns true if the term matches the automaton.
|
protected FilteredTermsEnum.AcceptStatus |
SingleTermsEnum.accept(BytesRef term) |
protected abstract FilteredTermsEnum.AcceptStatus |
FilteredTermsEnum.accept(BytesRef term)
Return if term is accepted, not accepted or the iteration should ended
(and possibly seek).
|
void |
BinaryDocValuesFieldUpdates.add(int doc,
BytesRef value) |
(package private) abstract void |
DocValuesFieldUpdates.add(int doc,
BytesRef value) |
(package private) void |
DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates.add(int doc,
BytesRef value) |
(package private) void |
NumericDocValuesFieldUpdates.add(int doc,
BytesRef value) |
void |
PrefixCodedTerms.Builder.add(java.lang.String field,
BytesRef bytes)
add a term.
|
private void |
SortedDocValuesWriter.addOneValue(BytesRef value) |
private void |
SortedSetDocValuesWriter.addOneValue(BytesRef value) |
void |
PointValuesWriter.addPackedValue(int docID,
BytesRef value) |
(package private) void |
FieldUpdatesBuffer.addUpdate(Term term,
BytesRef value,
int docUpTo) |
void |
SortedDocValuesWriter.addValue(int docID,
BytesRef value) |
void |
SortedSetDocValuesWriter.addValue(int docID,
BytesRef value) |
void |
BinaryDocValuesWriter.addValue(int docID,
BytesRef value) |
private boolean |
FrozenBufferedUpdates.TermDocsIterator.assertSorted(BytesRef term) |
private static boolean |
CheckIndex.checkSingleTermRange(java.lang.String field,
int maxDoc,
Terms terms,
BytesRef minTerm,
BytesRef maxTerm,
FixedBitSet normalDocs,
FixedBitSet intersectDocs)
Test Terms.intersect on this range, and validates that it returns the same doc ids as using non-intersect TermsEnum.
|
private static long |
CheckIndex.getDocsFromTermRange(java.lang.String field,
int maxDoc,
TermsEnum termsEnum,
FixedBitSet docsSeen,
BytesRef minTerm,
BytesRef maxTerm,
boolean isIntersect)
Visits all terms in the range minTerm (inclusive) to maxTerm (exclusive), marking all doc IDs encountered into allDocsSeen, and
returning the total number of terms visited.
|
static PostingsEnum |
MultiTerms.getTermPostingsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiTerms.getTermPostingsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether freqs, positions, offsets or payloads
are required. |
void |
PointValuesWriter.MutableSortingPointValues.getValue(int i,
BytesRef packedValue) |
TermsEnum |
Terms.intersect(CompiledAutomaton compiled,
BytesRef startTerm)
Returns a TermsEnum that iterates over all terms and
documents that are accepted by the provided
CompiledAutomaton . |
TermsEnum |
SortingLeafReader.SortingTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
ExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
int |
SortedDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
long |
SingletonSortedSetDocValues.lookupTerm(BytesRef key) |
long |
SortedSetDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
protected BytesRef |
AutomatonTermsEnum.nextSeekTerm(BytesRef term) |
protected BytesRef |
FilteredTermsEnum.nextSeekTerm(BytesRef currentTerm)
On the first call to
FilteredTermsEnum.next() or if FilteredTermsEnum.accept(org.apache.lucene.util.BytesRef) returns
FilteredTermsEnum.AcceptStatus.YES_AND_SEEK or FilteredTermsEnum.AcceptStatus.NO_AND_SEEK ,
this method will be called to eventually seek the underlying TermsEnum
to a new position. |
(package private) DocIdSetIterator |
FrozenBufferedUpdates.TermDocsIterator.nextTerm(java.lang.String field,
BytesRef term) |
(package private) static BytesRef |
DocValuesUpdate.BinaryDocValuesUpdate.readFrom(DataInput in,
BytesRef scratch) |
void |
MultiTermsEnum.TermsEnumWithSlice.reset(TermsEnum terms,
BytesRef term) |
TermsEnum.SeekStatus |
FilterLeafReader.FilterTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
FreqProxFields.FreqProxTermsEnum.seekCeil(BytesRef text) |
abstract TermsEnum.SeekStatus |
TermsEnum.seekCeil(BytesRef text)
Seeks to the specified term, if it exists, or to the
next (ceiling) term.
|
TermsEnum.SeekStatus |
SortedSetDocValuesTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
SortedDocValuesTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
MultiTermsEnum.seekCeil(BytesRef term) |
TermsEnum.SeekStatus |
FilteredTermsEnum.seekCeil(BytesRef term)
This enum does not support seeking!
|
boolean |
FilterLeafReader.FilterTermsEnum.seekExact(BytesRef text) |
abstract boolean |
TermsEnum.seekExact(BytesRef text)
Attempts to seek to the exact term, returning true if the term is found.
|
boolean |
SortedSetDocValuesTermsEnum.seekExact(BytesRef text) |
boolean |
SortedDocValuesTermsEnum.seekExact(BytesRef text) |
boolean |
BaseTermsEnum.seekExact(BytesRef text) |
boolean |
MultiTermsEnum.seekExact(BytesRef term) |
boolean |
FilteredTermsEnum.seekExact(BytesRef term)
This enum does not support seeking!
|
void |
FilterLeafReader.FilterTermsEnum.seekExact(BytesRef term,
TermState state) |
abstract void |
TermsEnum.seekExact(BytesRef term,
TermState state)
Expert: Seeks a specific position by
TermState previously obtained
from TermsEnum.termState() . |
void |
SortedSetDocValuesTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
SortedDocValuesTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
BaseTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
FilteredTermsEnum.seekExact(BytesRef term,
TermState state)
This enum does not support seeking!
|
(package private) void |
Term.set(java.lang.String fld,
BytesRef bytes)
Resets the field and text of a Term.
|
protected void |
FilteredTermsEnum.setInitialSeekTerm(BytesRef term)
Use this method to set the initial
BytesRef
to seek before iterating. |
static java.lang.String |
Term.toString(BytesRef termText)
Returns human-readable form of the term text.
|
long |
IndexWriter.updateBinaryDocValue(Term term,
java.lang.String field,
BytesRef value)
|
Constructor and Description |
---|
BinaryDocValuesUpdate(Term term,
java.lang.String field,
BytesRef value) |
BinaryDocValuesUpdate(Term term,
java.lang.String field,
BytesRef value,
int docIDUpTo) |
CachedBinaryDVs(BytesRef[] values,
BitSet docsWithField) |
Iterator(int size,
PagedGrowableWriter offsets,
PagedGrowableWriter lengths,
PagedMutable docs,
BytesRef values,
long delGen) |
SingleTermsEnum(TermsEnum tenum,
BytesRef termText)
Creates a new
SingleTermsEnum . |
Term(java.lang.String fld,
BytesRef bytes)
Constructs a Term with the given field and bytes.
|
Modifier and Type | Field and Description |
---|---|
private BytesRef |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.br |
private BytesRef[] |
MemoryIndex.Info.pointValues |
Modifier and Type | Method and Description |
---|---|
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryPostingsEnum.getPayload() |
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.next() |
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
private int |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.binarySearch(BytesRef b,
BytesRef bytesRef,
int low,
int high,
BytesRefHash hash,
int[] ords) |
TermsEnum.SeekStatus |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.seekCeil(BytesRef text) |
boolean |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.seekExact(BytesRef text) |
void |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.seekExact(BytesRef term,
TermState state) |
private static SortedDocValues |
MemoryIndex.sortedDocValues(BytesRef value) |
private void |
MemoryIndex.storePointValues(MemoryIndex.Info info,
BytesRef pointValue) |
Modifier and Type | Field and Description |
---|---|
BytesRef |
TermStats.termtext |
Constructor and Description |
---|
TermStats(java.lang.String field,
BytesRef termtext,
int df,
long tf) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
LiteralValueSource.bytesRef |
protected BytesRef |
TotalTermFreqValueSource.indexedBytes |
protected BytesRef |
DocFreqValueSource.indexedBytes |
Constructor and Description |
---|
DocFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
IDFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TermFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TotalTermFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<BytesRef> |
SpanPayloadCheckQuery.payloadToMatch |
Modifier and Type | Method and Description |
---|---|
float |
PayloadDecoder.computePayloadFactor(BytesRef payload)
Compute a float value for the given payload
|
Constructor and Description |
---|
SpanPayloadCheckQuery(SpanQuery match,
java.util.List<BytesRef> payloadToMatch) |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
QueryParserBase.analyzeWildcard(java.lang.String field,
java.lang.String termStr) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
RegexpQueryNode.textToBytesRef() |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SrndTruncQuery.prefixRef |
private BytesRef |
SrndPrefixQuery.prefixRef |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
FieldComparator.TermValComparator.bottom |
private BytesRef |
FuzzyTermsEnum.bottomTerm |
(package private) BytesRef |
FieldComparator.TermOrdValComparator.bottomValue |
private BytesRef |
MaxNonCompetitiveBoostAttributeImpl.competitiveTerm |
private BytesRef |
TermRangeQuery.lowerTerm |
private BytesRef |
PointInSetQuery.MergePointVisitor.nextQueryPoint |
private BytesRef |
FuzzyTermsEnum.queuedBottom |
private BytesRef |
PointInSetQuery.MergePointVisitor.scratch |
(package private) BytesRef |
MultiTermQueryConstantScoreWrapper.TermAndState.term |
private BytesRef |
TermStatistics.term |
(package private) BytesRef |
TermInSetQuery.TermAndState.term |
private BytesRef[] |
BM25FQuery.terms |
(package private) BytesRef |
FieldComparator.TermOrdValComparator.topValue
Set by setTopValue.
|
private BytesRef |
FieldComparator.TermValComparator.topValue |
private BytesRef |
TermRangeQuery.upperTerm |
(package private) BytesRef[] |
FieldComparator.TermOrdValComparator.values |
private BytesRef[] |
FieldComparator.TermValComparator.values |
Modifier and Type | Field and Description |
---|---|
private java.util.Comparator<BytesRef> |
SortField.bytesComparator |
private java.util.Map<java.lang.Integer,BytesRef> |
TermAutomatonQuery.idToTerm |
private java.util.Map<java.lang.Integer,BytesRef> |
TermAutomatonScorer.idToTerm |
private java.util.Set<BytesRef> |
BM25FQuery.Builder.termsSet |
private java.util.Map<BytesRef,java.lang.Integer> |
TermAutomatonQuery.termToID |
Modifier and Type | Method and Description |
---|---|
private static BytesRef |
DocValuesStats.copyFrom(BytesRef src,
BytesRef dest) |
BytesRef |
MaxNonCompetitiveBoostAttributeImpl.getCompetitiveTerm() |
BytesRef |
MaxNonCompetitiveBoostAttribute.getCompetitiveTerm()
This is the term or
null of the term that triggered the boost change. |
BytesRef |
TermRangeQuery.getLowerTerm()
Returns the lower value of this range query
|
BytesRef |
MultiPhraseQuery.UnionPostingsEnum.getPayload() |
BytesRef |
MultiPhraseQuery.UnionFullPostingsEnum.getPayload() |
BytesRef |
TermRangeQuery.getUpperTerm()
Returns the upper value of this range query
|
private BytesRef |
FieldComparator.TermValComparator.getValueForDoc(int doc) |
BytesRef |
SortedSetSelector.MinValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MaxValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MiddleMinValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MiddleMaxValue.lookupOrd(int ord) |
abstract BytesRef |
PointInSetQuery.Stream.next() |
BytesRef |
FuzzyTermsEnum.next() |
BytesRef |
TermStatistics.term()
The term text.
|
BytesRef |
FuzzyTermsEnum.term() |
BytesRef |
FieldComparator.TermOrdValComparator.value(int slot) |
BytesRef |
FieldComparator.TermValComparator.value(int slot) |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<BytesRef> |
SortField.getBytesComparator() |
Modifier and Type | Method and Description |
---|---|
BM25FQuery.Builder |
BM25FQuery.Builder.addTerm(BytesRef term)
Adds a term to this builder.
|
void |
TermAutomatonQuery.addTransition(int source,
int dest,
BytesRef term)
Adds a transition to the automaton.
|
private void |
FuzzyTermsEnum.bottomChanged(BytesRef lastTerm)
fired when the max non-competitive boost has changed.
|
boolean |
ScoringRewrite.ParallelArraysTermCollector.collect(BytesRef bytes) |
abstract boolean |
TermCollectingRewrite.TermCollector.collect(BytesRef bytes)
return false to stop collecting
|
int |
FieldComparator.TermOrdValComparator.compareValues(BytesRef val1,
BytesRef val2) |
int |
FieldComparator.TermValComparator.compareValues(BytesRef val1,
BytesRef val2) |
private static BytesRef |
DocValuesStats.copyFrom(BytesRef src,
BytesRef dest) |
private TermsEnum |
FuzzyTermsEnum.getAutomatonEnum(int editDistance,
BytesRef lastTerm)
return an automata-based enum for matching up to editDistance from
lastTerm, if possible
|
private int |
TermAutomatonQuery.getTermID(BytesRef term) |
int |
SortedSetSelector.MinValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MaxValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MiddleMinValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MiddleMaxValue.lookupTerm(BytesRef key) |
private boolean |
FuzzyTermsEnum.matches(BytesRef termIn,
int k)
returns true if term is within k edits of the query term
|
TermsEnum.SeekStatus |
FuzzyTermsEnum.seekCeil(BytesRef text) |
boolean |
FuzzyTermsEnum.seekExact(BytesRef text) |
void |
FuzzyTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
MaxNonCompetitiveBoostAttributeImpl.setCompetitiveTerm(BytesRef competitiveTerm) |
void |
MaxNonCompetitiveBoostAttribute.setCompetitiveTerm(BytesRef competitiveTerm)
This is the term or
null of the term that triggered the boost change. |
void |
PointInSetQuery.SinglePointVisitor.setPoint(BytesRef point) |
void |
FieldComparator.TermOrdValComparator.setTopValue(BytesRef value) |
void |
FieldComparator.TermValComparator.setTopValue(BytesRef value) |
static Automaton |
PrefixQuery.toAutomaton(BytesRef prefix)
Build an automaton accepting all terms with the specified prefix.
|
static Automaton |
TermRangeQuery.toAutomaton(BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper) |
private static Term[] |
PhraseQuery.toTerms(java.lang.String field,
BytesRef... termBytes) |
Modifier and Type | Method and Description |
---|---|
void |
SortField.setBytesComparator(java.util.Comparator<BytesRef> b) |
Constructor and Description |
---|
BM25FQuery(BM25Similarity similarity,
java.util.TreeMap<java.lang.String,BM25FQuery.FieldAndWeight> fieldAndWeights,
BytesRef[] terms) |
DocValuesTermsQuery(java.lang.String field,
BytesRef... terms) |
PhraseQuery(int slop,
java.lang.String field,
BytesRef... terms)
Create a phrase query which will match documents that contain the given
list of terms at consecutive positions in
field , and at a
maximum edit distance of slop . |
PhraseQuery(java.lang.String field,
BytesRef... terms)
Create a phrase query which will match documents that contain the given
list of terms at consecutive positions in
field . |
TermAndState(BytesRef term,
TermState state,
int docFreq,
long totalTermFreq) |
TermInSetQuery(java.lang.String field,
BytesRef... terms)
Creates a new
TermInSetQuery from the given array of terms. |
TermRangeQuery(java.lang.String field,
BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper)
Constructs a query selecting all terms greater/equal than
lowerTerm
but less/equal than upperTerm . |
TermStatistics(BytesRef term,
long docFreq,
long totalTermFreq)
Creates statistics instance for a term.
|
Constructor and Description |
---|
DocValuesTermsQuery(java.lang.String field,
java.util.Collection<BytesRef> terms) |
TermAutomatonScorer(TermAutomatonQuery.TermAutomatonWeight weight,
TermAutomatonQuery.EnumAndScorer[] subs,
int anyTermID,
java.util.Map<java.lang.Integer,BytesRef> idToTerm,
LeafSimScorer docScorer) |
TermInSetQuery(java.lang.String field,
java.util.Collection<BytesRef> terms)
Creates a new
TermInSetQuery from the given collection of terms. |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
GroupFacetCollector.facetPrefix |
(package private) BytesRef |
TermGroupFacetCollector.GroupedFacetHit.facetValue |
(package private) BytesRef |
TermGroupFacetCollector.GroupedFacetHit.groupValue |
protected BytesRef |
GroupFacetCollector.SegmentResult.mergeTerm |
private BytesRef |
TermGroupSelector.scratch |
private BytesRef |
GroupFacetCollector.FacetEntry.value |
Modifier and Type | Method and Description |
---|---|
BytesRef |
TermGroupSelector.copyValue() |
BytesRef |
TermGroupSelector.currentValue() |
BytesRef |
GroupFacetCollector.FacetEntry.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
GroupFacetCollector.GroupedFacetResult.addFacetCount(BytesRef facetValue,
int count) |
static TermGroupFacetCollector |
TermGroupFacetCollector.createTermGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
boolean facetFieldMultivalued,
BytesRef facetPrefix,
int initialSize)
Factory method for creating the right implementation based on the fact whether the facet field contains
multiple tokens per documents.
|
Modifier and Type | Method and Description |
---|---|
void |
TermGroupSelector.setGroups(java.util.Collection<SearchGroup<BytesRef>> searchGroups) |
Constructor and Description |
---|
FacetEntry(BytesRef value,
int count) |
GroupedFacetHit(BytesRef groupValue,
BytesRef facetValue) |
GroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix) |
MV(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix,
int initialSize) |
SV(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix,
int initialSize) |
TermGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix,
int initialSize) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
PayloadFilteredTermIntervalsSource.term |
(package private) BytesRef |
TermIntervalsSource.term |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.function.Predicate<BytesRef> |
PayloadFilteredTermIntervalsSource.filter |
Modifier and Type | Method and Description |
---|---|
(package private) static IntervalIterator |
TermIntervalsSource.intervals(BytesRef term,
TermsEnum te) |
static IntervalsSource |
Intervals.term(BytesRef term)
Return an
IntervalsSource exposing intervals for a term |
static IntervalsSource |
Intervals.term(BytesRef term,
java.util.function.Predicate<BytesRef> payloadFilter)
Return an
IntervalsSource exposing intervals for a term, filtered by the value
of the term's payload at each position |
Modifier and Type | Method and Description |
---|---|
static IntervalsSource |
Intervals.term(BytesRef term,
java.util.function.Predicate<BytesRef> payloadFilter)
Return an
IntervalsSource exposing intervals for a term, filtered by the value
of the term's payload at each position |
static IntervalsSource |
Intervals.term(java.lang.String term,
java.util.function.Predicate<BytesRef> payloadFilter)
Return an
IntervalsSource exposing intervals for a term, filtered by the value
of the term's payload at each position |
Constructor and Description |
---|
PayloadFilteredTermIntervalsSource(BytesRef term,
java.util.function.Predicate<BytesRef> filter) |
TermIntervalsSource(BytesRef term) |
Constructor and Description |
---|
PayloadFilteredTermIntervalsSource(BytesRef term,
java.util.function.Predicate<BytesRef> filter) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SeekingTermSetTermsEnum.lastTerm |
private BytesRef |
PointInSetIncludingScoreQuery.MergePointVisitor.nextQueryPoint |
private BytesRef |
PointInSetIncludingScoreQuery.MergePointVisitor.scratch |
private BytesRef |
SeekingTermSetTermsEnum.seekTerm |
private BytesRef |
SeekingTermSetTermsEnum.spare |
Modifier and Type | Method and Description |
---|---|
BytesRef |
ToParentDocValues.SortedDVs.lookupOrd(int ord) |
protected BytesRef |
SeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
SeekingTermSetTermsEnum.accept(BytesRef term) |
protected BytesRef |
SeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) |
Modifier and Type | Method and Description |
---|---|
protected float |
BM25Similarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef[] |
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.matchDescriptions |
private BytesRef[] |
Passage.matchTerms |
private BytesRef |
OffsetsEnum.OfPostings.term |
(package private) BytesRef |
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.term |
private BytesRef |
PhraseHelper.SpanCollectedOffsetsEnum.term |
private BytesRef[] |
UHComponents.terms |
private static BytesRef[] |
TokenStreamOffsetStrategy.ZERO_LEN_BYTES_REF_ARRAY |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<BytesRef> |
PhraseHelper.positionInsensitiveTerms |
private java.util.HashMap<Query,BytesRef> |
OffsetsEnum.OfMatchesIteratorWithSubs.queryToTermMap |
private java.util.function.Supplier<BytesRef> |
OffsetsEnum.OfMatchesIterator.termSupplier |
(package private) java.util.Map<BytesRef,PhraseHelper.SpanCollectedOffsetsEnum> |
PhraseHelper.OffsetSpanCollector.termToOffsetsEnums |
Modifier and Type | Method and Description |
---|---|
protected static BytesRef[] |
UnifiedHighlighter.filterExtractedTerms(java.util.function.Predicate<java.lang.String> fieldMatcher,
java.util.Set<Term> queryTerms) |
BytesRef[] |
PhraseHelper.getAllPositionInsensitiveTerms()
Returns the terms that are position-insensitive (sorted).
|
BytesRef[] |
Passage.getMatchTerms()
BytesRef (term text) of the matches, corresponding with
Passage.getMatchStarts() . |
BytesRef |
TokenStreamOffsetStrategy.TokenStreamOffsetsEnum.getTerm() |
abstract BytesRef |
OffsetsEnum.getTerm()
The term at this position.
|
BytesRef |
OffsetsEnum.OfPostings.getTerm() |
BytesRef |
OffsetsEnum.OfMatchesIteratorWithSubs.getTerm() |
BytesRef |
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE.getTerm() |
BytesRef |
OffsetsEnum.OfMatchesIterator.getTerm() |
BytesRef |
OffsetsEnum.MultiOffsetsEnum.getTerm() |
BytesRef |
PhraseHelper.SpanCollectedOffsetsEnum.getTerm() |
BytesRef[] |
UHComponents.getTerms() |
private BytesRef |
OffsetsEnum.OfMatchesIteratorWithSubs.queryToTerm(Query query)
Maps a Query from
MatchesIterator.getQuery() to OffsetsEnum.getTerm() . |
Modifier and Type | Method and Description |
---|---|
void |
Passage.addMatch(int startOffset,
int endOffset,
BytesRef term,
int termFreqInDoc) |
private static CharacterRunAutomaton[] |
TokenStreamOffsetStrategy.convertTermsToAutomata(BytesRef[] terms,
CharacterRunAutomaton[] automata) |
protected void |
FieldOffsetStrategy.createOffsetsEnumsForTerms(BytesRef[] sourceTerms,
Terms termsIndex,
int doc,
java.util.List<OffsetsEnum> results) |
protected UnifiedHighlighter.OffsetSource |
UnifiedHighlighter.getOptimizedOffsetSource(java.lang.String field,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
TermsEnum |
TermVectorFilteredLeafReader.TermsFilteredTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
Constructor and Description |
---|
CachedOE(BytesRef term,
int startOffset,
int endOffset) |
OfPostings(BytesRef term,
int freq,
PostingsEnum postingsEnum) |
OfPostings(BytesRef term,
PostingsEnum postingsEnum) |
SpanCollectedOffsetsEnum(BytesRef term,
int postingsFreq) |
UHComponents(java.lang.String field,
java.util.function.Predicate<java.lang.String> fieldMatcher,
Query query,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags) |
Constructor and Description |
---|
OfMatchesIterator(MatchesIterator matchesIterator,
java.util.function.Supplier<BytesRef> termSupplier) |
Modifier and Type | Field and Description |
---|---|
static BytesRef |
UnicodeUtil.BIG_TERM
A binary term consisting of a number of 0xff bytes, likely to be bigger than other terms
(e.g.
|
(package private) BytesRef |
OfflineSorter.FileAndTop.current |
private BytesRef |
BytesRefBuilder.ref |
private BytesRef |
BytesRefHash.scratch1 |
Modifier and Type | Field and Description |
---|---|
private java.util.Comparator<BytesRef> |
OfflineSorter.comparator |
static java.util.Comparator<BytesRef> |
OfflineSorter.DEFAULT_COMPARATOR
Default comparator: sorts in binary (codepoint) order
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
BytesRef.clone()
Returns a shallow clone of this instance (the underlying bytes are
not copied and will be shared by both the returned object and this
object.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes from
other |
BytesRef |
BytesRefBuilder.get()
Return a
BytesRef that points to the internal content of this
builder. |
BytesRef |
BytesRefArray.get(BytesRefBuilder spare,
int index)
Returns the n'th element of this
BytesRefArray |
protected abstract BytesRef |
StringMSBRadixSorter.get(int i)
Get a
BytesRef for the given index. |
BytesRef |
BytesRefHash.get(int bytesID,
BytesRef ref)
Populates and returns a
BytesRef with the bytes for the given
bytesID. |
static BytesRef |
StringHelper.intsRefToBytesRef(IntsRef ints)
|
BytesRef |
BytesRefIterator.next()
Increments the iteration to the next
BytesRef in the iterator. |
BytesRef |
OfflineSorter.ByteSequencesReader.next()
Reads the next entry into the provided
BytesRef . |
BytesRef |
BytesRefBuilder.toBytesRef()
Build a new
BytesRef that has the same content as this buffer. |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<BytesRef> |
OfflineSorter.getComparator()
Returns the comparator in use to sort entries
|
Modifier and Type | Method and Description |
---|---|
int |
BytesRefHash.add(BytesRef bytes)
Adds a new
BytesRef |
int |
FixedLengthBytesRefArray.append(BytesRef bytes)
Appends a copy of the given
BytesRef to this BytesRefArray . |
int |
SortableBytesRefArray.append(BytesRef bytes)
Append a new value
|
void |
ByteBlockPool.append(BytesRef bytes)
Appends the bytes in the provided
BytesRef at
the current position. |
int |
BytesRefArray.append(BytesRef bytes)
Appends a copy of the given
BytesRef to this BytesRefArray . |
void |
BytesRefBuilder.append(BytesRef ref)
Append the provided bytes to this builder.
|
protected abstract int |
BytesRefComparator.byteAt(BytesRef ref,
int i)
Return the unsigned byte to use for comparison at index
i , or
-1 if all bytes that are useful for comparisons are exhausted. |
static int |
StringHelper.bytesDifference(BytesRef priorTerm,
BytesRef currentTerm)
Compares two
BytesRef , element by element, and returns the
number of elements common to both arrays (from the start of each). |
boolean |
BytesRef.bytesEquals(BytesRef other)
Expert: compares the bytes against another BytesRef,
returning true if the bytes are equal.
|
static int |
UnicodeUtil.codePointCount(BytesRef utf8)
Returns the number of code points in this UTF8 sequence.
|
int |
BytesRefComparator.compare(BytesRef o1,
BytesRef o2) |
int |
BytesRef.compareTo(BytesRef other)
Unsigned byte order comparison
|
void |
PagedBytes.copy(BytesRef bytes,
BytesRef out)
Copy BytesRef in, setting BytesRef out to the result.
|
void |
BytesRefBuilder.copyBytes(BytesRef ref)
Replace the content of this builder with the provided bytes.
|
long |
PagedBytes.copyUsingLengthPrefix(BytesRef bytes)
Copy bytes in, writing the length as a 1 or 2 byte
vInt prefix.
|
void |
IntsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the given UTF-8 bytes into this builder.
|
void |
CharsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the provided bytes, interpreted as UTF-8 bytes.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes from
other |
static boolean |
StringHelper.endsWith(BytesRef ref,
BytesRef suffix)
Returns
true iff the ref ends with the given suffix. |
private boolean |
BytesRefHash.equals(int id,
BytesRef b) |
void |
PagedBytes.Reader.fill(BytesRef b,
long start)
Reads length as 1 or 2 byte vInt prefix, starting at start.
|
void |
PagedBytes.Reader.fillSlice(BytesRef b,
long start,
int length)
Gets a slice out of
PagedBytes starting at start with a
given length. |
int |
BytesRefHash.find(BytesRef bytes)
Returns the id of the given
BytesRef . |
private int |
BytesRefHash.findHash(BytesRef bytes) |
BytesRef |
BytesRefHash.get(int bytesID,
BytesRef ref)
Populates and returns a
BytesRef with the bytes for the given
bytesID. |
static int |
StringHelper.murmurhash3_x86_32(BytesRef bytes,
int seed) |
private void |
BytesRefArray.setBytesRef(BytesRefBuilder spare,
BytesRef result,
int index)
Used only by sort below, to set a
BytesRef with the specified slice, avoiding copying bytes in the common case when the slice
is contained in a single block in the byte block pool. |
(package private) void |
ByteBlockPool.setBytesRef(BytesRefBuilder builder,
BytesRef result,
long offset,
int length)
Fill the provided
BytesRef with the bytes at the specified offset/length slice. |
void |
ByteBlockPool.setBytesRef(BytesRef term,
int textStart) |
void |
ByteBlockPool.setRawBytesRef(BytesRef ref,
long offset)
|
static int |
StringHelper.sortKeyLength(BytesRef priorTerm,
BytesRef currentTerm)
Returns the length of
currentTerm needed for use as a sort key. |
static boolean |
StringHelper.startsWith(byte[] ref,
BytesRef prefix)
Returns
true iff the ref starts with the given prefix. |
static boolean |
StringHelper.startsWith(BytesRef ref,
BytesRef prefix)
Returns
true iff the ref starts with the given prefix. |
static int |
UnicodeUtil.UTF8toUTF16(BytesRef bytesRef,
char[] chars)
Utility method for
UnicodeUtil.UTF8toUTF16(byte[], int, int, char[]) |
static int |
UnicodeUtil.UTF8toUTF32(BytesRef utf8,
int[] ints)
This method assumes valid UTF8 input.
|
void |
OfflineSorter.ByteSequencesWriter.write(BytesRef ref)
Writes a BytesRef.
|
Modifier and Type | Method and Description |
---|---|
BytesRefIterator |
FixedLengthBytesRefArray.iterator(java.util.Comparator<BytesRef> comp)
Returns a
BytesRefIterator with point in time semantics. |
BytesRefIterator |
SortableBytesRefArray.iterator(java.util.Comparator<BytesRef> comp)
Sort all values by the provided comparator and return an iterator over the sorted values
|
BytesRefIterator |
BytesRefArray.iterator(java.util.Comparator<BytesRef> comp)
Returns a
BytesRefIterator with point in time semantics. |
private int[] |
FixedLengthBytesRefArray.sort(java.util.Comparator<BytesRef> comp) |
private int[] |
BytesRefArray.sort(java.util.Comparator<BytesRef> comp) |
Constructor and Description |
---|
FileAndTop(int fd,
BytesRef firstLine) |
Constructor and Description |
---|
OfflineSorter(Directory dir,
java.lang.String tempFileNamePrefix,
java.util.Comparator<BytesRef> comparator)
Defaults constructor with a custom comparator.
|
OfflineSorter(Directory dir,
java.lang.String tempFileNamePrefix,
java.util.Comparator<BytesRef> comparator,
OfflineSorter.BufferSize ramBufferSize,
int maxTempfiles,
int valueLength,
java.util.concurrent.ExecutorService exec,
int maxPartitionsInRAM)
All-details constructor.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
CompiledAutomaton.commonSuffixRef
Shared common suffix accepted by the automaton.
|
BytesRef |
CompiledAutomaton.term
For
CompiledAutomaton.AUTOMATON_TYPE.SINGLE this is the singleton term. |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
CompiledAutomaton.addTail(int state,
BytesRefBuilder term,
int idx,
int leadLabel) |
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRefBuilder output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
static BytesRef |
Operations.getCommonPrefixBytesRef(Automaton a)
Returns the longest BytesRef that is a prefix of all accepted strings and
visits each state at most once.
|
static BytesRef |
Operations.getCommonSuffixBytesRef(Automaton a,
int maxDeterminizedStates)
Returns the longest BytesRef that is a suffix of all accepted strings.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRefBuilder output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
static Automaton |
Automata.makeBinary(BytesRef term)
Returns a new (deterministic) automaton that accepts the single given
binary term.
|
static Automaton |
Automata.makeBinaryInterval(BytesRef min,
boolean minInclusive,
BytesRef max,
boolean maxInclusive)
Creates a new deterministic, minimal automaton accepting
all binary terms in the specified interval.
|
private static void |
Operations.reverseBytes(BytesRef ref) |
private static boolean |
Automata.suffixIsZeros(BytesRef br,
int len) |
Modifier and Type | Method and Description |
---|---|
static Automaton |
DaciukMihovAutomatonBuilder.build(java.util.Collection<BytesRef> input)
Build a minimal, deterministic automaton from a sorted list of
BytesRef representing
strings in UTF-8. |
static Automaton |
Automata.makeStringUnion(java.util.Collection<BytesRef> utf8Strings)
Returns a new (deterministic and minimal) automaton that accepts the union
of the given collection of
BytesRef s representing UTF-8 encoded
strings. |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
HeapPointReader.HeapPointValue.docIDBytes |
(package private) BytesRef |
OfflinePointReader.OfflinePointValue.docIDBytes |
(package private) BytesRef |
HeapPointReader.HeapPointValue.packedValue |
(package private) BytesRef |
OfflinePointReader.OfflinePointValue.packedValue |
private BytesRef |
BKDReader.IndexTree.scratch |
(package private) BytesRef |
BKDWriter.scratchBytesRef1 |
(package private) BytesRef |
BKDWriter.scratchBytesRef2 |
Modifier and Type | Method and Description |
---|---|
private static BytesRef[] |
BKDWriter.computeMinMax(int count,
java.util.function.IntFunction<BytesRef> packedValues,
int offset,
int length)
Return an array that contains the min and max values for the [offset, offset+length] interval
of the given
BytesRef s. |
BytesRef |
PointValue.docIDBytes()
Returns the byte representation of the document id
|
BytesRef |
HeapPointReader.HeapPointValue.docIDBytes() |
BytesRef |
OfflinePointReader.OfflinePointValue.docIDBytes() |
BytesRef |
BKDReader.IndexTree.getSplitDimValue()
Only valid after pushLeft or pushRight, not pop!
|
BytesRef |
PointValue.packedValue()
Returns the packed values for the dimensions
|
BytesRef |
HeapPointReader.HeapPointValue.packedValue() |
BytesRef |
OfflinePointReader.OfflinePointValue.packedValue() |
Modifier and Type | Method and Description |
---|---|
static void |
MutablePointsReaderUtils.partition(int maxDoc,
int splitDim,
int bytesPerDim,
int commonPrefixLen,
MutablePointValues reader,
int from,
int to,
int mid,
BytesRef scratch1,
BytesRef scratch2)
Partition points around
mid . |
static void |
MutablePointsReaderUtils.sortByDim(int sortedDim,
int bytesPerDim,
int[] commonPrefixLengths,
MutablePointValues reader,
int from,
int to,
BytesRef scratch1,
BytesRef scratch2)
Sort points on the given dimension.
|
private boolean |
BKDWriter.valueInBounds(BytesRef packedValue,
byte[] minPackedValue,
byte[] maxPackedValue)
Called only in assert
|
Modifier and Type | Method and Description |
---|---|
private static BytesRef[] |
BKDWriter.computeMinMax(int count,
java.util.function.IntFunction<BytesRef> packedValues,
int offset,
int length)
Return an array that contains the min and max values for the [offset, offset+length] interval
of the given
BytesRef s. |
private static int |
BKDWriter.runLen(java.util.function.IntFunction<BytesRef> packedValues,
int start,
int end,
int byteOffset) |
private boolean |
BKDWriter.valuesInOrderAndBounds(int count,
int sortedDim,
byte[] minPackedValue,
byte[] maxPackedValue,
java.util.function.IntFunction<BytesRef> values,
int[] docs,
int docsOffset) |
private void |
BKDWriter.writeActualBounds(DataOutput out,
int[] commonPrefixLengths,
int count,
java.util.function.IntFunction<BytesRef> packedValues) |
private void |
BKDWriter.writeLeafBlockPackedValues(DataOutput out,
int[] commonPrefixLengths,
int count,
int sortedDim,
java.util.function.IntFunction<BytesRef> packedValues) |
private void |
BKDWriter.writeLeafBlockPackedValuesRange(DataOutput out,
int[] commonPrefixLengths,
int start,
int end,
java.util.function.IntFunction<BytesRef> packedValues) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
BytesRefFSTEnum.current |
BytesRef |
BytesRefFSTEnum.InputOutput.input |
private static BytesRef |
ByteSequenceOutputs.NO_OUTPUT |
private BytesRef |
BytesRefFSTEnum.target |
Modifier and Type | Method and Description |
---|---|
BytesRef |
ByteSequenceOutputs.add(BytesRef prefix,
BytesRef output) |
BytesRef |
ByteSequenceOutputs.common(BytesRef output1,
BytesRef output2) |
BytesRef |
ByteSequenceOutputs.getNoOutput() |
BytesRef |
ByteSequenceOutputs.read(DataInput in) |
BytesRef |
ByteSequenceOutputs.subtract(BytesRef output,
BytesRef inc) |
static BytesRef |
Util.toBytesRef(IntsRef input,
BytesRefBuilder scratch)
Just converts IntsRef to BytesRef; you must ensure the
int values fit into a byte.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
ByteSequenceOutputs.add(BytesRef prefix,
BytesRef output) |
BytesRef |
ByteSequenceOutputs.common(BytesRef output1,
BytesRef output2) |
static <T> T |
Util.get(FST<T> fst,
BytesRef input)
Looks up the output for this input, or null if the
input is not accepted
|
java.lang.String |
ByteSequenceOutputs.outputToString(BytesRef output) |
long |
ByteSequenceOutputs.ramBytesUsed(BytesRef output) |
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekCeil(BytesRef target)
Seeks to smallest term that's >= target.
|
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekExact(BytesRef target)
Seeks to exactly this term, returning null if the term
doesn't exist.
|
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekFloor(BytesRef target)
Seeks to biggest term that's <= target.
|
BytesRef |
ByteSequenceOutputs.subtract(BytesRef output,
BytesRef inc) |
static IntsRef |
Util.toIntsRef(BytesRef input,
IntsRefBuilder scratch)
Just takes unsigned byte values from the BytesRef and
converts into an IntsRef.
|
void |
ByteSequenceOutputs.write(BytesRef prefix,
DataOutput out) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,BytesRef> |
GraphTokenStreamFiniteStrings.idToTerm |
Modifier and Type | Method and Description |
---|---|
private int |
GraphTokenStreamFiniteStrings.getTermID(int incr,
int prevIncr,
BytesRef term)
Gets an integer id for a given term and saves the position increment if needed.
|