The IndexCommit type exposes the following members.
Methods
Name | Description | |
---|---|---|
Delete | Delete this commit point. This only applies when using
the commit point in the context of IndexWriter's
IndexDeletionPolicy.
Upon calling this, the writer is notified that this commit
point should be deleted.
Decision that a commit-point should be deleted is taken by the {@link IndexDeletionPolicy} in effect
and therefore this should only be called by its {@link IndexDeletionPolicy#onInit onInit()} or
{@link IndexDeletionPolicy#onCommit onCommit()} methods.
| |
Equals | Two IndexCommits are equal if both their Directory and versions are equal. (Overrides Object..::..Equals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetDirectory | Returns the {@link Directory} for the index. | |
GetFileNames | Returns all index files referenced by this commit point. | |
GetGeneration | Returns the generation (the _N in segments_N) for this
IndexCommit
| |
GetHashCode | (Overrides Object..::..GetHashCode()()()().) | |
GetSegmentsFileName | Get the segments file ( CopyC# segments_N | |
GetTimestamp | Convenience method that returns the last modified time
of the segments_N file corresponding to this index
commit, equivalent to
getDirectory().fileModified(getSegmentsFileName()).
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserData | Returns userData, previously passed to {@link
IndexWriter#Commit(Map)} for this commit. Map is
String -> String.
| |
GetVersion | Returns the version for this IndexCommit. This is the
same value that {@link IndexReader#getVersion} would
return if it were opened on this commit.
| |
IsDeleted | ||
IsOptimized | Returns true if this commit is an optimized index. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) |