Class BytesRefArrowBufBlock

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.util.Accountable, Writeable, Block, BytesRefBlock, RefCounted, Releasable, BlockLoader.Block

public final class BytesRefArrowBufBlock extends AbstractArrowBufBlock<BytesRefVector,BytesRefBlock> implements BytesRefBlock
Arrow buffer backed BytesRefBlock. Variable-length values use an additional offsets buffer that maps each value index to a byte range in the data buffer, following the Arrow variable-length binary layout. This is separate from the position-to-value-index offsets used for multi-valued fields.
  • Constructor Details

    • BytesRefArrowBufBlock

      public BytesRefArrowBufBlock(org.apache.arrow.memory.ArrowBuf valueBuffer, org.apache.arrow.memory.ArrowBuf valueOffsetsBuffer, @Nullable org.apache.arrow.memory.ArrowBuf validityBuffer, @Nullable org.apache.arrow.memory.ArrowBuf offsetBuffer, int valueCount, int offsetCount, BlockFactory blockFactory)
      Parameters:
      valueBuffer - raw byte data
      valueOffsetsBuffer - int32 offsets into valueBuffer for each value (Arrow variable-length layout)
      validityBuffer - null bitmap (nullable)
      offsetBuffer - position-to-value-index mapping for multi-valued fields (nullable)
      valueCount - number of positions
      offsetCount - number of position offset entries
      blockFactory - block factory
  • Method Details