Uses of Class
org.apache.lucene.store.DataInput
Packages that use DataInput
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
Compressing helper classes.
Lucene 10.1 file format.
Lucene 9.0 compressing format.
Lucene 9.9 file format.
Code to maintain and access indices.
Code to search indices.
Binary i/o API, used for all index data.
Some utility classes.
Compression utilities.
Finite state transducers
Packed integer arrays and streams.
-
Uses of DataInput in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type DataInputModifier and TypeMethodDescriptionvoid
Called by IndexWriter when writing new segments.static int
CodecUtil.checkHeader
(DataInput in, String codec, int minVersion, int maxVersion) Reads and validates a header previously written withCodecUtil.writeHeader(DataOutput, String, int)
.static int
CodecUtil.checkHeaderNoMagic
(DataInput in, String codec, int minVersion, int maxVersion) LikeCodecUtil.checkHeader(DataInput,String,int,int)
except this version assumes the first int has already been read and validated from the input.static int
CodecUtil.checkIndexHeader
(DataInput in, String codec, int minVersion, int maxVersion, byte[] expectedID, String expectedSuffix) Reads and validates a header previously written withCodecUtil.writeIndexHeader(DataOutput, String, int, byte[], String)
.static byte[]
CodecUtil.checkIndexHeaderID
(DataInput in, byte[] expectedID) Expert: just reads and verifies the object ID of an index headerstatic String
CodecUtil.checkIndexHeaderSuffix
(DataInput in, String expectedSuffix) Expert: just reads and verifies the suffix of an index headerabstract void
PostingsReaderBase.decodeTerm
(DataInput in, FieldInfo fieldInfo, BlockTermState state, boolean absolute) Actually decode metadata for next termstatic int
read int value from header / footer with big endian orderstatic long
CodecUtil.readBELong
(DataInput in) read long value from header / footer with big endian order -
Uses of DataInput in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type DataInputModifier and TypeMethodDescriptionabstract void
Decompressor.decompress
(DataInput in, int originalLength, int offset, int length, BytesRef bytes) Decompress bytes that were stored between offsetsoffset
andoffset+length
in the original stream from the compressed streamin
tobytes
. -
Uses of DataInput in org.apache.lucene.codecs.lucene101
Methods in org.apache.lucene.codecs.lucene101 with parameters of type DataInputModifier and TypeMethodDescriptionvoid
Lucene101PostingsReader.decodeTerm
(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) -
Uses of DataInput in org.apache.lucene.codecs.lucene90.compressing
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type DataInput -
Uses of DataInput in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type DataInputModifier and TypeMethodDescriptionstatic VectorSimilarityFunction
Lucene99HnswVectorsReader.readSimilarityFunction
(DataInput input) static VectorEncoding
Lucene99HnswVectorsReader.readVectorEncoding
(DataInput input) -
Uses of DataInput in org.apache.lucene.index
Methods in org.apache.lucene.index that return DataInputModifier and TypeMethodDescriptionStoredFieldDataInput.getDataInput()
Returns the data inputStoredFieldDataInput.in()
Returns the value of thein
record component.Methods in org.apache.lucene.index with parameters of type DataInputModifier and TypeMethodDescriptionabstract SortField
SortFieldProvider.readSortField
(DataInput in) Reads a SortField from serialized bytesConstructors in org.apache.lucene.index with parameters of type DataInputModifierConstructorDescriptionCorruptIndexException
(String message, DataInput input) Create exception with a message onlyCorruptIndexException
(String message, DataInput input, Throwable cause) Create exception with message and root cause.IndexFormatTooNewException
(DataInput in, int version, int minVersion, int maxVersion) Creates anIndexFormatTooNewException
IndexFormatTooOldException
(DataInput in, int version, int minVersion, int maxVersion) Creates anIndexFormatTooOldException
.IndexFormatTooOldException
(DataInput in, String reason) Creates anIndexFormatTooOldException
.StoredFieldDataInput
(DataInput in, int length) Creates an instance of aStoredFieldDataInput
record class. -
Uses of DataInput in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type DataInputModifier and TypeMethodDescriptionSortedNumericSortField.Provider.readSortField
(DataInput in) SortedSetSortField.Provider.readSortField
(DataInput in) SortField.Provider.readSortField
(DataInput in) protected static SortField.Type
-
Uses of DataInput in org.apache.lucene.store
Subclasses of DataInput in org.apache.lucene.storeModifier and TypeClassDescriptionclass
Simple implementation ofChecksumIndexInput
that wraps another input and delegates calls.class
Base implementation class for bufferedIndexInput
.final class
DataInput backed by a byte array.final class
final class
class
Extension of IndexInput, computing checksum as it goes.class
IndexInput implementation that delegates calls to another directory.class
Abstract base class for input from a file in aDirectory
.class
ADataInput
wrapping a plainInputStream
.Methods in org.apache.lucene.store that return DataInputMethods in org.apache.lucene.store with parameters of type DataInput -
Uses of DataInput in org.apache.lucene.util
Subclasses of DataInput in org.apache.lucene.utilModifier and TypeClassDescriptionfinal class
Input that transparently iterates over pagesMethods in org.apache.lucene.util with parameters of type DataInputModifier and TypeMethodDescriptionstatic void
GroupVIntUtil.readGroupVInt
(DataInput in, int[] dst, int offset) Default implementation of read single group, for optimal performance, you should useGroupVIntUtil.readGroupVInts(DataInput, int[], int)
instead.static void
GroupVIntUtil.readGroupVInt
(DataInput in, long[] dst, int offset) Default implementation of read single group, for optimal performance, you should useGroupVIntUtil.readGroupVInts(DataInput, long[], int)
instead.static int
GroupVIntUtil.readGroupVInt
(DataInput in, long remaining, GroupVIntUtil.IntReader reader, long pos, int[] dst, int offset) Faster implementation of read single group, It read values from the buffer that would not cross boundaries.static int
GroupVIntUtil.readGroupVInt
(DataInput in, long remaining, GroupVIntUtil.IntReader reader, long pos, long[] dst, int offset) Faster implementation of read single group, It read values from the buffer that would not cross boundaries.static void
GroupVIntUtil.readGroupVInts
(DataInput in, int[] dst, int limit) Read all the group varints, including the tail vints.static void
GroupVIntUtil.readGroupVInts
(DataInput in, long[] dst, int limit) Read all the group varints, including the tail vints. -
Uses of DataInput in org.apache.lucene.util.compress
Methods in org.apache.lucene.util.compress with parameters of type DataInputModifier and TypeMethodDescriptionstatic void
LowercaseAsciiCompression.decompress
(DataInput in, byte[] out, int len) Decompress data that has been compressed withLowercaseAsciiCompression.compress(byte[], int, byte[], DataOutput)
.static int
LZ4.decompress
(DataInput compressed, int decompressedLen, byte[] dest, int dOff) Decompress at leastdecompressedLen
bytes intodest[dOff:]
. -
Uses of DataInput in org.apache.lucene.util.fst
Subclasses of DataInput in org.apache.lucene.util.fstMethods in org.apache.lucene.util.fst with parameters of type DataInputModifier and TypeMethodDescriptionabstract T
Decode an output value previously written withOutputs.write(Object, DataOutput)
.Outputs.readFinalOutput
(DataInput in) Decode an output value previously written withOutputs.writeFinalOutput(Object, DataOutput)
.int
Reads one BYTE1/2/4 label from the providedDataInput
.static <T> FST.FSTMetadata
<T> FST.readMetadata
(DataInput metaIn, Outputs<T> outputs) Read the FST metadata from DataInputvoid
Outputs.skipFinalOutput
(DataInput in) Skip the output previously written withOutputs.writeFinalOutput(T, org.apache.lucene.store.DataOutput)
; defaults to just callingOutputs.readFinalOutput(org.apache.lucene.store.DataInput)
and discarding the result.void
ByteSequenceOutputs.skipOutput
(DataInput in) void
CharSequenceOutputs.skipOutput
(DataInput in) void
IntSequenceOutputs.skipOutput
(DataInput in) void
Outputs.skipOutput
(DataInput in) Skip the output; defaults to just callingOutputs.read(org.apache.lucene.store.DataInput)
and discarding the result.void
PairOutputs.skipOutput
(DataInput in) Constructors in org.apache.lucene.util.fst with parameters of type DataInputModifierConstructorDescriptionFST
(FST.FSTMetadata<T> metadata, DataInput in) Load a previously saved FST with a DataInput for metdata using anOnHeapFSTStore
with maxBlockBits set toFST.DEFAULT_MAX_BLOCK_BITS
OnHeapFSTStore
(int maxBlockBits, DataInput in, long numBytes) -
Uses of DataInput in org.apache.lucene.util.packed
Methods in org.apache.lucene.util.packed with parameters of type DataInputModifier and TypeMethodDescriptionstatic PackedInts.ReaderIterator
PackedInts.getReaderIteratorNoHeader
(DataInput in, PackedInts.Format format, int version, int valueCount, int bitsPerValue, int mem) Expert: Restore aPackedInts.ReaderIterator
from a stream without reading metadata at the beginning of the stream.void
Reset the current reader to wrap a stream ofvalueCount
values contained inin
.Constructors in org.apache.lucene.util.packed with parameters of type DataInputModifierConstructorDescriptionBlockPackedReaderIterator
(DataInput in, int packedIntsVersion, int blockSize, long valueCount) Sole constructor.Create a new instance that wrapsin
.