Show / Hide Table of Contents

    Class GrowableWriter

    Implements PackedInt32s.Mutable, but grows the bit count of the underlying packed ints on-demand.

    Beware that this class will accept to set negative values but in order to do this, it will grow the number of bits per value to 64.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    NumericDocValues
    PackedInt32s.Reader
    PackedInt32s.Mutable
    GrowableWriter
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public class GrowableWriter : PackedInt32s.Mutable

    Constructors

    | Improve this Doc View Source

    GrowableWriter(Int32, Int32, Single)

    Declaration
    public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio)
    Parameters
    Type Name Description
    System.Int32 startBitsPerValue

    the initial number of bits per value, may grow depending on the data

    System.Int32 valueCount

    the number of values

    System.Single acceptableOverheadRatio

    an acceptable overhead ratio

    Properties

    | Improve this Doc View Source

    BitsPerValue

    Declaration
    public override int BitsPerValue { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    PackedInt32s.Reader.BitsPerValue
    | Improve this Doc View Source

    Count

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

    HasArray

    Declaration
    public override bool HasArray { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    PackedInt32s.Reader.HasArray
    | Improve this Doc View Source

    Mutable

    Declaration
    public virtual PackedInt32s.Mutable Mutable { get; }
    Property Value
    Type Description
    PackedInt32s.Mutable

    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
    Returns
    Type Description
    System.Int64
    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

    GetArray()

    Declaration
    public override object GetArray()
    Returns
    Type Description
    System.Object
    Overrides
    PackedInt32s.Reader.GetArray()
    | 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

    Resize(Int32)

    Declaration
    public virtual GrowableWriter Resize(int newSize)
    Parameters
    Type Name Description
    System.Int32 newSize
    Returns
    Type Description
    GrowableWriter
    | Improve this Doc View Source

    Save(DataOutput)

    Declaration
    public override void Save(DataOutput out)
    Parameters
    Type Name Description
    DataOutput out
    Overrides
    PackedInt32s.Mutable.Save(DataOutput)
    | 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
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)