Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ParallelTaxonomyArrays

    Returns 3 arrays for traversing the taxonomy:

    • 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.

    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
    System.Object
    ParallelTaxonomyArrays
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Facet.Taxonomy
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public abstract class ParallelTaxonomyArrays

    Constructors

    | Improve this Doc View Source

    ParallelTaxonomyArrays()

    Sole constructor.

    Declaration
    protected ParallelTaxonomyArrays()

    Properties

    | Improve this Doc View Source

    Children

    Returns the children array, where Children[i] denotes a child of category ordinal i.

    Declaration
    public abstract int[] Children { get; }
    Property Value
    Type Description
    System.Int32[]
    | Improve this Doc View Source

    Parents

    Returns the parents array, where Parents[i] denotes the parent of category ordinal i.

    Declaration
    public abstract int[] Parents { get; }
    Property Value
    Type Description
    System.Int32[]
    | Improve this Doc View Source

    Siblings

    Returns the siblings array, where Siblings[i] denotes the sibling of category ordinal i.

    Declaration
    public abstract int[] Siblings { get; }
    Property Value
    Type Description
    System.Int32[]
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.