Show / Hide Table of Contents

    Class Packed64

    Space optimized random access capable array of values with a fixed number of bits/value. Values are packed contiguously.

    The implementation strives to perform af fast as possible under the constraint of contiguous bits, by avoiding expensive operations. This comes at the cost of code clarity.

    Technical details: this implementation is a refinement of a non-branching version. The non-branching get and set methods meant that 2 or 4 atomics in the underlying array were always accessed, even for the cases where only 1 or 2 were needed. Even with caching, this had a detrimental effect on performance. Related to this issue, the old implementation used lookup tables for shifts and masks, which also proved to be a bit slower than calculating the shifts and masks on the fly. See https://issues.apache.org/jira/browse/LUCENE-4062 for details.

    Inheritance
    System.Object
    NumericDocValues
    PackedInt32s.Reader
    PackedInt32s.Mutable
    PackedInt32s.MutableImpl
    Packed64
    Inherited Members
    PackedInt32s.MutableImpl.m_valueCount
    PackedInt32s.MutableImpl.m_bitsPerValue
    PackedInt32s.MutableImpl.BitsPerValue
    PackedInt32s.MutableImpl.Count
    PackedInt32s.Mutable.Save(DataOutput)
    PackedInt32s.Reader.GetArray()
    PackedInt32s.Reader.HasArray
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public class Packed64 : PackedInt32s.MutableImpl

    Constructors

    | Improve this Doc View Source

    Packed64(Int32, DataInput, Int32, Int32)

    Creates an array with content retrieved from the given DataInput.

    Declaration
    public Packed64(int packedIntsVersion, DataInput in, int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    System.Int32 packedIntsVersion
    DataInput in

    A DataInput, positioned at the start of Packed64-content.

    System.Int32 valueCount

    The number of elements.

    System.Int32 bitsPerValue

    The number of bits available for any given value.

    | Improve this Doc View Source

    Packed64(Int32, Int32)

    Creates an array with the internal structures adjusted for the given limits and initialized to 0.

    Declaration
    public Packed64(int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    System.Int32 valueCount

    The number of elements.

    System.Int32 bitsPerValue

    The number of bits available for any given value.

    Methods

    | Improve this Doc View Source

    Clear()

    Declaration
    public override void Clear()
    Overrides
    PackedInt32s.Mutable.Clear()
    | Improve this Doc View Source

    Fill(Int32, Int32, Int64)

    Declaration
    public override void Fill(int fromIndex, int toIndex, long val)
    Parameters
    Type Name Description
    System.Int32 fromIndex
    System.Int32 toIndex
    System.Int64 val
    Overrides
    PackedInt32s.Mutable.Fill(Int32, Int32, Int64)
    | Improve this Doc View Source

    Get(Int32)

    Declaration
    public override long Get(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The position of the value.

    Returns
    Type Description
    System.Int64

    The value at the given index.

    Overrides
    NumericDocValues.Get(Int32)
    | Improve this Doc View Source

    Get(Int32, Int64[], Int32, Int32)

    Declaration
    public override int Get(int index, long[] arr, int off, int len)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int64[] arr
    System.Int32 off
    System.Int32 len
    Returns
    Type Description
    System.Int32
    Overrides
    PackedInt32s.Reader.Get(Int32, Int64[], Int32, Int32)
    | Improve this Doc View Source

    RamBytesUsed()

    Declaration
    public override long RamBytesUsed()
    Returns
    Type Description
    System.Int64
    Overrides
    PackedInt32s.Reader.RamBytesUsed()
    | Improve this Doc View Source

    Set(Int32, Int64)

    Declaration
    public override void Set(int index, long value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int64 value
    Overrides
    PackedInt32s.Mutable.Set(Int32, Int64)
    | Improve this Doc View Source

    Set(Int32, Int64[], Int32, Int32)

    Declaration
    public override int Set(int index, long[] arr, int off, int len)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int64[] arr
    System.Int32 off
    System.Int32 len
    Returns
    Type Description
    System.Int32
    Overrides
    PackedInt32s.Mutable.Set(Int32, Int64[], Int32, Int32)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)