Show / Hide Table of Contents

    Class SortedSetDocValuesReaderState

    Wraps a and resolves ords using existing APIs without a separate taxonomy index. This only supports flat facets (dimension + label), and it makes faceting a bit slower, adds some cost at reopen time, but avoids managing the separate taxonomy index. It also requires less RAM than the taxonomy index, as it manages the flat (2-level) hierarchy more efficiently. In addition, the tie-break during faceting is now meaningful (in label sorted order).

    NOTE: creating an instance of this class is somewhat costly, as it computes per-segment ordinal maps, so you should create it once and re-use that one instance for a given .

    Inheritance
    System.Object
    SortedSetDocValuesReaderState
    DefaultSortedSetDocValuesReaderState
    Namespace: Lucene.Net.Facet.SortedSet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public abstract class SortedSetDocValuesReaderState : object

    Constructors

    | Improve this Doc View Source

    SortedSetDocValuesReaderState()

    Sole constructor.

    Declaration
    protected SortedSetDocValuesReaderState()

    Properties

    | Improve this Doc View Source

    Count

    Number of unique labels.

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

    Field

    Indexed field we are reading.

    Declaration
    public abstract string Field { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    OrigReader

    Returns top-level index reader.

    Declaration
    public abstract Index.IndexReader OrigReader { get; }
    Property Value
    Type Description
    Index.IndexReader
    | Improve this Doc View Source

    PrefixToOrdRange

    Returns mapping from prefix to SortedSetDocValuesReaderState.OrdRange.

    Declaration
    public abstract IDictionary<string, SortedSetDocValuesReaderState.OrdRange> PrefixToOrdRange { get; }
    Property Value
    Type Description
    IDictionary<System.String, SortedSetDocValuesReaderState.OrdRange>

    Methods

    | Improve this Doc View Source

    GetDocValues()

    Return top-level doc values.

    Declaration
    public abstract Index.SortedSetDocValues GetDocValues()
    Returns
    Type Description
    Index.SortedSetDocValues
    | Improve this Doc View Source

    GetOrdRange(String)

    Returns the SortedSetDocValuesReaderState.OrdRange for this dimension.

    Declaration
    public abstract SortedSetDocValuesReaderState.OrdRange GetOrdRange(string dim)
    Parameters
    Type Name Description
    System.String dim
    Returns
    Type Description
    SortedSetDocValuesReaderState.OrdRange
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)