Class AppendOnlyFixedSizePageRegionByte<ATTR extends Any>

java.lang.Object
io.deephaven.engine.table.impl.sources.regioned.GenericColumnRegionBase<ATTR>
io.deephaven.generic.region.AppendOnlyFixedSizePageRegionByte<ATTR>
All Implemented Interfaces:
Page<ATTR>, PageStore<ATTR,ATTR,ChunkHolderPageByte<ATTR>>, PagingChunkSource<ATTR>, ChunkSource<ATTR>, FillContextMaker, GetContextMaker, DefaultChunkSource<ATTR>, DefaultChunkSource.SupportsContiguousGet<ATTR>, ColumnRegion<ATTR>, ColumnRegionByte<ATTR>, Releasable

public class AppendOnlyFixedSizePageRegionByte<ATTR extends Any> extends GenericColumnRegionBase<ATTR> implements PageStore<ATTR,ATTR,ChunkHolderPageByte<ATTR>>, ColumnRegionByte<ATTR>
Region implementation that provides access to append-only pages with a fixed maximum size.
  • Constructor Details

    • AppendOnlyFixedSizePageRegionByte

      public AppendOnlyFixedSizePageRegionByte(long pageMask, int pageSize, @NotNull @NotNull AppendOnlyRegionAccessor<ATTR> accessor)
  • Method Details

    • getByte

      public byte getByte(long rowKey)
      Description copied from interface: ColumnRegionByte
      Get a single byte from this region.
      Specified by:
      getByte in interface ColumnRegionByte<ATTR extends Any>
      Parameters:
      rowKey - Element row key in the table's address space
      Returns:
      The byte value at the specified element row key
    • getBytes

      public byte[] getBytes(long firstRowKey, @NotNull @org.jetbrains.annotations.NotNull byte[] destination, int destinationOffset, int length)
      Description copied from interface: ColumnRegionByte
      Get a range of bytes from this region. Implementations are not required to verify that the range specified is meaningful.
      Specified by:
      getBytes in interface ColumnRegionByte<ATTR extends Any>
      Parameters:
      firstRowKey - 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
    • getPageContaining

      @NotNull public final @NotNull ChunkHolderPageByte<ATTR> getPageContaining(@Nullable @Nullable ChunkSource.FillContext fillContext, long rowKey)
      Specified by:
      getPageContaining in interface PageStore<ATTR extends Any,ATTR extends Any,ChunkHolderPageByte<ATTR extends Any>>
      Parameters:
      fillContext - The fill context to use; may be null if the calling code does not have a fill context
      rowKey - The row key to get the page for
      Returns:
      The page containing rowKey, after applying PagingChunkSource.mask().