Show / Hide Table of Contents

    Class SortedSetDocValuesReaderState

    Wraps a IndexReader and resolves ords using existing SortedSetDocValues 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 IndexReader.

    Inheritance
    System.Object
    SortedSetDocValuesReaderState
    DefaultSortedSetDocValuesReaderState
    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.SortedSet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public abstract class SortedSetDocValuesReaderState

    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 IndexReader OrigReader { get; }
    Property Value
    Type Description
    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
    System.Collections.Generic.IDictionary<System.String, SortedSetDocValuesReaderState.OrdRange>

    Methods

    | Improve this Doc View Source

    GetDocValues()

    Return top-level doc values.

    Declaration
    public abstract SortedSetDocValues GetDocValues()
    Returns
    Type Description
    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 © 2019 Licensed to the Apache Software Foundation (ASF)