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

상속: Lucene.Net.Util.LuceneTestCase
파일 보기 프로젝트 열기: synhershko/lucene.net

공개 메소드들

메소드 설명
IsReadOnly ( IndexReader r ) : bool

비공개 메소드들

메소드 설명
AssertDelDocsRefCountEquals ( int refCount, Lucene.Net.Index.SegmentReader reader ) : void
AssertDocDeleted ( Lucene.Net.Index.SegmentReader reader, Lucene.Net.Index.SegmentReader reader2, int doc ) : void
DeleteWorked ( int doc, IndexReader r ) : bool
PerformDefaultTests ( IndexReader r1 ) : void

1. Get a norm from the original reader 2. Clone the original reader 3. Delete a document and set the norm of the cloned reader 4. Verify the norms are not the same on each reader 5. Verify the doc deleted is only in the cloned reader 6. Try to delete a document in the original reader, an exception should be thrown

TestCloneNoChangesStillReadOnly ( ) : void
TestCloneReadOnlyDirectoryReader ( ) : void
TestCloneReadOnlySegmentReader ( ) : void
TestCloneReadOnlyToWriteable ( ) : void
TestCloneSubreaders ( ) : void
TestCloneWithDeletes ( ) : void
TestCloneWithSetNorm ( ) : void
TestCloneWriteToClone ( ) : void
TestCloneWriteToOrig ( ) : void
TestCloneWriteableToReadOnly ( ) : void
TestCloseStoredFields ( ) : void
TestLucene1516Bug ( ) : void
TestMixedReaders ( ) : void
TestParallelReader ( ) : void
TestReadOnlyCloneAfterOptimize ( ) : void
TestReopenSegmentReaderToMultiReader ( ) : void
TestReopenWriteableToReadOnly ( ) : void
TestSegmentReaderCloseReferencing ( ) : void
TestSegmentReaderDelDocsReferenceCounting ( ) : void
TestSegmentReaderUndeleteall ( ) : void

메소드 상세

IsReadOnly() 공개 정적인 메소드

public static IsReadOnly ( IndexReader r ) : bool
r IndexReader
리턴 bool