Uses of Class
org.apache.lucene.index.IndexCommit
-
Packages that use IndexCommit Package Description org.apache.lucene.index Code to maintain and access indices. -
-
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.protected IndexCommitSnapshotDeletionPolicy. lastCommitMost recently committedIndexCommit.Fields in org.apache.lucene.index with type parameters of type IndexCommit Modifier and Type Field Description protected Map<Long,IndexCommit>SnapshotDeletionPolicy. indexCommitsUsed to map gen to IndexCommit.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.IndexCommitSnapshotDeletionPolicy. getIndexCommit(long gen)Retrieve anIndexCommitfrom its generation; returns null if this IndexCommit is not currently snapshottedIndexCommitStandardDirectoryReader. getIndexCommit()IndexCommitPersistentSnapshotDeletionPolicy. snapshot()Snapshots the last commit.IndexCommitSnapshotDeletionPolicy. snapshot()Snapshots the last commit and returns it.Methods in org.apache.lucene.index that return types with arguments of type IndexCommit Modifier and Type Method Description List<IndexCommit>SnapshotDeletionPolicy. 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 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)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.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.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)
-