Uses of Class
org.apache.lucene.index.IndexCommit
-
-
Uses of IndexCommit in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexCommit Modifier and Type Field Description protected IndexCommitLiveIndexWriterConfig. commitIndexCommitthatIndexWriteris opened on.Methods in org.apache.lucene.index that return IndexCommit Modifier and Type Method Description abstract IndexCommitDirectoryReader. getIndexCommit()Expert: return the IndexCommit that this reader has opened.IndexCommitFilterDirectoryReader. getIndexCommit()IndexCommitIndexWriterConfig. getIndexCommit()IndexCommitLiveIndexWriterConfig. getIndexCommit()Returns theIndexCommitas specified inIndexWriterConfig.setIndexCommit(IndexCommit)or the default,nullwhich specifies to open the latest index commit point.IndexCommitStandardDirectoryReader. getIndexCommit()Methods in org.apache.lucene.index that return types with arguments of type IndexCommit Modifier and Type Method Description static List<IndexCommit>DirectoryReader. listCommits(Directory dir)Returns all commit points that exist in the Directory.Methods in org.apache.lucene.index with parameters of type IndexCommit Modifier and Type Method Description intIndexCommit. compareTo(IndexCommit commit)protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexCommit commit)Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexCommit).protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged(IndexCommit commit)protected DirectoryReaderStandardDirectoryReader. doOpenIfChanged(IndexCommit commit)static DirectoryReaderDirectoryReader. open(IndexCommit commit)Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader. open(IndexCommit commit, Map<String,String> readerAttributes)Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexCommit commit)If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null.TSegmentInfos.FindSegmentsFile. run(IndexCommit commit)RunSegmentInfos.FindSegmentsFile.doBody(java.lang.String)on the provided commit.IndexWriterConfigIndexWriterConfig. setIndexCommit(IndexCommit commit)Expert: allows to open a certain commit point.Method parameters in org.apache.lucene.index with type arguments of type IndexCommit Modifier and Type Method Description abstract voidIndexDeletionPolicy. onCommit(List<? extends IndexCommit> commits)This is called each time the writer completed a commit.voidKeepOnlyLastCommitDeletionPolicy. onCommit(List<? extends IndexCommit> commits)Deletes all commits except the most recent one.abstract voidIndexDeletionPolicy. onInit(List<? extends IndexCommit> commits)This is called once when a writer is first instantiated to give the policy a chance to remove old commit points.voidKeepOnlyLastCommitDeletionPolicy. onInit(List<? extends IndexCommit> commits)Deletes all commits except the most recent one. -
Uses of IndexCommit in org.elasticsearch.common.lucene
Methods in org.elasticsearch.common.lucene that return IndexCommit Modifier and Type Method Description static IndexCommitLucene. getIndexCommit(SegmentInfos si, Directory directory)Returns an index commit for the givenSegmentInfosin the given directory.Methods in org.elasticsearch.common.lucene with parameters of type IndexCommit Modifier and Type Method Description static SegmentInfosLucene. readSegmentInfos(IndexCommit commit)Reads the segments infos from the given commit, failing if it fails to load -
Uses of IndexCommit in org.elasticsearch.index.engine
Methods in org.elasticsearch.index.engine that return IndexCommit Modifier and Type Method Description static IndexCommitCombinedDeletionPolicy. findSafeCommitPoint(List<IndexCommit> commits, long globalCheckpoint)Find a safe commit point from a list of existing commits based on the supplied global checkpoint.IndexCommitEngine.IndexCommitRef. getIndexCommit()Methods in org.elasticsearch.index.engine with parameters of type IndexCommit Modifier and Type Method Description static StringCombinedDeletionPolicy. commitDescription(IndexCommit commit)Returns a description for a givenIndexCommit.protected intCombinedDeletionPolicy. getDocCountOfCommit(IndexCommit indexCommit)protected DirectoryReaderNoOpEngine. open(IndexCommit commit)protected DirectoryReaderReadOnlyEngine. open(IndexCommit commit)Method parameters in org.elasticsearch.index.engine with type arguments of type IndexCommit Modifier and Type Method Description static IndexCommitCombinedDeletionPolicy. findSafeCommitPoint(List<IndexCommit> commits, long globalCheckpoint)Find a safe commit point from a list of existing commits based on the supplied global checkpoint.voidCombinedDeletionPolicy. onCommit(List<? extends IndexCommit> commits)voidCombinedDeletionPolicy. onInit(List<? extends IndexCommit> commits)Constructors in org.elasticsearch.index.engine with parameters of type IndexCommit Constructor Description IndexCommitRef(IndexCommit indexCommit, CheckedRunnable<IOException> onClose) -
Uses of IndexCommit in org.elasticsearch.index.store
Methods in org.elasticsearch.index.store with parameters of type IndexCommit Modifier and Type Method Description Store.MetadataSnapshotStore. getMetadata(IndexCommit commit)Returns a new MetadataSnapshot for the given commit.Store.MetadataSnapshotStore. getMetadata(IndexCommit commit, boolean lockDirectory)Returns a new MetadataSnapshot for the given commit.static SequenceNumbers.CommitInfoStore. loadSeqNoInfo(IndexCommit commit)Loads the maximum sequence number and local checkpoint from the given Lucene commit point or the latest if not provided. -
Uses of IndexCommit in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories with parameters of type IndexCommit Modifier and Type Method Description voidRepository. snapshotShard(Store store, MapperService mapperService, SnapshotId snapshotId, IndexId indexId, IndexCommit snapshotIndexCommit, IndexShardSnapshotStatus snapshotStatus, ActionListener<Void> listener)Creates a snapshot of the shard based on the index commit point. -
Uses of IndexCommit in org.elasticsearch.repositories.blobstore
Methods in org.elasticsearch.repositories.blobstore with parameters of type IndexCommit Modifier and Type Method Description voidBlobStoreRepository. snapshotShard(Store store, MapperService mapperService, SnapshotId snapshotId, IndexId indexId, IndexCommit snapshotIndexCommit, IndexShardSnapshotStatus snapshotStatus, ActionListener<Void> listener)
-