Class ColumnRegionByte.Constant<ATTR extends Any>

java.lang.Object
io.deephaven.engine.table.impl.sources.regioned.GenericColumnRegionBase<ATTR>
io.deephaven.engine.table.impl.sources.regioned.ColumnRegionByte.Constant<ATTR>
All Implemented Interfaces:
Page<ATTR>, Page.WithDefaultsForRepeatingValues<ATTR>, PagingChunkSource<ATTR>, ChunkSource<ATTR>, FillContextMaker, GetContextMaker, DefaultChunkSource<ATTR>, ColumnRegion<ATTR>, ColumnRegionByte<ATTR>, Releasable
Enclosing interface:
ColumnRegionByte<ATTR extends Any>

public static final class ColumnRegionByte.Constant<ATTR extends Any> extends GenericColumnRegionBase<ATTR> implements ColumnRegionByte<ATTR>, Page.WithDefaultsForRepeatingValues<ATTR>
  • Constructor Details

    • Constant

      public Constant(long pageMask, byte value)
  • Method Details

    • getByte

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

      public void fillChunkAppend(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super ATTR> destination, int length)
      Description copied from interface: Page.WithDefaultsForRepeatingValues
      Appends the values repeating value length times to destination.
      Specified by:
      fillChunkAppend in interface Page.WithDefaultsForRepeatingValues<ATTR extends Any>
    • getBytes

      public byte[] getBytes(long firstElementIndex, @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:
      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