Class AppendOnlyFixedSizePageRegionByte<ATTR extends Any>

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>
      rowKey - Element row key in the table's address space
      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>
      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
      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>>
      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
      The page containing rowKey, after applying PagingChunkSource.mask().