Interface ColumnRegionByte<ATTR extends Any>

All Superinterfaces:
ChunkSource<ATTR>, ColumnRegion<ATTR>, DefaultChunkSource<ATTR>, FillContextMaker, GetContextMaker, Page<ATTR>, PagingChunkSource<ATTR>, Releasable
All Known Implementing Classes:
AppendOnlyFixedSizePageRegionByte, ColumnRegionByte.Constant, ColumnRegionByte.Null, ColumnRegionByte.StaticPageStore, ParquetColumnRegionByte

public interface ColumnRegionByte<ATTR extends Any> extends ColumnRegion<ATTR>
Column region interface for regions that support fetching primitive bytes.
  • Method Details

    • getByte

      byte getByte(long elementIndex)
      Get a single byte from this region.
      Parameters:
      elementIndex - Element row key in the table's address space
      Returns:
      The byte value at the specified element row key
    • getByte

      default byte getByte(@NotNull @NotNull ChunkSource.FillContext context, long elementIndex)
      Get a single byte from this region.
      Parameters:
      context - A PagingContextHolder to enable resource caching where suitable, with current region index pointing to this region
      elementIndex - Element row key in the table's address space
      Returns:
      The byte value at the specified element row ket
    • getBytes

      byte[] getBytes(long firstElementIndex, @NotNull @org.jetbrains.annotations.NotNull byte[] destination, int destinationOffset, int length)
      Get a range of bytes from this region. Implementations are not required to verify that the range specified is meaningful.
      Parameters:
      firstElementIndex - First element row keyt in the table's address space
      destination - Array to store results
      destinationOffset - Offset into destination to begin storing at
      length - Number of bytes to get
      Returns:
      destination, to enable method chaining
    • getChunkType

      @FinalDefault default ChunkType getChunkType()
      Description copied from interface: ChunkSource
      Get the most suitable ChunkType for use with this ChunkSource.
      Specified by:
      getChunkType in interface ChunkSource<ATTR extends Any>
      Returns:
      The ChunkType
    • createNull

      static <ATTR extends Any> ColumnRegionByte<ATTR> createNull(long pageMask)