Class ParallelTaxonomyArrays
Returns 3 arrays for traversing the taxonomy:
- Parents:
Parents[i]
denotes the parent of category ordinali
. - Children:
Children[i]
denotes a child of category ordinali
. - Siblings:
Siblings[i]
denotes the sibling of category ordinali
.
To traverse the taxonomy tree, you typically start with Children[0]
(ordinal 0 is reserved for ROOT), and then depends if you want to do DFS or
BFS, you call Children[Children[0]]
or Siblings[Children[0]]
and so forth, respectively.
NOTE: you are not expected to modify the values of the arrays, since the arrays are shared with other threads. @lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.Facet.dll
Syntax
public abstract class ParallelTaxonomyArrays : object
Constructors
Name | Description |
---|---|
ParallelTaxonomyArrays() | Sole constructor. |
Properties
Name | Description |
---|---|
Children | Returns the children array, where |
Parents | Returns the parents array, where |
Siblings | Returns the siblings array, where |