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 Seeorg.apache.lucene.codecs.lucene50
for an overview of the index format.org.apache.lucene.codecs.lucene60 Components from the Lucene 6.0 index format.org.apache.lucene.codecs.lucene62 Components from the Lucene 6.2 index format Seeorg.apache.lucene.codecs.lucene70
for an overview of the current index format.org.apache.lucene.codecs.lucene70 Lucene 7.0 file 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 Description abstract 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 Directory
CompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)
Returns a Directory view (read-only) for the compound files in this segmentabstract FieldInfos
FieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext)
abstract SegmentInfo
SegmentInfoFormat. read(Directory directory, String segmentName, byte[] segmentID, IOContext context)
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
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 providedFieldInfos
to the directory.abstract void
SegmentInfoFormat. write(Directory dir, SegmentInfo info, IOContext ioContext)
WriteSegmentInfo
data.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 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 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 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 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.lucene62
Methods in org.apache.lucene.codecs.lucene62 with parameters of type IOContext Modifier and Type Method Description SegmentInfo
Lucene62SegmentInfoFormat. read(Directory dir, String segment, byte[] segmentID, IOContext context)
void
Lucene62SegmentInfoFormat. write(Directory dir, SegmentInfo info, IOContext ioContext)
-
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 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 Description IOContext
SegmentReadState. context
IOContext
to pass toDirectory.openInput(String,IOContext)
.IOContext
SegmentWriteState. context
IOContext
for all writes; you should pass this toDirectory.createOutput(String,IOContext)
.Constructors in org.apache.lucene.index with parameters of type IOContext Constructor Description SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context)
Create aSegmentReadState
.SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, String segmentSuffix)
Create aSegmentReadState
.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 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 Description static int
BufferedIndexInput. bufferSize(IOContext context)
Returns default buffer sizes for the givenIOContext
void
Directory. copyFrom(Directory from, String src, String dest, IOContext context)
Copies an existingsrc
file from directoryfrom
to a non-existent filedest
in this directory.void
LockValidatingDirectoryWrapper. copyFrom(Directory from, String src, String dest, IOContext context)
void
TrackingDirectoryWrapper. copyFrom(Directory from, String src, String dest, IOContext context)
IndexOutput
ByteBuffersDirectory. createOutput(String name, IOContext context)
abstract IndexOutput
Directory. createOutput(String name, IOContext context)
Creates a new, empty file in the directory and returns anIndexOutput
instance for appending data to this file.IndexOutput
FileSwitchDirectory. createOutput(String name, IOContext context)
IndexOutput
FilterDirectory. createOutput(String name, IOContext context)
IndexOutput
FSDirectory. createOutput(String name, IOContext context)
IndexOutput
LockValidatingDirectoryWrapper. createOutput(String name, IOContext context)
IndexOutput
NRTCachingDirectory. createOutput(String name, IOContext context)
IndexOutput
RAMDirectory. createOutput(String name, IOContext context)
Deprecated.IndexOutput
TrackingDirectoryWrapper. createOutput(String name, IOContext context)
IndexOutput
ByteBuffersDirectory. 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 anIndexOutput
instance for appending data to this file.IndexOutput
FileSwitchDirectory. createTempOutput(String prefix, String suffix, IOContext context)
IndexOutput
FilterDirectory. createTempOutput(String prefix, String suffix, IOContext context)
IndexOutput
FSDirectory. createTempOutput(String prefix, String suffix, IOContext context)
IndexOutput
NRTCachingDirectory. createTempOutput(String prefix, String suffix, IOContext context)
IndexOutput
RAMDirectory. createTempOutput(String prefix, String suffix, IOContext context)
Deprecated.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
ByteBuffersDirectory. openInput(String name, IOContext context)
abstract IndexInput
Directory. openInput(String name, IOContext context)
Opens a stream for reading an existing file.IndexInput
FileSwitchDirectory. 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.IndexInput
NIOFSDirectory. openInput(String name, IOContext context)
IndexInput
NRTCachingDirectory. openInput(String name, IOContext context)
IndexInput
RAMDirectory. openInput(String name, IOContext context)
Deprecated.Returns a stream reading an existing file.IndexInput
SimpleFSDirectory. openInput(String name, IOContext context)
Creates an IndexInput for the file with the given name.Constructors in org.apache.lucene.store with parameters of type IOContext Constructor Description BufferedIndexInput(String resourceDesc, IOContext context)
IOContext(IOContext ctxt, boolean readOnce)
This constructor is used to initialize aIOContext
instance with a new value for the readOnce variable.RAMDirectory(FSDirectory dir, IOContext context)
Deprecated.Creates a newRAMDirectory
instance from a differentDirectory
implementation.
-