C# 클래스 Lucene.Net.Index.TestSnapshotDeletionPolicy

상속: Lucene.Net.Util.LuceneTestCase
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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