## Uses of Class
org.apache.lucene.store.IOContext

- Packages that use IOContext
  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.lucene50 | Components from the Lucene 5.0 index format See `org.apache.lucene.codecs.lucene80` for an overview of the index format.
  org.apache.lucene.codecs.lucene60 | Components from the Lucene 6.0 index format.
  org.apache.lucene.codecs.lucene70 | Components from the Lucene 7.0 index format.
  org.apache.lucene.index | Code to maintain and access indices.
  org.apache.lucene.store | Binary i/o API, used for all index data.

- - ### Uses of IOContext in org.apache.lucene.codecs

    Methods in org.apache.lucene.codecs with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `abstract StoredFieldsReader` | StoredFieldsFormat.`fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)` Returns a `StoredFieldsReader` to load stored fields.
    `abstract StoredFieldsWriter` | StoredFieldsFormat.`fieldsWriter(Directory directory, SegmentInfo si, IOContext context)` Returns a `StoredFieldsWriter` to write stored fields.
    `abstract Directory` | CompoundFormat.`getCompoundReader(Directory dir, SegmentInfo si, IOContext context)` Returns a Directory view (read-only) for the compound files in this segment
    `abstract FieldInfos` | FieldInfosFormat.`read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext)` Read the `FieldInfos` previously written with `FieldInfosFormat.write(org.apache.lucene.store.Directory, org.apache.lucene.index.SegmentInfo, java.lang.String, org.apache.lucene.index.FieldInfos, org.apache.lucene.store.IOContext)`.
    `abstract SegmentInfo` | SegmentInfoFormat.`read(Directory directory, String segmentName, byte[] segmentID, IOContext context)` Read `SegmentInfo` data from a directory.
    `abstract Bits` | LiveDocsFormat.`readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)` Read live docs bits.
    `abstract TermVectorsReader` | TermVectorsFormat.`vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)` Returns a `TermVectorsReader` to read term vectors.
    `abstract TermVectorsWriter` | TermVectorsFormat.`vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)` Returns a `TermVectorsWriter` to write term vectors.
    `abstract void` | SegmentInfoFormat.`write(Directory dir, SegmentInfo info, IOContext ioContext)` Write `SegmentInfo` data.
    `abstract void` | CompoundFormat.`write(Directory dir, SegmentInfo si, IOContext context)` Packs the provided segment's files into a compound format.
    `abstract void` | FieldInfosFormat.`write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context)` Writes the provided `FieldInfos` to the directory.
    `abstract void` | LiveDocsFormat.`writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)` Persist live docs bits.

  - ### Uses of IOContext in org.apache.lucene.codecs.compressing

    Methods in org.apache.lucene.codecs.compressing with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `StoredFieldsReader` | CompressingStoredFieldsFormat.`fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)`
    `StoredFieldsWriter` | CompressingStoredFieldsFormat.`fieldsWriter(Directory directory, SegmentInfo si, IOContext context)`
    `TermVectorsReader` | CompressingTermVectorsFormat.`vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)`
    `TermVectorsWriter` | CompressingTermVectorsFormat.`vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)`

    Constructors in org.apache.lucene.codecs.compressing with parameters of type IOContext
    Constructor and Description
    `CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)` Sole constructor.
    `CompressingStoredFieldsWriter(Directory directory, SegmentInfo si, String segmentSuffix, IOContext context, String formatName, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockSize)` Sole constructor.
    `CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)` Sole constructor.
    `CompressingTermVectorsWriter(Directory directory, SegmentInfo si, String segmentSuffix, IOContext context, String formatName, CompressionMode compressionMode, int chunkSize, int blockSize)` Sole constructor.

  - ### Uses of IOContext in org.apache.lucene.codecs.lucene50

    Methods in org.apache.lucene.codecs.lucene50 with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `StoredFieldsReader` | Lucene50StoredFieldsFormat.`fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)`
    `StoredFieldsWriter` | Lucene50StoredFieldsFormat.`fieldsWriter(Directory directory, SegmentInfo si, IOContext context)`
    `Directory` | Lucene50CompoundFormat.`getCompoundReader(Directory dir, SegmentInfo si, IOContext context)`
    `FieldInfos` | Lucene50FieldInfosFormat.`read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context)`
    `Bits` | Lucene50LiveDocsFormat.`readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)`
    `void` | Lucene50CompoundFormat.`write(Directory dir, SegmentInfo si, IOContext context)`
    `void` | Lucene50FieldInfosFormat.`write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context)`
    `void` | Lucene50LiveDocsFormat.`writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)`

  - ### Uses of IOContext in org.apache.lucene.codecs.lucene60

    Methods in org.apache.lucene.codecs.lucene60 with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `FieldInfos` | Lucene60FieldInfosFormat.`read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context)`
    `void` | Lucene60FieldInfosFormat.`write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context)`

  - ### Uses of IOContext in org.apache.lucene.codecs.lucene70

    Methods in org.apache.lucene.codecs.lucene70 with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `SegmentInfo` | Lucene70SegmentInfoFormat.`read(Directory dir, String segment, byte[] segmentID, IOContext context)`
    `void` | Lucene70SegmentInfoFormat.`write(Directory dir, SegmentInfo si, IOContext ioContext)`

  - ### Uses of IOContext in org.apache.lucene.index

    Fields in org.apache.lucene.index declared as IOContext
    Modifier and Type | Field and Description
    --- | ---
    `IOContext` | SegmentReadState.`context` `IOContext` to pass to `Directory.openInput(String,IOContext)`.
    `IOContext` | SegmentWriteState.`context` `IOContext` for all writes; you should pass this to `Directory.createOutput(String,IOContext)`.

    Constructors in org.apache.lucene.index with parameters of type IOContext
    Constructor and Description
    `SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, boolean openedFromWriter, IOContext context, Map<String,String> readerAttributes)` Create a `SegmentReadState`.
    `SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, boolean openedFromWriter, IOContext context, String segmentSuffix, Map<String,String> readerAttributes)` Create a `SegmentReadState`.
    `SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context)` Sole constructor.
    `SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context, String segmentSuffix)` Constructor which takes segment suffix.

  - ### Uses of IOContext in org.apache.lucene.store

    Fields in org.apache.lucene.store declared as IOContext
    Modifier and Type | Field and Description
    --- | ---
    `static IOContext` | IOContext.`DEFAULT`
    `static IOContext` | IOContext.`READ`
    `static IOContext` | IOContext.`READONCE`

    Methods in org.apache.lucene.store with parameters of type IOContext
    Modifier and Type | Method and Description
    --- | ---
    `static int` | BufferedIndexInput.`bufferSize(IOContext context)` Returns default buffer sizes for the given `IOContext`
    `void` | LockValidatingDirectoryWrapper.`copyFrom(Directory from, String src, String dest, IOContext context)`
    `void` | Directory.`copyFrom(Directory from, String src, String dest, IOContext context)` Copies an existing `src` file from directory `from` to a non-existent file `dest` in this directory.
    `void` | TrackingDirectoryWrapper.`copyFrom(Directory from, String src, String dest, IOContext context)`
    `IndexOutput` | FSDirectory.`createOutput(String name, IOContext context)`
    `IndexOutput` | FileSwitchDirectory.`createOutput(String name, IOContext context)`
    `IndexOutput` | RAMDirectory.`createOutput(String name, IOContext context)` Deprecated.
    `IndexOutput` | LockValidatingDirectoryWrapper.`createOutput(String name, IOContext context)`
    `IndexOutput` | NRTCachingDirectory.`createOutput(String name, IOContext context)`
    `IndexOutput` | ByteBuffersDirectory.`createOutput(String name, IOContext context)`
    `IndexOutput` | FilterDirectory.`createOutput(String name, IOContext context)`
    `abstract IndexOutput` | Directory.`createOutput(String name, IOContext context)` Creates a new, empty file in the directory and returns an `IndexOutput` instance for appending data to this file.
    `IndexOutput` | TrackingDirectoryWrapper.`createOutput(String name, IOContext context)`
    `IndexOutput` | FSDirectory.`createTempOutput(String prefix, String suffix, IOContext context)`
    `IndexOutput` | FileSwitchDirectory.`createTempOutput(String prefix, String suffix, IOContext context)`
    `IndexOutput` | RAMDirectory.`createTempOutput(String prefix, String suffix, IOContext context)` Deprecated.
    `IndexOutput` | NRTCachingDirectory.`createTempOutput(String prefix, String suffix, IOContext context)`
    `IndexOutput` | ByteBuffersDirectory.`createTempOutput(String prefix, String suffix, IOContext context)`
    `IndexOutput` | FilterDirectory.`createTempOutput(String prefix, String suffix, IOContext context)`
    `abstract IndexOutput` | Directory.`createTempOutput(String prefix, String suffix, IOContext context)` Creates a new, empty, temporary file in the directory and returns an `IndexOutput` instance for appending data to this file.
    `IndexOutput` | TrackingDirectoryWrapper.`createTempOutput(String prefix, String suffix, IOContext context)`
    `protected boolean` | NRTCachingDirectory.`doCacheWrite(String name, IOContext context)` Subclass can override this to customize logic; return true if this file should be written to the RAMDirectory.
    `ChecksumIndexInput` | Directory.`openChecksumInput(String name, IOContext context)` Opens a checksum-computing stream for reading an existing file.
    `IndexInput` | SimpleFSDirectory.`openInput(String name, IOContext context)` Creates an IndexInput for the file with the given name.
    `IndexInput` | FileSwitchDirectory.`openInput(String name, IOContext context)`
    `IndexInput` | RAMDirectory.`openInput(String name, IOContext context)` Deprecated. Returns a stream reading an existing file.
    `IndexInput` | NRTCachingDirectory.`openInput(String name, IOContext context)`
    `IndexInput` | ByteBuffersDirectory.`openInput(String name, IOContext context)`
    `IndexInput` | NIOFSDirectory.`openInput(String name, IOContext context)`
    `IndexInput` | FilterDirectory.`openInput(String name, IOContext context)`
    `IndexInput` | MMapDirectory.`openInput(String name, IOContext context)` Creates an IndexInput for the file with the given name.
    `abstract IndexInput` | Directory.`openInput(String name, IOContext context)` Opens a stream for reading an existing file.

    Constructors in org.apache.lucene.store with parameters of type IOContext
    Constructor and Description
    `BufferedIndexInput(String resourceDesc, IOContext context)`
    `IOContext(IOContext ctxt, boolean readOnce)` This constructor is used to initialize a `IOContext` instance with a new value for the readOnce variable.
    `RAMDirectory(FSDirectory dir, IOContext context)` Deprecated. Creates a new `RAMDirectory` instance from a different `Directory` implementation.

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.