Uses of Class
org.apache.lucene.store.IOContext
Packages that use IOContext
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
Codec to support Lucene 3.x indexes (readonly)
Lucene 4.0 file format.
Lucene 4.1 file format.
Lucene 4.6 file format.
Code to maintain and access indices.
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 IOContextModifier and TypeMethodDescriptionabstract StoredFieldsReader
StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Returns aStoredFieldsReader
to load stored fields.abstract StoredFieldsWriter
StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) Returns aStoredFieldsWriter
to write stored fields.abstract FieldInfos
FieldInfosReader.read
(Directory directory, String segmentName, String segmentSuffix, IOContext iocontext) Read theFieldInfos
previously written withFieldInfosWriter
.abstract SegmentInfo
ReadSegmentInfo
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 aTermVectorsReader
to read term vectors.abstract TermVectorsWriter
TermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Returns aTermVectorsWriter
to write term vectors.abstract void
FieldInfosWriter.write
(Directory directory, String segmentName, String segmentSuffix, FieldInfos infos, IOContext context) Writes the providedFieldInfos
to the directory.abstract void
SegmentInfoWriter.write
(Directory dir, SegmentInfo info, FieldInfos fis, IOContext ioContext) WriteSegmentInfo
data.abstract void
LiveDocsFormat.writeLiveDocs
(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits.Constructors in org.apache.lucene.codecs with parameters of type IOContextModifierConstructorDescriptionBlockTreeTermsReader
(Directory dir, FieldInfos fieldInfos, SegmentInfo info, PostingsReaderBase postingsReader, IOContext ioContext, String segmentSuffix, int indexDivisor) Sole constructor. -
Uses of IOContext in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type IOContextModifier and TypeMethodDescriptionCompressingStoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) CompressingStoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) final TermVectorsReader
CompressingTermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) final TermVectorsWriter
CompressingTermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Constructors in org.apache.lucene.codecs.compressing with parameters of type IOContextModifierConstructorDescriptionCompressingStoredFieldsReader
(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) 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) Sole constructor. -
Uses of IOContext in org.apache.lucene.codecs.lucene3x
Methods in org.apache.lucene.codecs.lucene3x with parameters of type IOContextModifier and TypeMethodDescriptionDeprecated. -
Uses of IOContext in org.apache.lucene.codecs.lucene40
Methods in org.apache.lucene.codecs.lucene40 with parameters of type IOContextModifier and TypeMethodDescriptionLucene40StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene40StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) Deprecated.Lucene40LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Lucene40TermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) Lucene40TermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) void
Lucene40SegmentInfoWriter.write
(Directory dir, SegmentInfo si, FieldInfos fis, IOContext ioContext) Deprecated.Save a single segment's info.void
Lucene40LiveDocsFormat.writeLiveDocs
(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Constructors in org.apache.lucene.codecs.lucene40 with parameters of type IOContextModifierConstructorDescriptionLucene40PostingsReader
(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix) Deprecated.Sole constructor.Lucene40StoredFieldsReader
(Directory d, SegmentInfo si, FieldInfos fn, IOContext context) Sole constructor.Lucene40StoredFieldsWriter
(Directory directory, String segment, IOContext context) Sole constructor.Lucene40TermVectorsReader
(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) Sole constructor.Lucene40TermVectorsWriter
(Directory directory, String segment, IOContext context) Sole constructor. -
Uses of IOContext in org.apache.lucene.codecs.lucene41
Constructors in org.apache.lucene.codecs.lucene41 with parameters of type IOContextModifierConstructorDescriptionLucene41PostingsReader
(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix) Sole constructor. -
Uses of IOContext in org.apache.lucene.codecs.lucene46
Methods in org.apache.lucene.codecs.lucene46 with parameters of type IOContextModifier and TypeMethodDescriptionvoid
Lucene46SegmentInfoWriter.write
(Directory dir, SegmentInfo si, FieldInfos fis, IOContext ioContext) Save a single segment's info. -
Uses of IOContext in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IOContextModifier and TypeFieldDescriptionfinal IOContext
SegmentReadState.context
IOContext
to pass toDirectory.openInput(String,IOContext)
.final IOContext
SegmentWriteState.context
IOContext
for all writes; you should pass this toDirectory.createOutput(String,IOContext)
.Methods in org.apache.lucene.index with parameters of type IOContextModifier and TypeMethodDescriptionstatic String
SegmentInfos.write3xInfo
(Directory dir, SegmentInfo si, IOContext context) Deprecated.Constructors in org.apache.lucene.index with parameters of type IOContextModifierConstructorDescriptionSegmentReader
(SegmentCommitInfo si, int termInfosIndexDivisor, IOContext context) Constructs a new SegmentReader with a new core.SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor) Create aSegmentReadState
.SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor, String segmentSuffix) Create aSegmentReadState
.SegmentWriteState
(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context) Sole constructor.SegmentWriteState
(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, 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 IOContextModifier and TypeFieldDescriptionstatic final IOContext
IOContext.DEFAULT
static final IOContext
IOContext.READ
static final IOContext
IOContext.READONCE
Methods in org.apache.lucene.store with parameters of type IOContextModifier and TypeMethodDescriptionstatic int
BufferedIndexInput.bufferSize
(IOContext context) Returns default buffer sizes for the givenIOContext
void
Copies the file src toDirectory
to under the new file name dest.void
void
CompoundFileDirectory.createOutput
(String name, IOContext context) abstract IndexOutput
Directory.createOutput
(String name, IOContext context) Creates a new, empty file in the directory with the given name.FileSwitchDirectory.createOutput
(String name, IOContext context) FilterDirectory.createOutput
(String name, IOContext context) FSDirectory.createOutput
(String name, IOContext context) Creates an IndexOutput for the file with the given name.NRTCachingDirectory.createOutput
(String name, IOContext context) RAMDirectory.createOutput
(String name, IOContext context) Creates a new, empty file in the directory with the given name.RateLimitedDirectoryWrapper.createOutput
(String name, IOContext context) TrackingDirectoryWrapper.createOutput
(String name, IOContext context) CompoundFileDirectory.createSlicer
(String name, IOContext context) Directory.createSlicer
(String name, IOContext context) Creates anDirectory.IndexInputSlicer
for the given file name.FileSwitchDirectory.createSlicer
(String name, IOContext context) MMapDirectory.createSlicer
(String name, IOContext context) NIOFSDirectory.createSlicer
(String name, IOContext context) NRTCachingDirectory.createSlicer
(String name, IOContext context) RateLimitedDirectoryWrapper.createSlicer
(String name, IOContext context) SimpleFSDirectory.createSlicer
(String name, IOContext context) TrackingDirectoryWrapper.createSlicer
(String name, 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.abstract IndexInput
Returns a stream reading an existing file, with the specified read buffer size.Creates an IndexInput for the file with the given name.Creates an IndexInput for the file with the given name.Returns a stream reading an existing file.Creates an IndexInput for the file with the given name.Constructors in org.apache.lucene.store with parameters of type IOContextModifierConstructorDescriptionBufferedIndexInput
(String resourceDesc, IOContext context) CompoundFileDirectory
(Directory directory, String fileName, IOContext context, boolean openForWrite) Create a new CompoundFileDirectory.protected
FSIndexInput
(String resourceDesc, File path, IOContext context) Create a new FSIndexInput, reading the entire file frompath
This constructor is used to initialize aIOContext
instance with a new value for the readOnce variable.NIOFSIndexInput
(File path, IOContext context) RAMDirectory
(Directory dir, IOContext context) Creates a newRAMDirectory
instance from a differentDirectory
implementation.SimpleFSIndexInput
(String resourceDesc, File path, IOContext context)