Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface PackedInt32s.IEncoder

    An encoder for packed integers.

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

    Properties

    ByteBlockCount

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

    Declaration
    int ByteBlockCount { get; }
    Property Value
    Type Description
    int

    ByteValueCount

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

    Declaration
    int ByteValueCount { get; }
    Property Value
    Type Description
    int

    Int64BlockCount

    The minimum number of long 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
    int

    Int64ValueCount

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

    NOTE: This was longValueCount() in Lucene
    Declaration
    int Int64ValueCount { get; }
    Property Value
    Type Description
    int

    Methods

    Encode(int[], int, byte[], int, int)

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

    Declaration
    void Encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
    Parameters
    Type Name Description
    int[] values

    The values buffer.

    int valuesOffset

    The offset where to start reading values.

    byte[] blocks

    The long blocks that hold packed integer values.

    int blocksOffset

    The offset where to start writing blocks.

    int iterations

    Controls how much data to encode.

    Encode(int[], int, long[], int, int)

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

    Declaration
    void Encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
    Parameters
    Type Name Description
    int[] values

    The values buffer.

    int valuesOffset

    The offset where to start reading values.

    long[] blocks

    The long blocks that hold packed integer values.

    int blocksOffset

    The offset where to start writing blocks.

    int iterations

    Controls how much data to encode.

    Encode(long[], int, byte[], int, int)

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

    Declaration
    void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations)
    Parameters
    Type Name Description
    long[] values

    The values buffer.

    int valuesOffset

    The offset where to start reading values.

    byte[] blocks

    The long blocks that hold packed integer values.

    int blocksOffset

    The offset where to start writing blocks.

    int iterations

    Controls how much data to encode.

    Encode(long[], int, long[], int, int)

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

    Declaration
    void Encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations)
    Parameters
    Type Name Description
    long[] values

    The values buffer.

    int valuesOffset

    The offset where to start reading values.

    long[] blocks

    The long blocks that hold packed integer values.

    int blocksOffset

    The offset where to start writing blocks.

    int iterations

    Controls how much data to encode.

    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.