Uses of Class
org.apache.lucene.store.DataInput
-
Packages that use DataInput Package Description org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.compressing StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.org.apache.lucene.codecs.lucene84 Components from the Lucene 8.4 index format.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices.org.apache.lucene.store Binary i/o API, used for all index data.org.apache.lucene.util Some utility classes.org.apache.lucene.util.compress Compression utilities.org.apache.lucene.util.fst Finite state transducersorg.apache.lucene.util.packed Packed integer arrays and streams. -
-
Uses of DataInput in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type DataInput Modifier and Type Method Description void
TermVectorsWriter. addProx(int numProx, DataInput positions, DataInput offsets)
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 term -
Uses of DataInput in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type DataInput Modifier and Type Method Description void
CompressingTermVectorsWriter. addProx(int numProx, DataInput positions, DataInput offsets)
abstract 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.lucene84
Methods in org.apache.lucene.codecs.lucene84 with parameters of type DataInput Modifier and Type Method Description void
Lucene84PostingsReader. decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute)
-
Uses of DataInput in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type DataInput Modifier and Type Method Description abstract SortField
SortFieldProvider. readSortField(DataInput in)
Reads a SortField from serialized bytesConstructors in org.apache.lucene.index with parameters of type DataInput Constructor Description CorruptIndexException(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
. -
Uses of DataInput in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type DataInput Modifier and Type Method Description SortField
SortedNumericSortField.Provider. readSortField(DataInput in)
SortField
SortedSetSortField.Provider. readSortField(DataInput in)
SortField
SortField.Provider. readSortField(DataInput in)
protected static SortField.Type
SortField. readType(DataInput in)
-
Uses of DataInput in org.apache.lucene.store
Subclasses of DataInput in org.apache.lucene.store Modifier and Type Class Description class
BufferedChecksumIndexInput
Simple implementation ofChecksumIndexInput
that wraps another input and delegates calls.class
BufferedIndexInput
Base implementation class for bufferedIndexInput
.class
ByteArrayDataInput
DataInput backed by a byte array.class
ByteBufferIndexInput
Base IndexInput implementation that uses an array of ByteBuffers to represent a file.class
ByteBuffersDataInput
class
ByteBuffersIndexInput
class
ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes.class
IndexInput
Abstract base class for input from a file in aDirectory
.class
InputStreamDataInput
ADataInput
wrapping a plainInputStream
.class
RAMInputStream
Deprecated.This class uses inefficient synchronization and is discouraged in favor ofMMapDirectory
.Methods in org.apache.lucene.store that return DataInput Modifier and Type Method Description DataInput
DataInput. clone()
Returns a clone of this stream.Methods in org.apache.lucene.store with parameters of type DataInput Modifier and Type Method Description void
ByteBuffersIndexOutput. copyBytes(DataInput input, long numBytes)
void
DataOutput. copyBytes(DataInput input, long numBytes)
Copy numBytes bytes from input to ourself. -
Uses of DataInput in org.apache.lucene.util
Subclasses of DataInput in org.apache.lucene.util Modifier and Type Class Description class
PagedBytes.PagedBytesDataInput
-
Uses of DataInput in org.apache.lucene.util.compress
Methods in org.apache.lucene.util.compress with parameters of type DataInput Modifier and Type Method Description static 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)
Decompress at leastdecompressedLen
bytes intodest[dOff:]
. -
Uses of DataInput in org.apache.lucene.util.fst
Subclasses of DataInput in org.apache.lucene.util.fst Modifier and Type Class Description static class
FST.BytesReader
Reads bytes stored in an FST.Methods in org.apache.lucene.util.fst with parameters of type DataInput Modifier and Type Method Description void
FSTStore. init(DataInput in, long numBytes)
void
OffHeapFSTStore. init(DataInput in, long numBytes)
void
OnHeapFSTStore. init(DataInput in, long numBytes)
BytesRef
ByteSequenceOutputs. read(DataInput in)
CharsRef
CharSequenceOutputs. read(DataInput in)
IntsRef
IntSequenceOutputs. read(DataInput in)
Object
NoOutputs. read(DataInput in)
abstract T
Outputs. read(DataInput in)
Decode an output value previously written withOutputs.write(Object, DataOutput)
.PairOutputs.Pair<A,B>
PairOutputs. read(DataInput in)
Long
PositiveIntOutputs. read(DataInput in)
T
Outputs. readFinalOutput(DataInput in)
Decode an output value previously written withOutputs.writeFinalOutput(Object, DataOutput)
.int
FST. readLabel(DataInput in)
Reads one BYTE1/2/4 label from the providedDataInput
.void
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 DataInput Constructor Description FST(DataInput metaIn, DataInput in, Outputs<T> outputs)
Load a previously saved FST.FST(DataInput metaIn, DataInput in, Outputs<T> outputs, FSTStore fstStore)
Load a previously saved FST; maxBlockBits allows you to control the size of the byte[] pages used to hold the FST bytes. -
Uses of DataInput in org.apache.lucene.util.packed
Methods in org.apache.lucene.util.packed with parameters of type DataInput Modifier and Type Method Description static PackedInts.Reader
PackedInts. getReader(DataInput in)
Restore aPackedInts.Reader
from a stream.static PackedInts.ReaderIterator
PackedInts. getReaderIterator(DataInput in, int mem)
Retrieve PackedInts as aPackedInts.ReaderIterator
static 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.static PackedInts.Reader
PackedInts. getReaderNoHeader(DataInput in, PackedInts.Format format, int version, int valueCount, int bitsPerValue)
Expert: Restore aPackedInts.Reader
from a stream without reading metadata at the beginning of the stream.void
BlockPackedReaderIterator. reset(DataInput in, long valueCount)
Reset the current reader to wrap a stream ofvalueCount
values contained inin
.Constructors in org.apache.lucene.util.packed with parameters of type DataInput Constructor Description BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount)
Sole constructor.PackedDataInput(DataInput in)
Create a new instance that wrapsin
.
-