DocValuesBulkDecodeSupport (Lucene 10.5.0 core API)
Description: declaration: package: org.apache.lucene.internal.vectorization, interface: DocValuesBulkDecodeSupport

Package org.apache.lucene.internal.vectorization

# Interface DocValuesBulkDecodeSupport

public interface DocValuesBulkDecodeSupport
Interface for SIMD-accelerated doc values bulk decode operations.

Implementations decode byte-aligned packed numeric values into a `long[]` destination. The default scalar implementation is used when the Panama Vector API is unavailable; a SIMD-accelerated implementation is used otherwise.

NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `decodeByteAligned(byte[] bytes, int bytesOffset, int bitsPerValue, long[] values, int valuesOffset, int count)`
  Decodes `count` byte-aligned packed values from `bytes` into `values`.

- ## Method Details

  - ### decodeByteAligned

    void decodeByteAligned(byte[] bytes, int bytesOffset, int bitsPerValue, long[] values, int valuesOffset, int count)
    Decodes `count` byte-aligned packed values from `bytes` into `values`.
    Parameters:
      `bytes` - source bytes encoded like `LongValues` produced by packed `DirectReader`
      `bytesOffset` - first byte to read
      `bitsPerValue` - number of bits per value, must be a multiple of 8
      `values` - destination values
      `valuesOffset` - first destination slot
      `count` - number of values to decode