C# 클래스 Lucene.Net.Facet.Taxonomy.TestTaxonomyCombined

상속: FacetTestCase
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
CheckPaths ( ITaxonomyWriter tw ) : void
FillTaxonomy ( ITaxonomyWriter tw ) : void

fillTaxonomy adds the categories in the categories[] array, and asserts that the additions return exactly the ordinals (in the past - paths) specified in expectedPaths[]. Note that this assumes that fillTaxonomy() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.

FillTaxonomyCheckPaths ( ITaxonomyWriter tw ) : void

fillTaxonomyCheckPaths adds the categories in the categories[] array, and asserts that the additions return exactly paths specified in expectedPaths[]. This is the same add fillTaxonomy() but also checks the correctness of getParent(), not just addCategory(). Note that this assumes that fillTaxonomyCheckPaths() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.

Showcat ( string path ) : string

비공개 메소드들

메소드 설명
AssertConsistentYoungestChild ( FacetLabel abPath, int abOrd, int abYoungChildBase1, int abYoungChildBase2, int retry, int numCategories ) : void
CheckWriterParent ( TaxonomyReader tr, ITaxonomyWriter tw ) : void
Showcat ( FacetLabel path ) : string
TestChildrenArrays ( ) : void
TestChildrenArraysGrowth ( ) : void
TestChildrenArraysInvariants ( ) : void
TestNrt ( ) : void
TestReaderBasic ( ) : void
TestReaderParent ( ) : void
TestRootOnly ( ) : void
TestRootOnly2 ( ) : void
TestSeparateReaderAndWriter ( ) : void
TestSeparateReaderAndWriter2 ( ) : void
TestTaxonomyReaderRefreshRaces ( ) : void
TestWriter ( ) : void
TestWriterCheckPaths ( ) : void
TestWriterCheckPaths2 ( ) : void
TestWriterLock ( ) : void
TestWriterParent1 ( ) : void
TestWriterParent2 ( ) : void
TestWriterSimpler ( ) : void
TestWriterTwice ( ) : void
TestWriterTwice2 ( ) : void
TestWriterTwice3 ( ) : void
stackTraceStr ( Exception error ) : string

Grab the stack trace into a string since the exception was thrown in a thread and we want the assert outside the thread to show the stack trace in case of failure.

메소드 상세

CheckPaths() 공개 정적인 메소드

public static CheckPaths ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
리턴 void

FillTaxonomy() 공개 정적인 메소드

fillTaxonomy adds the categories in the categories[] array, and asserts that the additions return exactly the ordinals (in the past - paths) specified in expectedPaths[]. Note that this assumes that fillTaxonomy() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.
public static FillTaxonomy ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
리턴 void

FillTaxonomyCheckPaths() 공개 정적인 메소드

fillTaxonomyCheckPaths adds the categories in the categories[] array, and asserts that the additions return exactly paths specified in expectedPaths[]. This is the same add fillTaxonomy() but also checks the correctness of getParent(), not just addCategory(). Note that this assumes that fillTaxonomyCheckPaths() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.
public static FillTaxonomyCheckPaths ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
리턴 void

Showcat() 공개 정적인 메소드

public static Showcat ( string path ) : string
path string
리턴 string