Class ChunkBase<ATTR extends Any>

java.lang.Object
io.deephaven.chunk.ChunkBase<ATTR>
All Implemented Interfaces:
Chunk<ATTR>
Direct Known Subclasses:
BooleanChunk, ByteChunk, CharChunk, DoubleChunk, FloatChunk, IntChunk, LongChunk, ObjectChunk, ShortChunk

public abstract class ChunkBase<ATTR extends Any> extends Object implements Chunk<ATTR>
A generic object intended to serve as a thin wrapper around an array region.
  • Method Details

    • size

      public final int size()
      Specified by:
      size in interface Chunk<ATTR extends Any>
      Returns:
      The length of the data in the chunk
    • internalSetSize

      public final void internalSetSize(int newSize, long password)
      DO NOT CALL THIS INTERNAL METHOD. If you want to set a size, call WritableChunk.setSize(int). That method is the only legal caller of this method in the entire system.
    • internalCapacity

      public final int internalCapacity(long password)
      DO NOT CALL THIS INTERNAL METHOD. Call WritableChunk.capacity() That method is the only legal caller of this method in the entire system.