| 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 transducers | 
| org.apache.lucene.util.packed | Packed integer arrays and streams. | 
| Modifier and Type | Method and 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 with 
  CodecUtil.writeHeader(DataOutput, String, int). | 
| static int | CodecUtil. checkHeaderNoMagic(DataInput in,
                  String codec,
                  int minVersion,
                  int maxVersion)Like  CodecUtil.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 with 
  CodecUtil.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 header | 
| static String | CodecUtil. checkIndexHeaderSuffix(DataInput in,
                      String expectedSuffix)Expert: just reads and verifies the suffix of an index header | 
| abstract void | PostingsReaderBase. decodeTerm(DataInput in,
          FieldInfo fieldInfo,
          BlockTermState state,
          boolean absolute)Actually decode metadata for next term | 
| Modifier and Type | Method and 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 offsets  offsetandoffset+lengthin the original stream from the compressed
 streamintobytes. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Lucene84PostingsReader. decodeTerm(DataInput in,
          FieldInfo fieldInfo,
          BlockTermState _termState,
          boolean absolute) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract SortField | SortFieldProvider. readSortField(DataInput in)Reads a SortField from serialized bytes | 
| Constructor and Description | 
|---|
| CorruptIndexException(String message,
                     DataInput input)Create exception with a message only | 
| CorruptIndexException(String message,
                     DataInput input,
                     Throwable cause)Create exception with message and root cause. | 
| IndexFormatTooNewException(DataInput in,
                          int version,
                          int minVersion,
                          int maxVersion)Creates an  IndexFormatTooNewException | 
| IndexFormatTooOldException(DataInput in,
                          int version,
                          int minVersion,
                          int maxVersion)Creates an  IndexFormatTooOldException. | 
| IndexFormatTooOldException(DataInput in,
                          String reason)Creates an  IndexFormatTooOldException. | 
| Modifier and Type | Method and Description | 
|---|---|
| SortField | SortField.Provider. readSortField(DataInput in) | 
| SortField | SortedSetSortField.Provider. readSortField(DataInput in) | 
| SortField | SortedNumericSortField.Provider. readSortField(DataInput in) | 
| protected static SortField.Type | SortField. readType(DataInput in) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BufferedChecksumIndexInputSimple implementation of  ChecksumIndexInputthat wraps
 another input and delegates calls. | 
| class  | BufferedIndexInputBase implementation class for buffered  IndexInput. | 
| class  | ByteArrayDataInputDataInput backed by a byte array. | 
| class  | ByteBufferIndexInputBase IndexInput implementation that uses an array
 of ByteBuffers to represent a file. | 
| class  | ByteBuffersDataInput | 
| class  | ByteBuffersIndexInput | 
| class  | ChecksumIndexInputExtension of IndexInput, computing checksum as it goes. | 
| class  | IndexInputAbstract base class for input from a file in a  Directory. | 
| class  | InputStreamDataInputA  DataInputwrapping a plainInputStream. | 
| class  | RAMInputStreamDeprecated. 
 This class uses inefficient synchronization and is discouraged
 in favor of  MMapDirectory. It will be removed in future versions 
 of Lucene. | 
| Modifier and Type | Method and Description | 
|---|---|
| DataInput | DataInput. clone()Returns a clone of this stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ByteBuffersIndexOutput. copyBytes(DataInput input,
         long numBytes) | 
| void | DataOutput. copyBytes(DataInput input,
         long numBytes)Copy numBytes bytes from input to ourself. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | PagedBytes.PagedBytesDataInput | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | LowercaseAsciiCompression. decompress(DataInput in,
          byte[] out,
          int len)Decompress data that has been compressed with  LowercaseAsciiCompression.compress(byte[], int, byte[], DataOutput). | 
| static int | LZ4. decompress(DataInput compressed,
          int decompressedLen,
          byte[] dest,
          int dOff)Decompress at least  decompressedLenbytes intodest[dOff:]. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FST.BytesReaderReads bytes stored in an FST. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | OffHeapFSTStore. init(DataInput in,
    long numBytes) | 
| void | OnHeapFSTStore. init(DataInput in,
    long numBytes) | 
| void | FSTStore. init(DataInput in,
    long numBytes) | 
| Long | PositiveIntOutputs. read(DataInput in) | 
| abstract T | Outputs. read(DataInput in)Decode an output value previously written with  Outputs.write(Object, DataOutput). | 
| CharsRef | CharSequenceOutputs. read(DataInput in) | 
| BytesRef | ByteSequenceOutputs. read(DataInput in) | 
| IntsRef | IntSequenceOutputs. read(DataInput in) | 
| Object | NoOutputs. read(DataInput in) | 
| PairOutputs.Pair<A,B> | PairOutputs. read(DataInput in) | 
| T | Outputs. readFinalOutput(DataInput in)Decode an output value previously written with  Outputs.writeFinalOutput(Object, DataOutput). | 
| int | FST. readLabel(DataInput in)Reads one BYTE1/2/4 label from the provided  DataInput. | 
| void | Outputs. skipFinalOutput(DataInput in)Skip the output previously written with  Outputs.writeFinalOutput(T, org.apache.lucene.store.DataOutput);
  defaults to just callingOutputs.readFinalOutput(org.apache.lucene.store.DataInput)and discarding
  the result. | 
| void | Outputs. skipOutput(DataInput in)Skip the output; defaults to just calling  Outputs.read(org.apache.lucene.store.DataInput)and discarding the result. | 
| void | CharSequenceOutputs. skipOutput(DataInput in) | 
| void | ByteSequenceOutputs. skipOutput(DataInput in) | 
| void | IntSequenceOutputs. skipOutput(DataInput in) | 
| void | PairOutputs. skipOutput(DataInput in) | 
| Constructor and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static PackedInts.Reader | PackedInts. getReader(DataInput in)Restore a  PackedInts.Readerfrom a stream. | 
| static PackedInts.ReaderIterator | PackedInts. getReaderIterator(DataInput in,
                 int mem)Retrieve PackedInts as a  PackedInts.ReaderIterator | 
| static PackedInts.ReaderIterator | PackedInts. getReaderIteratorNoHeader(DataInput in,
                         PackedInts.Format format,
                         int version,
                         int valueCount,
                         int bitsPerValue,
                         int mem)Expert: Restore a  PackedInts.ReaderIteratorfrom 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 a  PackedInts.Readerfrom 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 of  valueCountvalues contained inin. | 
| Constructor and Description | 
|---|
| BlockPackedReaderIterator(DataInput in,
                         int packedIntsVersion,
                         int blockSize,
                         long valueCount)Sole constructor. | 
| PackedDataInput(DataInput in)Create a new instance that wraps  in. | 
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.