public abstract class ParallelTaxonomyArrays extends Object
parents
: parents[i]
denotes the parent of category
ordinal i
.children
: children[i]
denotes a child of category ordinal
i
.siblings
: siblings[i]
denotes the sibling of category
ordinal i
.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.
Constructor and Description |
---|
ParallelTaxonomyArrays() |
Modifier and Type | Method and Description |
---|---|
abstract int[] |
children()
Returns the children array, where
children[i] denotes a child of
category ordinal i . |
abstract int[] |
parents()
Returns the parents array, where
parents[i] denotes the parent of
category ordinal i . |
abstract int[] |
siblings()
Returns the siblings array, where
siblings[i] denotes the sibling
of category ordinal i . |
public abstract int[] parents()
parents[i]
denotes the parent of
category ordinal i
.public abstract int[] children()
children[i]
denotes a child of
category ordinal i
.public abstract int[] siblings()
siblings[i]
denotes the sibling
of category ordinal i
.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.