Uses of Class
org.apache.lucene.index.IndexCommit

Packages that use IndexCommit
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
protected  class SnapshotDeletionPolicy.SnapshotCommitPoint
           
 

Fields in org.apache.lucene.index declared as IndexCommit
protected  IndexCommit SnapshotDeletionPolicy.SnapshotCommitPoint.cp
           
protected  IndexCommit SnapshotDeletionPolicy.lastCommit
           
 

Methods in org.apache.lucene.index that return IndexCommit
 IndexCommit IndexWriterConfig.getIndexCommit()
          Returns the IndexCommit as specified in IndexWriterConfig.setIndexCommit(IndexCommit) or the default, null which specifies to open the latest index commit point.
 IndexCommit IndexReader.getIndexCommit()
          Expert: return the IndexCommit that this reader has opened.
 IndexCommit SnapshotDeletionPolicy.getSnapshot(String id)
          Get a snapshotted IndexCommit by ID.
 IndexCommit SnapshotDeletionPolicy.snapshot(String id)
          Snapshots the last commit.
 IndexCommit PersistentSnapshotDeletionPolicy.snapshot(String id)
          Snapshots the last commit using the given ID.
 

Methods in org.apache.lucene.index that return types with arguments of type IndexCommit
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
 int IndexCommit.compareTo(IndexCommit commit)
           
static IndexReader IndexReader.open(IndexCommit commit, boolean readOnly)
          Expert: returns an IndexReader reading the index in the given IndexCommit.
static IndexReader IndexReader.open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly)
          Expert: returns an IndexReader reading the index in the given Directory, using a specific commit and with a custom IndexDeletionPolicy.
static IndexReader IndexReader.open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)
          Expert: returns an IndexReader reading the index in the given Directory, using a specific commit and with a custom IndexDeletionPolicy.
protected  void SnapshotDeletionPolicy.registerSnapshotInfo(String id, String segment, IndexCommit commit)
          Registers the given snapshot information.
 IndexReader IndexReader.reopen(IndexCommit commit)
          Expert: reopen this reader on a specific commit point.
 Object SegmentInfos.FindSegmentsFile.run(IndexCommit commit)
           
 IndexWriterConfig IndexWriterConfig.setIndexCommit(IndexCommit commit)
          Expert: allows to open a certain commit point.
 

Method parameters in org.apache.lucene.index with type arguments of type IndexCommit
 void SnapshotDeletionPolicy.onCommit(List<? extends IndexCommit> commits)
           
 void NoDeletionPolicy.onCommit(List<? extends IndexCommit> commits)
           
 void KeepOnlyLastCommitDeletionPolicy.onCommit(List<? extends IndexCommit> commits)
          Deletes all commits except the most recent one.
 void IndexDeletionPolicy.onCommit(List<? extends IndexCommit> commits)
          This is called each time the writer completed a commit.
 void SnapshotDeletionPolicy.onInit(List<? extends IndexCommit> commits)
           
 void PersistentSnapshotDeletionPolicy.onInit(List<? extends IndexCommit> commits)
           
 void NoDeletionPolicy.onInit(List<? extends IndexCommit> commits)
           
 void KeepOnlyLastCommitDeletionPolicy.onInit(List<? extends IndexCommit> commits)
          Deletes all commits except the most recent one.
 void IndexDeletionPolicy.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.
protected  List<IndexCommit> SnapshotDeletionPolicy.wrapCommits(List<? extends IndexCommit> commits)
           
 

Constructors in org.apache.lucene.index with parameters of type IndexCommit
IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)
          Deprecated. use IndexWriter.IndexWriter(Directory, IndexWriterConfig) instead
SnapshotDeletionPolicy.SnapshotCommitPoint(IndexCommit cp)
           
 



Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.