C# Класс Lucene.Net.Index.TestSnapshotDeletionPolicy

Наследование: Lucene.Net.Util.LuceneTestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Snapshots IList

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
AssertSnapshotExists ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy sdp, int numSnapshots, bool checkIndexCommitSame ) : void
CheckMaxDoc ( IndexCommit commit, int expectedMaxDoc ) : void
CheckSnapshotExists ( Directory dir, IndexCommit c ) : void
GetConfig ( Random random, IndexDeletionPolicy dp ) : IndexWriterConfig
PrepareIndexAndSnapshots ( Lucene.Net.Index.SnapshotDeletionPolicy sdp, IndexWriter writer, int numSnapshots ) : void

Приватные методы

Метод Описание
CopyFiles ( Directory dir, IndexCommit cp ) : void
ReadFile ( Directory dir, string name ) : void
RunTest ( Random random, Directory dir ) : void
SetUp ( ) : void
TestBasicSnapshots ( ) : void
TestMissingCommits ( ) : void
TestMultiThreadedSnapshotting ( ) : void
TestReleaseSnapshot ( ) : void
TestRollbackToOldSnapshot ( ) : void
TestSnapshotDeletionPolicy_Mem ( ) : void
TestSnapshotLastCommitTwice ( ) : void

Описание методов

AssertSnapshotExists() защищенный Метод

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
Результат void

BackupIndex() публичный Метод

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.
public BackupIndex ( Directory dir, Lucene.Net.Index.SnapshotDeletionPolicy dp ) : void
dir Directory
dp Lucene.Net.Index.SnapshotDeletionPolicy
Результат void

CheckMaxDoc() защищенный Метод

protected CheckMaxDoc ( IndexCommit commit, int expectedMaxDoc ) : void
commit IndexCommit
expectedMaxDoc int
Результат void

CheckSnapshotExists() защищенный Метод

protected CheckSnapshotExists ( Directory dir, IndexCommit c ) : void
dir Directory
c IndexCommit
Результат void

GetConfig() защищенный Метод

protected GetConfig ( Random random, IndexDeletionPolicy dp ) : IndexWriterConfig
random System.Random
dp IndexDeletionPolicy
Результат IndexWriterConfig

PrepareIndexAndSnapshots() защищенный Метод

protected PrepareIndexAndSnapshots ( Lucene.Net.Index.SnapshotDeletionPolicy sdp, IndexWriter writer, int numSnapshots ) : void
sdp Lucene.Net.Index.SnapshotDeletionPolicy
writer IndexWriter
numSnapshots int
Результат void

Описание свойств

Snapshots защищенное свойство

protected IList Snapshots
Результат IList