Interface WritableColumnSource<T>

All Superinterfaces:
ChunkSink<Values>, ChunkSource<Values>, ChunkSource.WithPrev<Values>, ColumnSource<T>, ElementSource<T>, FillContextMaker, GetContextMaker, Releasable, TupleExporter<T>, TupleSource<T>
All Known Implementing Classes:
AbstractLongArraySource, AbstractSparseLongArraySource, ArrayBackedColumnSource, BooleanArraySource, BooleanSparseArraySource, BooleanSparseArraySource.ReinterpretedAsByte, ByteArraySource, ByteSingleValueSource, ByteSparseArraySource, CharacterArraySource, CharacterSingleValueSource, CharacterSparseArraySource, DateTimeArraySource, DateTimeSparseArraySource, DeltaAwareColumnSource, DoubleArraySource, DoubleSingleValueSource, DoubleSparseArraySource, FloatArraySource, FloatSingleValueSource, FloatSparseArraySource, Immutable2DByteArraySource, Immutable2DCharArraySource, Immutable2DDoubleArraySource, Immutable2DFloatArraySource, Immutable2DIntArraySource, Immutable2DLongArraySource, Immutable2DObjectArraySource, Immutable2DShortArraySource, ImmutableByteArraySource, ImmutableCharArraySource, ImmutableDoubleArraySource, ImmutableFloatArraySource, ImmutableIntArraySource, ImmutableLongArraySource, ImmutableObjectArraySource, ImmutableShortArraySource, IntegerArraySource, IntegerSingleValueSource, IntegerSparseArraySource, LongArraySource, LongSingleValueSource, LongSparseArraySource, ObjectArraySource, ObjectSingleValueSource, ObjectSparseArraySource, ShortArraySource, ShortSingleValueSource, ShortSparseArraySource, SingleValueColumnSource, SparseArrayColumnSource, UnboxedDateTimeWritableSource, WritableByteAsBooleanColumnSource, WritableLongAsDateTimeColumnSource, WritableRedirectedColumnSource

public interface WritableColumnSource<T>
extends ColumnSource<T>, ChunkSink<Values>
  • Method Details

    • set

      default void set​(long key, T value)
    • set

      default void set​(long key, byte value)
    • set

      default void set​(long key, char value)
    • set

      default void set​(long key, double value)
    • set

      default void set​(long key, float value)
    • set

      default void set​(long key, int value)
    • set

      default void set​(long key, long value)
    • set

      default void set​(long key, short value)
    • setNull

      void setNull​(long key)
    • setNull

      default void setNull​(RowSequence orderedKeys)
    • ensureCapacity

      @FinalDefault default void ensureCapacity​(long capacity)
      Equivalent to ensureCapacity(capacity, true).
    • ensureCapacity

      void ensureCapacity​(long capacity, boolean nullFilled)
      Ensure that this WritableColumnSource can accept row keys in range [0, capacity).
      Parameters:
      capacity - The new minimum capacity
      nullFilled - Whether data should be "null-filled". If true, get operations at row keys that have not been set will return the appropriate null value; otherwise such gets produce undefined results.
    • makeFillFromContext

      default ChunkSink.FillFromContext makeFillFromContext​(int chunkCapacity)
      Specified by:
      makeFillFromContext in interface ChunkSink<T>
    • fillFromChunk

      default void fillFromChunk​(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull RowSequence rowSequence)
      Our default, inefficient, implementation. Inheritors who care should provide a better implementation.
      Specified by:
      fillFromChunk in interface ChunkSink<T>
      Parameters:
      context - A context containing all mutable/state related data used in writing the Chunk.
      src - The source of the data rowSequence
      rowSequence - An RowSequence representing the keys to be written
    • fillFromChunkUnordered

      default void fillFromChunkUnordered​(@NotNull ChunkSink.FillFromContext context, @NotNull Chunk<? extends Values> src, @NotNull LongChunk<RowKeys> keys)
      Description copied from interface: ChunkSink
      Fills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.
      Specified by:
      fillFromChunkUnordered in interface ChunkSink<T>
      Parameters:
      context - A context containing all mutable/state related data used in writing the Chunk.
      src - The source of the data RowSequence
      keys - A LongChunk representing the keys to be written