Class BulkOperationPacked21

All Implemented Interfaces:
PackedInts.Decoder, PackedInts.Encoder

final class BulkOperationPacked21 extends BulkOperationPacked
Efficient sequential read/write of packed integers.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
    Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
    void
    decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
    Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
    void
    decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
    Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
    void
    decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
    Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.

    Methods inherited from class org.apache.lucene.util.packed.BulkOperationPacked

    byteBlockCount, byteValueCount, encode, encode, encode, encode, longBlockCount, longValueCount

    Methods inherited from class org.apache.lucene.util.packed.BulkOperation

    computeIterations, of, writeLong

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BulkOperationPacked21

      public BulkOperationPacked21()
  • Method Details

    • decode

      public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
      Description copied from interface: PackedInts.Decoder
      Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
      Specified by:
      decode in interface PackedInts.Decoder
      Overrides:
      decode in class BulkOperationPacked
      Parameters:
      blocks - the long blocks that hold packed integer values
      blocksOffset - the offset where to start reading blocks
      values - the values buffer
      valuesOffset - the offset where to start writing values
      iterations - controls how much data to decode
    • decode

      public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
      Description copied from interface: PackedInts.Decoder
      Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
      Specified by:
      decode in interface PackedInts.Decoder
      Overrides:
      decode in class BulkOperationPacked
      Parameters:
      blocks - the long blocks that hold packed integer values
      blocksOffset - the offset where to start reading blocks
      values - the values buffer
      valuesOffset - the offset where to start writing values
      iterations - controls how much data to decode
    • decode

      public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
      Description copied from interface: PackedInts.Decoder
      Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
      Specified by:
      decode in interface PackedInts.Decoder
      Overrides:
      decode in class BulkOperationPacked
      Parameters:
      blocks - the long blocks that hold packed integer values
      blocksOffset - the offset where to start reading blocks
      values - the values buffer
      valuesOffset - the offset where to start writing values
      iterations - controls how much data to decode
    • decode

      public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
      Description copied from interface: PackedInts.Decoder
      Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
      Specified by:
      decode in interface PackedInts.Decoder
      Overrides:
      decode in class BulkOperationPacked
      Parameters:
      blocks - the long blocks that hold packed integer values
      blocksOffset - the offset where to start reading blocks
      values - the values buffer
      valuesOffset - the offset where to start writing values
      iterations - controls how much data to decode