Show / Hide Table of Contents

    Class PackedInt32s.Mutable

    A packed integer array that can be modified.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    NumericDocValues
    PackedInt32s.Reader
    PackedInt32s.Mutable
    GrowableWriter
    PackedInt32s.MutableImpl
    Inherited Members
    PackedInt32s.Reader.Get(Int32, Int64[], Int32, Int32)
    PackedInt32s.Reader.BitsPerValue
    PackedInt32s.Reader.Count
    PackedInt32s.Reader.RamBytesUsed()
    PackedInt32s.Reader.GetArray()
    PackedInt32s.Reader.HasArray
    NumericDocValues.Get(Int32)
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Mutable : PackedInt32s.Reader

    Methods

    | Improve this Doc View Source

    Clear()

    Sets all values to 0.

    Declaration
    public virtual void Clear()
    | Improve this Doc View Source

    Fill(Int32, Int32, Int64)

    Fill the mutable from fromIndex (inclusive) to toIndex (exclusive) with val.

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

    Save(DataOutput)

    Save this mutable into out. Instantiating a reader from the generated data will return a reader with the same number of bits per value.

    Declaration
    public virtual void Save(DataOutput out)
    Parameters
    Type Name Description
    DataOutput out
    | Improve this Doc View Source

    Set(Int32, Int64)

    Set the value at the given index in the array.

    Declaration
    public abstract void Set(int index, long value)
    Parameters
    Type Name Description
    System.Int32 index

    Where the value should be positioned.

    System.Int64 value

    A value conforming to the constraints set by the array.

    | Improve this Doc View Source

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

    Bulk set: set at least one and at most len longs starting at off in arr into this mutable, starting at index. Returns the actual number of values that have been set.

    Declaration
    public virtual 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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)