C# Class Lucene.Net.Index.TestIndexReaderClone

Inheritance: Lucene.Net.Util.LuceneTestCase
Show file Open project: synhershko/lucene.net

Public Methods

Method Description
IsReadOnly ( IndexReader r ) : bool

Private Methods

Method Description
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

Method Details

IsReadOnly() public static method

public static IsReadOnly ( IndexReader r ) : bool
r IndexReader
return bool