Property | Type | Description | |
---|---|---|---|
Snapshots | IList |
Method | Description | |
---|---|---|
BackupIndex ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy dp ) : void |
Example showing how to use the SnapshotDeletionPolicy to take a backup. this method does not really do a backup; instead, it reads every byte of every file just to test that the files indeed exist and are readable even while the index is changing.
|
Method | Description | |
---|---|---|
AssertSnapshotExists ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy sdp, int numSnapshots, bool checkIndexCommitSame ) : void | ||
CheckMaxDoc ( |
||
CheckSnapshotExists ( Directory dir, |
||
GetConfig ( |
||
PrepareIndexAndSnapshots ( Lucene.Net.Index.SnapshotDeletionPolicy sdp, |
Method | Description | |
---|---|---|
CopyFiles ( Directory dir, |
||
ReadFile ( Directory dir, string name ) : void | ||
RunTest ( |
||
SetUp ( ) : void | ||
TestBasicSnapshots ( ) : void | ||
TestMissingCommits ( ) : void | ||
TestMultiThreadedSnapshotting ( ) : void | ||
TestReleaseSnapshot ( ) : void | ||
TestRollbackToOldSnapshot ( ) : void | ||
TestSnapshotDeletionPolicy_Mem ( ) : void | ||
TestSnapshotLastCommitTwice ( ) : void |
protected AssertSnapshotExists ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy sdp, int numSnapshots, bool checkIndexCommitSame ) : void | ||
dir | Directory | |
sdp | Lucene.Net.Index.SnapshotDeletionPolicy | |
numSnapshots | int | |
checkIndexCommitSame | bool | |
return | void |
public BackupIndex ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy dp ) : void | ||
dir | Directory | |
dp | Lucene.Net.Index.SnapshotDeletionPolicy | |
return | void |
protected CheckMaxDoc ( |
||
commit | ||
expectedMaxDoc | int | |
return | void |
protected CheckSnapshotExists ( Directory dir, |
||
dir | Directory | |
c | ||
return | void |
protected GetConfig ( |
||
random | ||
dp | IndexDeletionPolicy | |
return |
protected PrepareIndexAndSnapshots ( Lucene.Net.Index.SnapshotDeletionPolicy sdp, |
||
sdp | Lucene.Net.Index.SnapshotDeletionPolicy | |
writer | ||
numSnapshots | int | |
return | void |