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
Subclasses of IndexCommit in org.apache.lucene.index Modifier and Type Class Description private static classIndexFileDeleter.CommitPointHolds details for each commit point.private classSnapshotDeletionPolicy.SnapshotCommitPointWraps a providedIndexCommitand prevents it from being deleted.(package private) static classStandardDirectoryReader.ReaderCommitFields in org.apache.lucene.index declared as IndexCommit Modifier and Type Field Description protected IndexCommitLiveIndexWriterConfig. commitIndexCommitthatIndexWriteris opened on.protected IndexCommitSnapshotDeletionPolicy.SnapshotCommitPoint. cpTheIndexCommitwe are preventing from deletion.protected IndexCommitSnapshotDeletionPolicy. lastCommitMost recently committedIndexCommit.Fields in org.apache.lucene.index with type parameters of type IndexCommit Modifier and Type Field Description protected java.util.Map<java.lang.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 java.util.List<IndexCommit>SnapshotDeletionPolicy. getSnapshots()Returns all IndexCommits held by at least one snapshot.static java.util.List<IndexCommit>DirectoryReader. listCommits(Directory dir)Returns all commit points that exist in the Directory.private java.util.List<IndexCommit>SnapshotDeletionPolicy. wrapCommits(java.util.List<? extends IndexCommit> commits)Wraps eachIndexCommitas aSnapshotDeletionPolicy.SnapshotCommitPoint.Methods in org.apache.lucene.index with parameters of type IndexCommit Modifier and Type Method Description intIndexCommit. compareTo(IndexCommit commit)private DirectoryReaderStandardDirectoryReader. doOpenFromCommit(IndexCommit commit)private DirectoryReaderStandardDirectoryReader. doOpenFromWriter(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)private DirectoryReaderStandardDirectoryReader. doOpenNoWriter(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, java.util.Comparator<LeafReader> leafSorter)Expert: returns an IndexReader reading the index on the givenIndexCommit.(package private) static DirectoryReaderStandardDirectoryReader. open(Directory directory, int minSupportedMajorVersion, IndexCommit commit, java.util.Comparator<LeafReader> leafSorter)called from DirectoryReader.open(...) methods(package private) static DirectoryReaderStandardDirectoryReader. open(Directory directory, IndexCommit commit, java.util.Comparator<LeafReader> leafSorter)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(java.util.List<? extends IndexCommit> commits)This is called each time the writer completed a commit.voidKeepOnlyLastCommitDeletionPolicy. onCommit(java.util.List<? extends IndexCommit> commits)Deletes all commits except the most recent one.voidNoDeletionPolicy. onCommit(java.util.List<? extends IndexCommit> commits)voidSnapshotDeletionPolicy. onCommit(java.util.List<? extends IndexCommit> commits)abstract voidIndexDeletionPolicy. onInit(java.util.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(java.util.List<? extends IndexCommit> commits)Deletes all commits except the most recent one.voidNoDeletionPolicy. onInit(java.util.List<? extends IndexCommit> commits)voidSnapshotDeletionPolicy. onInit(java.util.List<? extends IndexCommit> commits)private java.util.List<IndexCommit>SnapshotDeletionPolicy. wrapCommits(java.util.List<? extends IndexCommit> commits)Wraps eachIndexCommitas aSnapshotDeletionPolicy.SnapshotCommitPoint.Constructors in org.apache.lucene.index with parameters of type IndexCommit Constructor Description SnapshotCommitPoint(IndexCommit cp)Creates aSnapshotCommitPointwrapping the providedIndexCommit.
-