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 Compressing helper classes.org.apache.lucene.codecs.lucene90.compressing Lucene 9.0 compressing format.org.apache.lucene.codecs.lucene912 Lucene 9.12 file format.org.apache.lucene.codecs.lucene99 Lucene 9.9 file 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 voidTermVectorsWriter. addProx(int numProx, DataInput positions, DataInput offsets)Called by IndexWriter when writing new segments.voidStoredFieldsWriter.MergeVisitor. binaryField(FieldInfo fieldInfo, DataInput value, int length)static intCodecUtil. checkHeader(DataInput in, String codec, int minVersion, int maxVersion)Reads and validates a header previously written withCodecUtil.writeHeader(DataOutput, String, int).static intCodecUtil. 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 intCodecUtil. 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 StringCodecUtil. checkIndexHeaderSuffix(DataInput in, String expectedSuffix)Expert: just reads and verifies the suffix of an index headerabstract voidPostingsReaderBase. decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState state, boolean absolute)Actually decode metadata for next termstatic intCodecUtil. readBEInt(DataInput in)read int value from header / footer with big endian orderstatic longCodecUtil. readBELong(DataInput in)read long value from header / footer with big endian ordervoidStoredFieldsWriter. writeField(FieldInfo info, DataInput value, int length)Writes a stored binary value from aDataInputand alength. -
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 abstract voidDecompressor. decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)Decompress bytes that were stored between offsetsoffsetandoffset+lengthin the original stream from the compressed streamintobytes. -
Uses of DataInput in org.apache.lucene.codecs.lucene90.compressing
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type DataInput Modifier and Type Method Description voidLucene90CompressingTermVectorsWriter. addProx(int numProx, DataInput positions, DataInput offsets)voidLucene90CompressingStoredFieldsWriter. writeField(FieldInfo info, DataInput value, int length) -
Uses of DataInput in org.apache.lucene.codecs.lucene912
Methods in org.apache.lucene.codecs.lucene912 with parameters of type DataInput Modifier and Type Method Description voidLucene912PostingsReader. decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) -
Uses of DataInput in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type DataInput Modifier and Type Method Description static VectorSimilarityFunctionLucene99HnswVectorsReader. readSimilarityFunction(DataInput input)static VectorEncodingLucene99HnswVectorsReader. readVectorEncoding(DataInput input) -
Uses of DataInput in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type DataInput Modifier and Type Method Description voidStoredFieldVisitor. binaryField(FieldInfo fieldInfo, DataInput value, int length)Expert: Process a binary field directly from theDataInput.abstract SortFieldSortFieldProvider. 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 anIndexFormatTooNewExceptionIndexFormatTooOldException(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 SortFieldSortedNumericSortField.Provider. readSortField(DataInput in)SortFieldSortedSetSortField.Provider. readSortField(DataInput in)SortFieldSortField.Provider. readSortField(DataInput in)protected static SortField.TypeSortField. readType(DataInput in) -
Uses of DataInput in org.apache.lucene.store
Subclasses of DataInput in org.apache.lucene.store Modifier and Type Class Description classBufferedChecksumIndexInputSimple implementation ofChecksumIndexInputthat wraps another input and delegates calls.classBufferedIndexInputBase implementation class for bufferedIndexInput.classByteArrayDataInputDataInput backed by a byte array.classByteBufferIndexInputDeprecated.This class was made public for internal reasons (instanceofchecks).classByteBuffersDataInputclassByteBuffersIndexInputclassChecksumIndexInputExtension of IndexInput, computing checksum as it goes.classFilterIndexInputIndexInput implementation that delegates calls to another directory.classIndexInputAbstract base class for input from a file in aDirectory.classInputStreamDataInputADataInputwrapping a plainInputStream.Methods in org.apache.lucene.store that return DataInput Modifier and Type Method Description DataInputDataInput. clone()Returns a clone of this stream.Methods in org.apache.lucene.store with parameters of type DataInput Modifier and Type Method Description voidByteBuffersDataOutput. copyBytes(DataInput input, long numBytes)voidByteBuffersIndexOutput. copyBytes(DataInput input, long numBytes)voidDataOutput. 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 classPagedBytes.PagedBytesDataInputInput that transparently iterates over pagesMethods in org.apache.lucene.util with parameters of type DataInput Modifier and Type Method Description static voidGroupVIntUtil. readGroupVInt(DataInput in, long[] dst, int offset)Default implementation of read single group, for optimal performance, you should usereadGroupVInts(long[], int)instead.static intGroupVIntUtil. 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. -
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 voidLowercaseAsciiCompression. decompress(DataInput in, byte[] out, int len)Decompress data that has been compressed withLowercaseAsciiCompression.compress(byte[], int, byte[], DataOutput).static intLZ4. decompress(DataInput compressed, int decompressedLen, byte[] dest, int dOff)Decompress at leastdecompressedLenbytes 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 classFST.BytesReaderReads bytes stored in an FST.Methods in org.apache.lucene.util.fst with parameters of type DataInput Modifier and Type Method Description BytesRefByteSequenceOutputs. read(DataInput in)CharsRefCharSequenceOutputs. read(DataInput in)IntsRefIntSequenceOutputs. read(DataInput in)ObjectNoOutputs. read(DataInput in)abstract TOutputs. read(DataInput in)Decode an output value previously written withOutputs.write(Object, DataOutput).PairOutputs.Pair<A,B>PairOutputs. read(DataInput in)LongPositiveIntOutputs. read(DataInput in)TOutputs. readFinalOutput(DataInput in)Decode an output value previously written withOutputs.writeFinalOutput(Object, DataOutput).intFST. readLabel(DataInput in)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 DataInputvoidOutputs. 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.voidByteSequenceOutputs. skipOutput(DataInput in)voidCharSequenceOutputs. skipOutput(DataInput in)voidIntSequenceOutputs. skipOutput(DataInput in)voidOutputs. skipOutput(DataInput in)Skip the output; defaults to just callingOutputs.read(org.apache.lucene.store.DataInput)and discarding the result.voidPairOutputs. skipOutput(DataInput in)Constructors in org.apache.lucene.util.fst with parameters of type DataInput Constructor Description FST(FST.FSTMetadata<T> metadata, DataInput in)Load a previously saved FST with a DataInput for metdata using anOnHeapFSTStorewith maxBlockBits set toFST.DEFAULT_MAX_BLOCK_BITSOnHeapFSTStore(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 DataInput Modifier and Type Method Description static PackedInts.ReaderIteratorPackedInts. getReaderIteratorNoHeader(DataInput in, PackedInts.Format format, int version, int valueCount, int bitsPerValue, int mem)Expert: Restore aPackedInts.ReaderIteratorfrom a stream without reading metadata at the beginning of the stream.voidBlockPackedReaderIterator. reset(DataInput in, long valueCount)Reset the current reader to wrap a stream ofvalueCountvalues 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.
-