Uses of Class
org.apache.lucene.index.IndexCommit
-
Packages that use IndexCommit Package Description org.apache.lucene.benchmark.byTask.tasks Extendable benchmark tasks.org.apache.lucene.index Code to maintain and access indices. -
-
Uses of IndexCommit in org.apache.lucene.benchmark.byTask.tasks
Methods in org.apache.lucene.benchmark.byTask.tasks that return IndexCommit Modifier and Type Method Description static IndexCommitOpenReaderTask. findIndexCommit(Directory dir, String userData)Methods in org.apache.lucene.benchmark.byTask.tasks with parameters of type IndexCommit Modifier and Type Method Description static IndexWriterCreateIndexTask. configureWriter(Config config, PerfRunData runData, IndexWriterConfig.OpenMode mode, IndexCommit commit)static IndexWriterConfigCreateIndexTask. createWriterConfig(Config config, PerfRunData runData, IndexWriterConfig.OpenMode mode, IndexCommit commit) -
Uses of IndexCommit in org.apache.lucene.index
Subclasses of IndexCommit in org.apache.lucene.index Modifier and Type Class Description protected classSnapshotDeletionPolicy.SnapshotCommitPointFields in org.apache.lucene.index declared as IndexCommit Modifier and Type Field Description protected IndexCommitSnapshotDeletionPolicy.SnapshotCommitPoint. cpprotected IndexCommitSnapshotDeletionPolicy. lastCommitMethods in org.apache.lucene.index that return IndexCommit Modifier and Type Method Description IndexCommitFilterIndexReader. getIndexCommit()IndexCommitIndexReader. getIndexCommit()Expert: return the IndexCommit that this reader has opened.IndexCommitIndexWriterConfig. getIndexCommit()Returns theIndexCommitas specified inIndexWriterConfig.setIndexCommit(IndexCommit)or the default,nullwhich specifies to open the latest index commit point.IndexCommitSnapshotDeletionPolicy. getSnapshot(String id)Get a snapshotted IndexCommit by ID.IndexCommitPersistentSnapshotDeletionPolicy. snapshot(String id)Snapshots the last commit using the given ID.IndexCommitSnapshotDeletionPolicy. snapshot(String id)Snapshots the last commit.Methods in org.apache.lucene.index that return types with arguments of type IndexCommit Modifier and Type Method Description static Collection<IndexCommit>IndexReader. listCommits(Directory dir)Returns all commit points that exist in the Directory.protected List<IndexCommit>SnapshotDeletionPolicy. wrapCommits(List<? extends IndexCommit> commits)Methods in org.apache.lucene.index with parameters of type IndexCommit Modifier and Type Method Description intIndexCommit. compareTo(IndexCommit commit)protected IndexReaderIndexReader. doOpenIfChanged(IndexCommit commit)If the index has changed since it was opened, open and return a new reader; else, returnnull.static IndexReaderIndexReader. open(IndexCommit commit)Expert: returns an IndexReader reading the index in the givenIndexCommit.static IndexReaderIndexReader. open(IndexCommit commit, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(IndexCommit commit, int termInfosIndexDivisor)Expert: returns an IndexReader reading the index in the givenIndexCommitand termInfosIndexDivisor.static IndexReaderIndexReader. open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader, IndexCommit commit)If the IndexCommit differs from what the provided reader is searching, or the provided reader is not already read-only, open and return a newreadOnly=truereader; else, return null.protected voidSnapshotDeletionPolicy. registerSnapshotInfo(String id, String segment, IndexCommit commit)Registers the given snapshot information.IndexReaderIndexReader. reopen(IndexCommit commit)Deprecated.ObjectSegmentInfos.FindSegmentsFile. run(IndexCommit 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 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)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)voidPersistentSnapshotDeletionPolicy. onInit(List<? extends IndexCommit> commits)voidSnapshotDeletionPolicy. onInit(List<? extends IndexCommit> commits)protected List<IndexCommit>SnapshotDeletionPolicy. wrapCommits(List<? extends IndexCommit> commits)Constructors in org.apache.lucene.index with parameters of type IndexCommit Constructor Description IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadSnapshotCommitPoint(IndexCommit cp)
-