Show / Hide Table of Contents

    Interface PackedInt32s.IDecoder

    A decoder for packed integers.

    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public interface IDecoder

    Properties

    | Improve this Doc View Source

    ByteBlockCount

    The minimum number of blocks to encode in a single iteration, when using byte encoding.

    Declaration
    int ByteBlockCount { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    ByteValueCount

    The number of values that can be stored in ByteBlockCount blocks.

    Declaration
    int ByteValueCount { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Int64BlockCount

    The minimum number of blocks to encode in a single iteration, when using long encoding.

    NOTE: This was longBlockCount() in Lucene.

    Declaration
    int Int64BlockCount { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Int64ValueCount

    The number of values that can be stored in Int64BlockCount blocks.

    NOTE: This was longValueCount() in Lucene.

    Declaration
    int Int64ValueCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Decode(Byte[], Int32, Int32[], Int32, Int32)

    Read 8 * iterations * BlockCount blocks from blocks, decode them and write iterations * ValueCount values into values.

    Declaration
    void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
    Parameters
    Type Name Description
    System.Byte[] blocks

    The long blocks that hold packed integer values.

    System.Int32 blocksOffset

    The offset where to start reading blocks.

    System.Int32[] values

    The values buffer.

    System.Int32 valuesOffset

    The offset where to start writing values.

    System.Int32 iterations

    Controls how much data to decode.

    | Improve this Doc View Source

    Decode(Byte[], Int32, Int64[], Int32, Int32)

    Read 8 * iterations * BlockCount blocks from blocks, decode them and write iterations * ValueCount values into values.

    Declaration
    void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
    Parameters
    Type Name Description
    System.Byte[] blocks

    The long blocks that hold packed integer values.

    System.Int32 blocksOffset

    The offset where to start reading blocks.

    System.Int64[] values

    The values buffer.

    System.Int32 valuesOffset

    The offset where to start writing values.

    System.Int32 iterations

    Controls how much data to decode.

    | Improve this Doc View Source

    Decode(Int64[], Int32, Int32[], Int32, Int32)

    Read iterations * BlockCount blocks from blocks, decode them and write iterations * ValueCount values into values.

    Declaration
    void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
    Parameters
    Type Name Description
    System.Int64[] blocks

    The long blocks that hold packed integer values.

    System.Int32 blocksOffset

    The offset where to start reading blocks.

    System.Int32[] values

    The values buffer.

    System.Int32 valuesOffset

    The offset where to start writing values.

    System.Int32 iterations

    Controls how much data to decode.

    | Improve this Doc View Source

    Decode(Int64[], Int32, Int64[], Int32, Int32)

    Read iterations * BlockCount blocks from blocks, decode them and write iterations * ValueCount values into values.

    Declaration
    void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
    Parameters
    Type Name Description
    System.Int64[] blocks

    The long blocks that hold packed integer values.

    System.Int32 blocksOffset

    The offset where to start reading blocks.

    System.Int64[] values

    The values buffer.

    System.Int32 valuesOffset

    The offset where to start writing values.

    System.Int32 iterations

    Controls how much data to decode.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)