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.lucene53 for an overview
of the index format. |
org.apache.lucene.codecs.lucene54 |
Lucene 5.4 file format.
|
org.apache.lucene.codecs.perfield |
Postings format that can delegate to different formats per-field.
|
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 |
Filters and Queries that add to core Lucene.
|
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.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.grouping.term |
Support for grouping by indexed terms via
DocValues . |
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
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
|
Modifier and Type | Field and Description |
---|---|
private BytesRef |
Token.payload
Deprecated.
|
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 |
LegacyNumericTokenStream.LegacyNumericTermAttributeImpl.getBytesRef() |
BytesRef |
Token.getPayload()
Deprecated.
Returns this Token's payload.
|
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.
|
void |
Token.setPayload(BytesRef payload)
Deprecated.
Sets this Token's payload.
|
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 |
---|---|
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. |
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 |
AbstractEncoder.encode(char[] buffer) |
BytesRef |
PayloadEncoder.encode(char[] buffer) |
BytesRef |
FloatEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
IdentityEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
IntegerEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
PayloadEncoder.encode(char[] buffer,
int offset,
int length)
Convert a char array to a
BytesRef |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SynonymFilter.scratchBytes |
Modifier and Type | Field and Description |
---|---|
private FST<BytesRef> |
SynonymFilter.fst |
FST<BytesRef> |
SynonymMap.fst
map<input word, list<ord>>
|
private FST.Arc<BytesRef> |
SynonymFilter.scratchArc |
Modifier and Type | Method and Description |
---|---|
private void |
SynonymFilter.addOutput(BytesRef bytes,
int matchInputLength,
int matchEndOffset) |
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 |
CharTermAttributeImpl.getBytesRef() |
BytesRef |
TermToBytesRefAttribute.getBytesRef()
Retrieve this attribute's BytesRef.
|
BytesRef |
PayloadAttribute.getPayload()
Returns this Token's payload.
|
BytesRef |
PayloadAttributeImpl.getPayload() |
Modifier and Type | Method and Description |
---|---|
void |
BytesTermAttribute.setBytesRef(BytesRef bytes)
Sets the
BytesRef of the term |
void |
BytesTermAttributeImpl.setBytesRef(BytesRef bytes) |
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 |
TermVectorsWriter.startTerm(BytesRef term,
int freq)
Adds a term and its term frequency
freq . |
abstract BlockTermState |
PostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen) |
Modifier and Type | Method and Description |
---|---|
abstract void |
DocValuesConsumer.addBinaryField(FieldInfo field,
java.lang.Iterable<BytesRef> values)
Writes binary docvalues for a field.
|
abstract void |
DocValuesConsumer.addSortedField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrd)
Writes pre-sorted binary docvalues for a field.
|
abstract void |
DocValuesConsumer.addSortedSetField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrdCount,
java.lang.Iterable<java.lang.Number> ords)
Writes pre-sorted set docvalues for a field
|
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 |
BytesRef |
AutoPrefixTermsWriter.PrefixTerm.term |
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 |
BitSetPostingsEnum.getPayload() |
BytesRef |
BitSetTermsEnum.next() |
BytesRef |
IntersectTermsEnum.next() |
BytesRef |
SegmentTermsEnum.next() |
private static BytesRef |
BlockTreeTermsReader.readBytesRef(IndexInput in) |
BytesRef |
BitSetTermsEnum.term() |
BytesRef |
IntersectTermsEnum.term() |
BytesRef |
SegmentTermsEnum.term() |
private static BytesRef |
AutoPrefixTermsWriter.PrefixTerm.toBytesRef(byte[] prefix,
int floorLeadStart)
Returns the leading term for this prefix term, e.g.
|
Modifier and Type | Method and Description |
---|---|
private FST.Arc<BytesRef> |
IntersectTermsEnum.getArc(int ord) |
private FST.Arc<BytesRef> |
SegmentTermsEnum.getArc(int ord) |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
AutoPrefixTermsWriter.brToString(BytesRef b) |
(package private) java.lang.String |
BlockTreeTermsReader.brToString(BytesRef b) |
(package private) static java.lang.String |
BlockTreeTermsWriter.brToString(BytesRef b) |
(package private) static java.lang.String |
IntersectTermsEnum.brToString(BytesRef b) |
int |
AutoPrefixTermsWriter.PrefixTerm.compareTo(BytesRef term) |
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 |
AutoPrefixTermsWriter.pushTerm(BytesRef text)
Pushes the new term to the top of the stack, and writes new blocks.
|
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 |
BitSetTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
IntersectTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
SegmentTermsEnum.seekCeil(BytesRef target) |
boolean |
IntersectTermsEnum.seekExact(BytesRef text) |
boolean |
SegmentTermsEnum.seekExact(BytesRef target) |
void |
SegmentTermsEnum.seekExact(BytesRef target,
TermState otherState) |
private void |
IntersectTermsEnum.seekToStartTerm(BytesRef target) |
void |
SegmentTermsEnumFrame.setFloorData(ByteArrayDataInput in,
BytesRef source) |
private boolean |
IntersectTermsEnum.setSavedStartTerm(BytesRef startTerm) |
(package private) void |
Stats.term(BytesRef term) |
void |
BlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
AutoPrefixTermsWriter.PrefixTerm prefixTerm)
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) |
IntersectTermsEnum(FieldReader fr,
Automaton automaton,
RunAutomaton runAutomaton,
BytesRef commonSuffix,
BytesRef startTerm,
int sinkState) |
PendingBlock(BytesRef prefix,
long fp,
boolean hasTerms,
boolean isFloor,
int floorLeadByte,
java.util.List<FST<BytesRef>> subIndices) |
PendingTerm(BytesRef term,
BlockTermState state,
AutoPrefixTermsWriter.PrefixTerm prefixTerm) |
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 |
---|---|
BytesRef |
VersionBlockTreeTermsWriter.FieldMetaData.maxTerm |
(package private) BytesRef |
VersionFieldReader.maxTerm |
BytesRef |
VersionBlockTreeTermsWriter.FieldMetaData.minTerm |
(package private) BytesRef |
VersionFieldReader.minTerm |
private BytesRef |
SinglePostingsEnum.payload |
BytesRef |
VersionBlockTreeTermsWriter.PendingBlock.prefix |
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 |
FST<PairOutputs.Pair<BytesRef,java.lang.Long>> |
VersionBlockTreeTermsWriter.PendingBlock.index |
(package private) FST<PairOutputs.Pair<BytesRef,java.lang.Long>> |
VersionFieldReader.index |
(package private) static PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionBlockTreeTermsWriter.NO_OUTPUT |
PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionBlockTreeTermsWriter.FieldMetaData.rootCode |
(package private) PairOutputs.Pair<BytesRef,java.lang.Long> |
VersionFieldReader.rootCode |
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> |
VersionBlockTreeTermsWriter.PendingBlock.subIndices |
Modifier and Type | Method and Description |
---|---|
BytesRef |
VersionFieldReader.getMax() |
BytesRef |
VersionFieldReader.getMin() |
BytesRef |
SingleDocsEnum.getPayload() |
BytesRef |
SinglePostingsEnum.getPayload() |
BytesRef |
IDVersionSegmentTermsEnum.next() |
private static BytesRef |
VersionBlockTreeTermsReader.readBytesRef(IndexInput in) |
BytesRef |
IDVersionSegmentTermsEnum.term() |
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) static java.lang.String |
IDVersionSegmentTermsEnum.brToString(BytesRef b) |
(package private) java.lang.String |
VersionBlockTreeTermsReader.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)
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 |
Modifier and Type | Method and Description |
---|---|
BytesRef |
Lucene50PostingsReader.BlockDocsEnum.getPayload() |
BytesRef |
Lucene50PostingsReader.BlockPostingsEnum.getPayload() |
BytesRef |
Lucene50PostingsReader.EverythingEnum.getPayload() |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.firstTerm |
private BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.scratch |
private BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.term |
Modifier and Type | Method and Description |
---|---|
BytesRef |
Lucene54DocValuesProducer.LongBinaryDocValues.get(int docID) |
(package private) abstract BytesRef |
Lucene54DocValuesProducer.LongBinaryDocValues.get(long id) |
BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.get(long id) |
BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.next() |
BytesRef |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
(package private) long |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.binarySearchBlock(BytesRef text,
long low,
long high) |
(package private) long |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.binarySearchIndex(BytesRef text) |
(package private) long |
Lucene54DocValuesProducer.CompressedBinaryDocValues.lookupTerm(BytesRef key) |
TermsEnum.SeekStatus |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.seekCeil(BytesRef text) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene54DocValuesConsumer.addBinaryField(FieldInfo field,
java.lang.Iterable<BytesRef> values) |
private void |
Lucene54DocValuesConsumer.addReverseTermIndex(FieldInfo field,
java.lang.Iterable<BytesRef> values,
int maxLength) |
void |
Lucene54DocValuesConsumer.addSortedField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrd) |
void |
Lucene54DocValuesConsumer.addSortedSetField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrdCount,
java.lang.Iterable<java.lang.Number> ords) |
private void |
Lucene54DocValuesConsumer.addTermsDict(FieldInfo field,
java.lang.Iterable<BytesRef> values)
expert: writes a value dictionary for a sorted/sortedset field
|
Modifier and Type | Method and Description |
---|---|
void |
PerFieldDocValuesFormat.FieldsWriter.addBinaryField(FieldInfo field,
java.lang.Iterable<BytesRef> values) |
void |
PerFieldDocValuesFormat.FieldsWriter.addSortedField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrd) |
void |
PerFieldDocValuesFormat.FieldsWriter.addSortedSetField(FieldInfo field,
java.lang.Iterable<BytesRef> values,
java.lang.Iterable<java.lang.Number> docToOrdCount,
java.lang.Iterable<java.lang.Number> ords) |
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 |
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 |
FloatPoint.pack(float... point) |
private static BytesRef |
HalfFloatPoint.pack(float... point) |
private static BytesRef |
IntPoint.pack(int... point) |
private static BytesRef |
LongPoint.pack(long... point) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
CompressionTools.decompress(BytesRef bytes)
Decompress the byte array previously returned by
compress (referenced by the provided BytesRef)
|
static java.lang.String |
CompressionTools.decompressString(BytesRef bytes)
Decompress the byte array (referenced by the provided BytesRef)
previously returned by compressString back into a String
|
void |
DoublePoint.setBytesValue(BytesRef bytes) |
void |
Field.setBytesValue(BytesRef value)
Expert: change the value of this field.
|
void |
FloatPoint.setBytesValue(BytesRef bytes) |
void |
IntPoint.setBytesValue(BytesRef bytes) |
void |
LongPoint.setBytesValue(BytesRef bytes) |
void |
BigIntegerPoint.setBytesValue(BytesRef bytes) |
void |
HalfFloatPoint.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,
FieldType 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.
|
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 |
PrefixCodedTerms.TermIterator.bytes |
(package private) BytesRef |
Term.bytes |
private BytesRef |
AutomatonTermsEnum.commonSuffixRef |
private BytesRef |
MultiTermsEnum.current |
BytesRef |
MultiTermsEnum.TermsEnumWithSlice.current |
private BytesRef |
SortedDocValues.empty |
(package private) BytesRef |
TermVectorsConsumer.flushTerm
Scratch term used by TermVectorsConsumerPerField.finishDocument.
|
private BytesRef |
FilteredTermsEnum.initialSeekTerm |
private BytesRef |
BufferedUpdatesStream.lastDeleteTerm |
private BytesRef |
MultiTermsEnum.lastSeek |
private BytesRef |
AutomatonTermsEnum.linearUpperBound |
private BytesRef |
SortingLeafReader.SortingPostingsEnum.payload |
(package private) BytesRef |
FreqProxFields.FreqProxTermsEnum.scratch |
(package private) BytesRef |
SortedDocValuesWriter.ValuesIterator.scratch |
(package private) BytesRef |
SortedSetDocValuesWriter.ValuesIterator.scratch |
private BytesRef |
SingleTermsEnum.singleRef |
(package private) BytesRef |
BufferedUpdatesStream.SegmentState.term |
private BytesRef |
BinaryDocValuesFieldUpdates.Iterator.value |
Modifier and Type | Method and Description |
---|---|
BytesRef |
IndexableField.binaryValue()
Non-null if this field has a binary value
|
BytesRef |
Term.bytes()
Returns the bytes of this term, these should not be modified.
|
abstract BytesRef |
BinaryDocValues.get(int docID)
Lookup the value for document.
|
BytesRef |
SortedDocValues.get(int docID) |
BytesRef |
SortingLeafReader.SortingBinaryDocValues.get(int docID) |
BytesRef |
SortingLeafReader.SortingSortedDocValues.get(int docID) |
BytesRef |
MultiTerms.getMax() |
BytesRef |
Terms.getMax()
Returns the largest term (in lexicographic order) in the field.
|
BytesRef |
MultiTerms.getMin() |
BytesRef |
Terms.getMin()
Returns the smallest term (in lexicographic order) in the field.
|
BytesRef |
FilterLeafReader.FilterPostingsEnum.getPayload() |
BytesRef |
FreqProxFields.FreqProxDocsEnum.getPayload() |
BytesRef |
FreqProxFields.FreqProxPostingsEnum.getPayload() |
BytesRef |
MappingMultiPostingsEnum.getPayload() |
BytesRef |
MultiPostingsEnum.getPayload() |
abstract BytesRef |
PostingsEnum.getPayload()
Returns the payload at this position, or null if no
payload was indexed.
|
BytesRef |
SortingLeafReader.SortingDocsEnum.getPayload() |
BytesRef |
SortingLeafReader.SortingPostingsEnum.getPayload() |
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 |
MultiDocValues.MultiSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
SingletonSortedSetDocValues.lookupOrd(long ord) |
abstract BytesRef |
SortedSetDocValues.lookupOrd(long ord)
Retrieves the value for the specified ordinal.
|
BytesRef |
SortingLeafReader.SortingSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
BinaryDocValuesWriter.BytesIterator.next() |
BytesRef |
ExitableDirectoryReader.ExitableTermsEnum.next() |
BytesRef |
FilterLeafReader.FilterTermsEnum.next() |
BytesRef |
FilteredTermsEnum.next() |
BytesRef |
FreqProxFields.FreqProxTermsEnum.next() |
BytesRef |
MergedPrefixCodedTermsIterator.next() |
BytesRef |
MultiTermsEnum.next() |
BytesRef |
PrefixCodedTerms.TermIterator.next() |
BytesRef |
SortedDocValuesTermsEnum.next() |
BytesRef |
SortedDocValuesWriter.ValuesIterator.next() |
BytesRef |
SortedSetDocValuesTermsEnum.next() |
BytesRef |
SortedSetDocValuesWriter.ValuesIterator.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. |
BytesRef |
FilterLeafReader.FilterTermsEnum.term() |
BytesRef |
FilteredTermsEnum.term() |
BytesRef |
FreqProxFields.FreqProxTermsEnum.term() |
BytesRef |
MultiTermsEnum.term() |
BytesRef |
SortedDocValuesTermsEnum.term() |
BytesRef |
SortedSetDocValuesTermsEnum.term() |
abstract BytesRef |
TermsEnum.term()
Returns current term.
|
(package private) BytesRef |
BinaryDocValuesFieldUpdates.Iterator.value() |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
AutomatonTermsEnum.accept(BytesRef term)
Returns true if the term matches the automaton.
|
protected abstract FilteredTermsEnum.AcceptStatus |
FilteredTermsEnum.accept(BytesRef term)
Return if term is accepted, not accepted or the iteration should ended
(and possibly seek).
|
protected FilteredTermsEnum.AcceptStatus |
SingleTermsEnum.accept(BytesRef term) |
void |
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) |
void |
BinaryDocValuesWriter.addValue(int docID,
BytesRef value) |
void |
SortedDocValuesWriter.addValue(int docID,
BytesRef value) |
void |
SortedSetDocValuesWriter.addValue(int docID,
BytesRef value) |
private boolean |
BufferedUpdatesStream.checkDeleteTerm(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 |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified field and
term. |
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified field and
term, with control over whether freqs are required. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether offsets and payloads are
required. |
TermsEnum |
ExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
Terms.intersect(CompiledAutomaton compiled,
BytesRef startTerm)
Returns a TermsEnum that iterates over all terms and
documents that are accepted by the provided
CompiledAutomaton . |
TermsEnum |
SortingLeafReader.SortingTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
long |
SingletonSortedSetDocValues.lookupTerm(BytesRef key) |
int |
SortedDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
long |
SortedSetDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
int |
SortingLeafReader.SortingSortedDocValues.lookupTerm(BytesRef key) |
long |
SortingLeafReader.SortingSortedSetDocValues.lookupTerm(BytesRef key) |
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. |
void |
MultiTermsEnum.TermsEnumWithSlice.reset(TermsEnum terms,
BytesRef term) |
TermsEnum.SeekStatus |
FilterLeafReader.FilterTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
FilteredTermsEnum.seekCeil(BytesRef term)
This enum does not support seeking!
|
TermsEnum.SeekStatus |
FreqProxFields.FreqProxTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
MultiTermsEnum.seekCeil(BytesRef term) |
TermsEnum.SeekStatus |
SortedDocValuesTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
SortedSetDocValuesTermsEnum.seekCeil(BytesRef text) |
abstract TermsEnum.SeekStatus |
TermsEnum.seekCeil(BytesRef text)
Seeks to the specified term, if it exists, or to the
next (ceiling) term.
|
boolean |
FilteredTermsEnum.seekExact(BytesRef term)
This enum does not support seeking!
|
boolean |
MultiTermsEnum.seekExact(BytesRef term) |
boolean |
SortedDocValuesTermsEnum.seekExact(BytesRef text) |
boolean |
SortedSetDocValuesTermsEnum.seekExact(BytesRef text) |
boolean |
TermsEnum.seekExact(BytesRef text)
Attempts to seek to the exact term, returning
true if the term is found.
|
void |
FilteredTermsEnum.seekExact(BytesRef term,
TermState state)
This enum does not support seeking!
|
void |
SortedDocValuesTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
SortedSetDocValuesTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
TermsEnum.seekExact(BytesRef term,
TermState state)
Expert: Seeks a specific position by
TermState previously obtained
from TermsEnum.termState() . |
(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. |
private int |
PrefixCodedTerms.Builder.sharedPrefix(BytesRef term1,
BytesRef term2) |
static java.lang.String |
Term.toString(BytesRef termText)
Returns human-readable form of the term text.
|
void |
IndexWriter.updateBinaryDocValue(Term term,
java.lang.String field,
BytesRef value)
|
Constructor and Description |
---|
BinaryDocValuesUpdate(Term term,
java.lang.String field,
BytesRef value) |
Iterator(int size,
PagedGrowableWriter offsets,
PagedGrowableWriter lengths,
PagedMutable docs,
BytesRef values) |
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 |
(package private) BytesRef |
MemoryIndex.BinaryDocValuesProducer.spare |
Modifier and Type | Method and Description |
---|---|
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryPostingsEnum.getPayload() |
private BytesRef |
MemoryIndex.BinaryDocValuesProducer.getValue(int index) |
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.next() |
BytesRef |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
private void |
MemoryIndex.addField(java.lang.String fieldName,
TokenStream tokenStream,
float boost,
int positionIncrementGap,
int offsetGap,
DocValuesType docValuesType,
java.lang.Object docValuesValue,
int pointDimensionCount,
int pointNumBytes,
BytesRef pointValue) |
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 void |
MemoryIndex.storePointValues(MemoryIndex.Info info,
int pointDimensionCount,
int pointNumBytes,
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 |
---|---|
(package private) BytesRef |
TermsQuery.TermAndState.term |
Constructor and Description |
---|
TermsQuery(java.lang.String field,
BytesRef... terms)
Creates a new
TermsQuery from the given BytesRef array for
a single field. |
Constructor and Description |
---|
TermsQuery(java.lang.String field,
java.util.Collection<BytesRef> terms)
Creates a new
TermsQuery from the given collection for
a single field. |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
LiteralValueSource.bytesRef |
protected BytesRef |
DocFreqValueSource.indexedBytes |
protected BytesRef |
TotalTermFreqValueSource.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 |
Constructor and Description |
---|
SpanPayloadCheckQuery(SpanQuery match,
java.util.List<BytesRef> payloadToMatch) |
Modifier and Type | Method and Description |
---|---|
private BytesRef |
QueryParserBase.analyzeMultitermTerm(java.lang.String field,
java.lang.String part) |
protected BytesRef |
QueryParserBase.analyzeMultitermTerm(java.lang.String field,
java.lang.String part,
Analyzer analyzerIn) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
RegexpQueryNode.textToBytesRef() |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SrndPrefixQuery.prefixRef |
private BytesRef |
SrndTruncQuery.prefixRef |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
SlowFuzzyTermsEnum.LinearFuzzyTermsEnum.prefixBytesRef |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
SlowFuzzyTermsEnum.LinearFuzzyTermsEnum.accept(BytesRef term)
The termCompare method in FuzzyTermEnum uses Levenshtein distance to
calculate the distance between the given term and the comparing term.
|
protected void |
SlowFuzzyTermsEnum.maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init)
Deprecated.
|
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 |
LegacyNumericRangeQuery.NumericRangeTermsEnum.currentLowerBound |
private BytesRef |
LegacyNumericRangeQuery.NumericRangeTermsEnum.currentUpperBound |
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 |
private BytesRef |
FuzzyTermsEnum.AutomatonFuzzyTermsEnum.termRef |
private BytesRef[] |
DocValuesTermsQuery.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.LinkedList<BytesRef> |
LegacyNumericRangeQuery.NumericRangeTermsEnum.rangeBounds |
private java.util.Map<BytesRef,java.lang.Integer> |
TermAutomatonQuery.termToID |
Modifier and Type | Method and Description |
---|---|
private static BytesRef |
DocValuesRangeQuery.deepCopyOf(BytesRef b) |
private BytesRef |
FieldComparator.TermValComparator.getComparableBytes(int doc,
BytesRef term)
Given a document and a term, return the term itself if it exists or
null otherwise.
|
BytesRef |
MaxNonCompetitiveBoostAttribute.getCompetitiveTerm()
This is the term or
null of the term that triggered the boost change. |
BytesRef |
MaxNonCompetitiveBoostAttributeImpl.getCompetitiveTerm() |
BytesRef |
TermRangeQuery.getLowerTerm()
Returns the lower value of this range query
|
BytesRef |
MultiPhraseQuery.UnionPostingsEnum.getPayload() |
BytesRef |
TermRangeQuery.getUpperTerm()
Returns the upper value of this range query
|
BytesRef |
SortedSetSelector.MinValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MaxValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MiddleMinValue.lookupOrd(int ord) |
BytesRef |
SortedSetSelector.MiddleMaxValue.lookupOrd(int ord) |
BytesRef |
FuzzyTermsEnum.next() |
abstract BytesRef |
PointInSetQuery.Stream.next() |
protected BytesRef |
LegacyNumericRangeQuery.NumericRangeTermsEnum.nextSeekTerm(BytesRef term) |
BytesRef |
FuzzyTermsEnum.term() |
BytesRef |
TermStatistics.term()
returns the term text
|
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 |
---|---|
protected FilteredTermsEnum.AcceptStatus |
FuzzyTermsEnum.AutomatonFuzzyTermsEnum.accept(BytesRef term)
finds the smallest Lev(n) DFA that accepts the term.
|
protected FilteredTermsEnum.AcceptStatus |
LegacyNumericRangeQuery.NumericRangeTermsEnum.accept(BytesRef term) |
void |
TermAutomatonQuery.addTransition(int source,
int dest,
BytesRef term)
Adds a transition to the automaton.
|
private void |
FuzzyTermsEnum.bottomChanged(BytesRef lastTerm,
boolean init)
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 |
DocValuesRangeQuery.deepCopyOf(BytesRef b) |
protected TermsEnum |
FuzzyTermsEnum.getAutomatonEnum(int editDistance,
BytesRef lastTerm)
return an automata-based enum for matching up to editDistance from
lastTerm, if possible
|
private BytesRef |
FieldComparator.TermValComparator.getComparableBytes(int doc,
BytesRef term)
Given a document and a term, return the term itself if it exists or
null otherwise.
|
private int |
TermAutomatonQuery.getTermID(BytesRef term) |
protected boolean |
FieldComparator.TermValComparator.isNull(int doc,
BytesRef term)
Check whether the given value represents null.
|
int |
SortedSetSelector.MinValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MaxValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MiddleMinValue.lookupTerm(BytesRef key) |
int |
SortedSetSelector.MiddleMaxValue.lookupTerm(BytesRef key) |
(package private) boolean |
FuzzyTermsEnum.AutomatonFuzzyTermsEnum.matches(BytesRef term,
int k)
returns true if term is within k edits of the query term
|
protected void |
FuzzyTermsEnum.maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init) |
static Query |
DocValuesRangeQuery.newBytesRefRange(java.lang.String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
Create a new numeric range query on a numeric doc-values field.
|
protected BytesRef |
LegacyNumericRangeQuery.NumericRangeTermsEnum.nextSeekTerm(BytesRef term) |
TermsEnum.SeekStatus |
FuzzyTermsEnum.seekCeil(BytesRef text) |
boolean |
FuzzyTermsEnum.seekExact(BytesRef text) |
void |
FuzzyTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
MaxNonCompetitiveBoostAttribute.setCompetitiveTerm(BytesRef competitiveTerm)
This is the term or
null of the term that triggered the boost change. |
void |
MaxNonCompetitiveBoostAttributeImpl.setCompetitiveTerm(BytesRef competitiveTerm) |
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 |
---|
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) |
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) |
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,
Similarity.SimScorer docScorer) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
AbstractGroupFacetCollector.facetPrefix |
protected BytesRef |
AbstractGroupFacetCollector.SegmentResult.mergeTerm |
private BytesRef |
AbstractGroupFacetCollector.FacetEntry.value |
Modifier and Type | Method and Description |
---|---|
BytesRef |
AbstractGroupFacetCollector.FacetEntry.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGroupFacetCollector.GroupedFacetResult.addFacetCount(BytesRef facetValue,
int count) |
Constructor and Description |
---|
AbstractGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix) |
FacetEntry(BytesRef value,
int count) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef |
GroupedFacetHit.facetValue |
(package private) BytesRef |
GroupedFacetHit.groupValue |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<BytesRef,TermAllGroupHeadsCollector.GeneralAllGroupHeadsCollector.GroupHead> |
TermAllGroupHeadsCollector.GeneralAllGroupHeadsCollector.groups |
private java.util.List<BytesRef> |
TermAllGroupsCollector.groups |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TermFirstPassGroupingCollector.copyDocGroupValue(BytesRef groupValue,
BytesRef reuse) |
protected BytesRef |
TermFirstPassGroupingCollector.getDocGroupValue(int doc) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<BytesRef> |
TermAllGroupsCollector.getGroups() |
protected AbstractSecondPassGroupingCollector.SearchGroupDocs<BytesRef> |
TermSecondPassGroupingCollector.retrieveGroup(int doc) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TermFirstPassGroupingCollector.copyDocGroupValue(BytesRef groupValue,
BytesRef reuse) |
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.
|
Constructor and Description |
---|
GroupCount(BytesRef groupValue) |
GroupedFacetHit(BytesRef groupValue,
BytesRef facetValue) |
GroupHead(BytesRef groupValue,
Sort sort,
int doc) |
GroupHead(int doc,
BytesRef groupValue) |
GroupHead(int doc,
BytesRef groupValue) |
GroupHead(int doc,
BytesRef groupValue) |
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) |
Constructor and Description |
---|
TermDistinctValuesCollector(java.lang.String groupField,
java.lang.String countField,
java.util.Collection<SearchGroup<BytesRef>> groups)
Constructs
TermDistinctValuesCollector instance. |
TermSecondPassGroupingCollector(java.lang.String groupField,
java.util.Collection<SearchGroup<BytesRef>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields) |
Modifier and Type | Field and Description |
---|---|
private BytesRef |
TermsQuery.SeekingTermSetTermsEnum.lastTerm |
private BytesRef |
PointInSetIncludingScoreQuery.MergePointVisitor.nextQueryPoint |
private BytesRef |
PointInSetIncludingScoreQuery.MergePointVisitor.scratch |
private BytesRef |
TermsQuery.SeekingTermSetTermsEnum.seekTerm |
private BytesRef |
TermsQuery.SeekingTermSetTermsEnum.spare |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TermsQuery.SeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
TermsQuery.SeekingTermSetTermsEnum.accept(BytesRef term) |
protected BytesRef |
TermsQuery.SeekingTermSetTermsEnum.nextSeekTerm(BytesRef currentTerm) |
Modifier and Type | Field and Description |
---|---|
(package private) BytesRef[] |
Passage.matchTerms |
Modifier and Type | Method and Description |
---|---|
BytesRef[] |
Passage.getMatchTerms()
BytesRef (term text) of the matches, corresponding with
Passage.getMatchStarts() . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
Passage.addMatch(int startOffset,
int endOffset,
BytesRef term) |
private Passage[] |
PostingsHighlighter.highlightDoc(java.lang.String field,
BytesRef[] terms,
int contentLength,
java.text.BreakIterator bi,
int doc,
TermsEnum termsEnum,
PostingsEnum[] postings,
int n) |
private java.util.Map<java.lang.Integer,java.lang.Object> |
PostingsHighlighter.highlightField(java.lang.String field,
java.lang.String[] contents,
java.text.BreakIterator bi,
BytesRef[] terms,
int[] docids,
java.util.List<LeafReaderContext> leaves,
int maxPassages,
Query query) |
Modifier and Type | Method and Description |
---|---|
float |
BM25Similarity.BM25DocScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload) |
float |
MultiSimilarity.MultiSimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload) |
abstract float |
Similarity.SimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload)
Calculate a scoring factor based on the data in the payload.
|
float |
SimilarityBase.BasicSimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload) |
float |
TFIDFSimilarity.TFIDFSimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload) |
protected float |
BM25Similarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
float |
ClassicSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
abstract float |
TFIDFSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
Calculate a scoring factor based on the data in the payload.
|
Modifier and Type | Field and Description |
---|---|
protected BytesRef[] |
DocTermOrds.indexedTermsArray
Deprecated.
Holds the indexed (by default every 128th) terms.
|
static BytesRef |
FieldCache.INT32_TERM_PREFIX
Can be passed to
FieldCache.getDocTermOrds(org.apache.lucene.index.LeafReader, java.lang.String, org.apache.lucene.util.BytesRef) to filter for 32-bit numeric terms |
static BytesRef |
FieldCache.INT64_TERM_PREFIX
Can be passed to
FieldCache.getDocTermOrds(org.apache.lucene.index.LeafReader, java.lang.String, org.apache.lucene.util.BytesRef) to filter for 64-bit numeric terms |
protected BytesRef |
DocTermOrds.prefix
Deprecated.
If non-null, only terms matching this prefix were
indexed.
|
private BytesRef |
DocTermOrds.OrdWrappedTermsEnum.term |
Modifier and Type | Method and Description |
---|---|
BytesRef |
DocTermOrds.Iterator.lookupOrd(long ord) |
BytesRef |
DocTermOrds.lookupTerm(TermsEnum termsEnum,
int ord)
Deprecated.
Returns the term (
BytesRef ) corresponding to
the provided ordinal. |
BytesRef |
DocTermOrds.OrdWrappedTermsEnum.next() |
private BytesRef |
DocTermOrds.OrdWrappedTermsEnum.setTerm() |
BytesRef |
DocTermOrds.OrdWrappedTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
SortedSetDocValues |
FieldCache.getDocTermOrds(LeafReader reader,
java.lang.String field,
BytesRef prefix)
Checks the internal cache for an appropriate entry, and if none is found, reads the term values
in
field and returns a DocTermOrds instance, providing a method to retrieve
the terms (as ords) per document. |
SortedSetDocValues |
FieldCacheImpl.getDocTermOrds(LeafReader reader,
java.lang.String field,
BytesRef prefix) |
long |
DocTermOrds.Iterator.lookupTerm(BytesRef key) |
long |
FieldCache.Parser.parseValue(BytesRef term)
Parse's this field's value
|
TermsEnum.SeekStatus |
DocTermOrds.OrdWrappedTermsEnum.seekCeil(BytesRef target) |
protected void |
DocTermOrds.uninvert(LeafReader reader,
Bits liveDocs,
BytesRef termPrefix)
Deprecated.
Call this only once (if you subclass!)
|
protected abstract void |
FieldCacheImpl.Uninvert.visitTerm(BytesRef term) |
Constructor and Description |
---|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix)
Deprecated.
Inverts only terms starting w/ prefix
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq, with a custom indexing interval
(default is every 128nd term).
|
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 |
void |
LegacyNumericUtils.LongRangeBuilder.addRange(BytesRef minPrefixCoded,
BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
|
void |
LegacyNumericUtils.IntRangeBuilder.addRange(BytesRef minPrefixCoded,
BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
|
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.
|
int |
FixedLengthBytesRefArray.append(BytesRef bytes)
Appends a copy of the given
BytesRef to this BytesRefArray . |
int |
SortableBytesRefArray.append(BytesRef bytes)
Append a new value
|
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 left,
BytesRef right)
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 |
CharsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the provided bytes, interpreted as UTF-8 bytes.
|
void |
IntsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the given UTF-8 bytes into this builder.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes 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 |
LegacyNumericUtils.getPrefixCodedIntShift(BytesRef val)
Deprecated.
Returns the shift value from a prefix encoded
int . |
static int |
LegacyNumericUtils.getPrefixCodedLongShift(BytesRef val)
Deprecated.
Returns the shift value from a prefix encoded
long . |
static int |
StringHelper.murmurhash3_x86_32(BytesRef bytes,
int seed) |
static int |
LegacyNumericUtils.prefixCodedToInt(BytesRef val)
Deprecated.
Returns an int from prefixCoded bytes.
|
static long |
LegacyNumericUtils.prefixCodedToLong(BytesRef val)
Deprecated.
Returns a long from prefixCoded bytes.
|
TermsEnum.SeekStatus |
LegacyNumericUtils.SeekingNumericFilteredTermsEnum.seekCeil(BytesRef term) |
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) |
private static boolean |
StringHelper.sliceEquals(BytesRef sliceToTest,
BytesRef other,
int pos) |
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 |
BytesRefArray.iterator(java.util.Comparator<BytesRef> comp)
Returns a
BytesRefIterator with point in time semantics. |
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
|
private int[] |
BytesRefArray.sort(java.util.Comparator<BytesRef> comp) |
private int[] |
FixedLengthBytesRefArray.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)
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 |
BKDWriter.scratchBytesRef |
Modifier and Type | Method and Description |
---|---|
(package private) void |
HeapPointWriter.getPackedValueSlice(int index,
BytesRef result)
Returns a reference, in
result , to the byte[] slice holding this value |
private boolean |
BKDWriter.valueInBounds(BytesRef packedValue,
byte[] minPackedValue,
byte[] maxPackedValue)
Called only in assert
|
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) |