Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PackedInt32s.NullReader

    A PackedInt32s.Reader which has all its values equal to 0 (bitsPerValue = 0).

    Inheritance
    object
    NumericDocValues
    PackedInt32s.Reader
    PackedInt32s.NullReader
    Inherited Members
    PackedInt32s.Reader.GetArray()
    PackedInt32s.Reader.HasArray
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class PackedInt32s.NullReader : PackedInt32s.Reader

    Constructors

    NullReader(int)

    Sole constructor.

    Declaration
    public NullReader(int valueCount)
    Parameters
    Type Name Description
    int valueCount

    Properties

    BitsPerValue

    A PackedInt32s.Reader which has all its values equal to 0 (bitsPerValue = 0).

    Declaration
    public override int BitsPerValue { get; }
    Property Value
    Type Description
    int

    The number of bits used to store any given value. Note: this does not imply that memory usage is bitsPerValue * #values as implementations are free to use non-space-optimal packing of bits.

    Overrides
    PackedInt32s.Reader.BitsPerValue

    Count

    The number of values.

    NOTE: This was size() in Lucene.
    Declaration
    public override int Count { get; }
    Property Value
    Type Description
    int
    Overrides
    PackedInt32s.Reader.Count

    Methods

    Get(int)

    Returns the numeric value for the specified document ID.

    Declaration
    public override long Get(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    long

    numeric value

    Overrides
    NumericDocValues.Get(int)

    Get(int, long[], int, int)

    Bulk get: read at least one and at most len longs starting from index into arr[off:off+len] and return the actual number of values that have been read.

    Declaration
    public override int Get(int index, long[] arr, int off, int len)
    Parameters
    Type Name Description
    int index
    long[] arr
    int off
    int len
    Returns
    Type Description
    int
    Overrides
    PackedInt32s.Reader.Get(int, long[], int, int)

    RamBytesUsed()

    Return the in-memory size in bytes.

    Declaration
    public override long RamBytesUsed()
    Returns
    Type Description
    long
    Overrides
    PackedInt32s.Reader.RamBytesUsed()
    Back to top Copyright © 2024 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.