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.lucene90 Lucene 9.0 file format.org.apache.lucene.codecs.lucene90.compressing Lucene 9.0 compressing format.org.apache.lucene.codecs.lucene94 Lucene 9.4 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.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 IndexOutputCompoundDirectory. createOutput(String name, IOContext context)IndexOutputCompoundDirectory. createTempOutput(String prefix, String suffix, IOContext context)abstract StoredFieldsReaderStoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)Returns aStoredFieldsReaderto load stored fields.abstract StoredFieldsWriterStoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)Returns aStoredFieldsWriterto write stored fields.abstract CompoundDirectoryCompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)Returns a Directory view (read-only) for the compound files in this segmentabstract FieldInfosFieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext)abstract SegmentInfoSegmentInfoFormat. read(Directory directory, String segmentName, byte[] segmentID, IOContext context)ReadSegmentInfodata from a directory.abstract BitsLiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Read live docs bits.abstract TermVectorsReaderTermVectorsFormat. vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)Returns aTermVectorsReaderto read term vectors.abstract TermVectorsWriterTermVectorsFormat. vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)Returns aTermVectorsWriterto write term vectors.abstract voidCompoundFormat. write(Directory dir, SegmentInfo si, IOContext context)Packs the provided segment's files into a compound format.abstract voidFieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context)Writes the providedFieldInfosto the directory.abstract voidSegmentInfoFormat. write(Directory dir, SegmentInfo info, IOContext ioContext)WriteSegmentInfodata.abstract voidLiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Persist live docs bits. -
Uses of IOContext in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 with parameters of type IOContext Modifier and Type Method Description StoredFieldsReaderLucene90StoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterLucene90StoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)CompoundDirectoryLucene90CompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)BitsLucene90LiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)voidLucene90CompoundFormat. write(Directory dir, SegmentInfo si, IOContext context)voidLucene90LiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of IOContext in org.apache.lucene.codecs.lucene90.compressing
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type IOContext Modifier and Type Method Description StoredFieldsReaderLucene90CompressingStoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterLucene90CompressingStoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)TermVectorsReaderLucene90CompressingTermVectorsFormat. vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)TermVectorsWriterLucene90CompressingTermVectorsFormat. vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)Constructors in org.apache.lucene.codecs.lucene90.compressing with parameters of type IOContext Constructor Description Lucene90CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)Sole constructor.Lucene90CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)Sole constructor. -
Uses of IOContext in org.apache.lucene.codecs.lucene94
Methods in org.apache.lucene.codecs.lucene94 with parameters of type IOContext Modifier and Type Method Description FieldInfosLucene94FieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context)voidLucene94FieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) -
Uses of IOContext in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type IOContext Modifier and Type Method Description SegmentInfoLucene99SegmentInfoFormat. read(Directory dir, String segment, byte[] segmentID, IOContext context)voidLucene99SegmentInfoFormat. 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 IOContextSegmentReadState. contextIOContextto pass toDirectory.openInput(String,IOContext).IOContextSegmentWriteState. contextIOContextfor 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 IOContextIOContext. DEFAULTstatic IOContextIOContext. LOADstatic IOContextIOContext. RANDOMstatic IOContextIOContext. READstatic IOContextIOContext. READONCEThis context indicates that the file will be opened, then fully read sequentially then closed.Fields in org.apache.lucene.store with type parameters of type IOContext Modifier and Type Field Description static BiPredicate<String,IOContext>MMapDirectory. ALL_FILESArgument forMMapDirectory.setPreload(BiPredicate)that configures all files to be preloaded upon opening them.static BiPredicate<String,IOContext>MMapDirectory. BASED_ON_LOAD_IO_CONTEXTArgument forMMapDirectory.setPreload(BiPredicate)that configures files to be preloaded upon opening them if they use theLOADI/O context.static BiPredicate<String,IOContext>MMapDirectory. NO_FILESArgument forMMapDirectory.setPreload(BiPredicate)that configures no files to be preloaded upon opening them.Methods in org.apache.lucene.store that return IOContext Modifier and Type Method Description IOContextIOContext. withRandomAccess()Return an updatedIOContextthat hasrandomAccessset to true ifcontextisIOContext.Context.READorIOContext.Context.DEFAULT.Methods in org.apache.lucene.store with parameters of type IOContext Modifier and Type Method Description static intBufferedIndexInput. bufferSize(IOContext context)Returns default buffer sizes for the givenIOContextvoidDirectory. copyFrom(Directory from, String src, String dest, IOContext context)Copies an existingsrcfile from directoryfromto a non-existent filedestin this directory.voidLockValidatingDirectoryWrapper. copyFrom(Directory from, String src, String dest, IOContext context)voidTrackingDirectoryWrapper. copyFrom(Directory from, String src, String dest, IOContext context)IndexOutputByteBuffersDirectory. createOutput(String name, IOContext context)abstract IndexOutputDirectory. createOutput(String name, IOContext context)Creates a new, empty file in the directory and returns anIndexOutputinstance for appending data to this file.IndexOutputFileSwitchDirectory. createOutput(String name, IOContext context)IndexOutputFilterDirectory. createOutput(String name, IOContext context)IndexOutputFSDirectory. createOutput(String name, IOContext context)IndexOutputLockValidatingDirectoryWrapper. createOutput(String name, IOContext context)IndexOutputNRTCachingDirectory. createOutput(String name, IOContext context)IndexOutputTrackingDirectoryWrapper. createOutput(String name, IOContext context)IndexOutputByteBuffersDirectory. createTempOutput(String prefix, String suffix, IOContext context)abstract IndexOutputDirectory. createTempOutput(String prefix, String suffix, IOContext context)Creates a new, empty, temporary file in the directory and returns anIndexOutputinstance for appending data to this file.IndexOutputFileSwitchDirectory. createTempOutput(String prefix, String suffix, IOContext context)IndexOutputFilterDirectory. createTempOutput(String prefix, String suffix, IOContext context)IndexOutputFSDirectory. createTempOutput(String prefix, String suffix, IOContext context)IndexOutputNRTCachingDirectory. createTempOutput(String prefix, String suffix, IOContext context)IndexOutputTrackingDirectoryWrapper. createTempOutput(String prefix, String suffix, IOContext context)protected booleanNRTCachingDirectory. doCacheWrite(String name, IOContext context)Subclass can override this to customize logic; return true if this file should be written to the RAM-based cache first.ChecksumIndexInputDirectory. openChecksumInput(String name, IOContext context)Opens a checksum-computing stream for reading an existing file.IndexInputByteBuffersDirectory. openInput(String name, IOContext context)abstract IndexInputDirectory. openInput(String name, IOContext context)Opens a stream for reading an existing file.IndexInputFileSwitchDirectory. openInput(String name, IOContext context)IndexInputFilterDirectory. openInput(String name, IOContext context)IndexInputMMapDirectory. openInput(String name, IOContext context)Creates an IndexInput for the file with the given name.IndexInputNIOFSDirectory. openInput(String name, IOContext context)IndexInputNRTCachingDirectory. openInput(String name, IOContext context)Method parameters in org.apache.lucene.store with type arguments of type IOContext Modifier and Type Method Description voidMMapDirectory. setPreload(BiPredicate<String,IOContext> preload)Configure which files to preload in physical memory upon opening.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 aIOContextinstance with a new value for the readOnce variable.
-