C# Class Lucene.Net.Index.TestIndexReaderClone

Inheritance: Lucene.Net.Util.LuceneTestCase
Afficher le fichier Open project: synhershko/lucene.net

Méthodes publiques

Méthode Description
IsReadOnly ( IndexReader r ) : bool

Private Methods

Méthode 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 méthode

public static IsReadOnly ( IndexReader r ) : bool
r IndexReader
Résultat bool