C# Class Lucene.Net.Facet.Taxonomy.Directory.TaxonomyIndexArrays

A ParallelTaxonomyArrays that are initialized from the taxonomy index. @lucene.experimental
Inheritance: ParallelTaxonomyArrays
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
TaxonomyIndexArrays ( IndexReader reader ) : System
TaxonomyIndexArrays ( IndexReader reader, TaxonomyIndexArrays copyFrom ) : System

Private Methods

Method Description
Add ( int ordinal, int parentOrdinal ) : TaxonomyIndexArrays

Adds the given ordinal/parent info and returns either a new instance if the underlying array had to grow, or this instance otherwise.

NOTE: you should call this method from a thread-safe code.

ComputeChildrenSiblings ( int first ) : void
InitChildrenSiblings ( TaxonomyIndexArrays copyFrom ) : void
InitParents ( IndexReader reader, int first ) : void

Read the parents of the new categories

TaxonomyIndexArrays ( int parents ) : System

Used by Add(int, int) after the array grew.

Method Details

TaxonomyIndexArrays() public method

public TaxonomyIndexArrays ( IndexReader reader ) : System
reader IndexReader
return System

TaxonomyIndexArrays() public method

public TaxonomyIndexArrays ( IndexReader reader, TaxonomyIndexArrays copyFrom ) : System
reader IndexReader
copyFrom TaxonomyIndexArrays
return System