Uses of Class
org.apache.lucene.index.IndexCommit
Packages that use IndexCommit
-
Uses of IndexCommit in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexCommitModifier and TypeFieldDescriptionprotected IndexCommitLiveIndexWriterConfig.commitIndexCommitthatIndexWriteris opened on.protected IndexCommitSnapshotDeletionPolicy.lastCommitMost recently committedIndexCommit.Fields in org.apache.lucene.index with type parameters of type IndexCommitModifier and TypeFieldDescriptionprotected final Map<Long, IndexCommit> SnapshotDeletionPolicy.indexCommitsUsed to map gen to IndexCommit.Methods in org.apache.lucene.index that return IndexCommitModifier and TypeMethodDescriptionabstract IndexCommitDirectoryReader.getIndexCommit()Expert: return the IndexCommit that this reader has opened.FilterDirectoryReader.getIndexCommit()IndexWriterConfig.getIndexCommit()LiveIndexWriterConfig.getIndexCommit()Returns theIndexCommitas specified inIndexWriterConfig.setIndexCommit(IndexCommit)or the default,nullwhich specifies to open the latest index commit point.SnapshotDeletionPolicy.getIndexCommit(long gen) Retrieve anIndexCommitfrom its generation; returns null if this IndexCommit is not currently snapshottedStandardDirectoryReader.getIndexCommit()PersistentSnapshotDeletionPolicy.snapshot()Snapshots the last commit.SnapshotDeletionPolicy.snapshot()Snapshots the last commit and returns it.Methods in org.apache.lucene.index that return types with arguments of type IndexCommitModifier and TypeMethodDescriptionSnapshotDeletionPolicy.getSnapshots()Returns all IndexCommits held by at least one snapshot.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 IndexCommitModifier and TypeMethodDescriptionintIndexCommit.compareTo(IndexCommit commit) protected abstract DirectoryReaderDirectoryReader.doOpenIfChanged(IndexCommit commit) Implement this method to supportDirectoryReader.openIfChanged(DirectoryReader,IndexCommit).protected final DirectoryReaderFilterDirectoryReader.doOpenIfChanged(IndexCommit commit) protected DirectoryReaderStandardDirectoryReader.doOpenIfChanged(IndexCommit commit) protected voidSnapshotDeletionPolicy.incRef(IndexCommit ic) Increments the refCount for thisIndexCommit.static DirectoryReaderDirectoryReader.open(IndexCommit commit) Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader.open(IndexCommit commit, int minSupportedMajorVersion, Comparator<LeafReader> leafSorter) Expert: returns an IndexReader reading the index on 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.voidPersistentSnapshotDeletionPolicy.release(IndexCommit commit) Deletes a snapshotted commit.voidSnapshotDeletionPolicy.release(IndexCommit commit) Release a snapshotted commit.SegmentInfos.FindSegmentsFile.run(IndexCommit commit) RunSegmentInfos.FindSegmentsFile.doBody(java.lang.String)on the provided commit.IndexWriterConfig.setIndexCommit(IndexCommit commit) Expert: allows to open a certain commit point.Method parameters in org.apache.lucene.index with type arguments of type IndexCommitModifier and TypeMethodDescriptionabstract 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.voidNoDeletionPolicy.onCommit(List<? extends IndexCommit> commits) voidSnapshotDeletionPolicy.onCommit(List<? extends IndexCommit> commits) 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.voidNoDeletionPolicy.onInit(List<? extends IndexCommit> commits) voidSnapshotDeletionPolicy.onInit(List<? extends IndexCommit> commits)