Package com.illumon.iris.db.v2.sources
Interface WritableChunkSink<ATTR extends Attributes.Any>
- All Superinterfaces:
ChunkSource<ATTR>,FillContextMaker,GetContextMaker
- All Known Subinterfaces:
WritableSource<T>
- All Known Implementing Classes:
ArrayBackedColumnSource,BooleanArraySource,BooleanSingleValueSource,BooleanSparseArraySource,ByteArraySource,ByteSingleValueSource,ByteSparseArraySource,CharacterArraySource,CharacterSingleValueSource,CharacterSparseArraySource,DateTimeArraySource,DateTimeSparseArraySource,DeltaAwareColumnSource,DoubleArraySource,DoubleSingleValueSource,DoubleSparseArraySource,FloatArraySource,FloatSingleValueSource,FloatSparseArraySource,InstantArraySource,InstantSparseArraySource,IntegerArraySource,IntegerSingleValueSource,IntegerSparseArraySource,LongArraySource,LongSingleValueSource,LongSparseArraySource,NanosBasedTimeArraySource,NanosBasedTimeSparseArraySource,ObjectArraySource,ObjectSingleValueSource,ObjectSparseArraySource,RedirectedColumnSource,ShortArraySource,ShortSingleValueSource,ShortSparseArraySource,SingleValueColumnSource,SparseArrayColumnSource,UnboxedLongBackedWritableSource,ZonedDateTimeArraySource,ZonedDateTimeSparseArraySource
public interface WritableChunkSink<ATTR extends Attributes.Any> extends ChunkSource<ATTR>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWritableChunkSink.FillFromContextNested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Attributes.Any> -
Field Summary
Fields Modifier and Type Field Description static WritableChunkSink.FillFromContextDEFAULT_FILL_FROM_INSTANCEFields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY -
Method Summary
Modifier and Type Method Description voidfillFromChunk(WritableChunkSink.FillFromContext context, Chunk<? extends ATTR> src, OrderedKeys orderedKeys)Fills the ChunkSink with data from the source, with data corresponding to the keys from the givenOrderedKeys.voidfillFromChunkUnordered(WritableChunkSink.FillFromContext context, Chunk<? extends ATTR> src, LongChunk<Attributes.KeyIndices> keys)Fills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.WritableChunkSink.FillFromContextmakeFillFromContext(int chunkCapacity)Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
fillChunk, getChunk, getChunk, getChunkType, getNativeTypeMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContext, makeFillContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContext, makeGetContext
-
Field Details
-
Method Details
-
fillFromChunk
void fillFromChunk(@NotNull WritableChunkSink.FillFromContext context, @NotNull Chunk<? extends ATTR> src, @NotNull OrderedKeys orderedKeys)Fills the ChunkSink with data from the source, with data corresponding to the keys from the givenOrderedKeys.- Parameters:
context- A context containing all mutable/state related data used in writing the Chunk.src- The source of the dataorderedKeysorderedKeys- AnOrderedKeysrepresenting the keys to be written
-
fillFromChunkUnordered
void fillFromChunkUnordered(@NotNull WritableChunkSink.FillFromContext context, @NotNull Chunk<? extends ATTR> src, @NotNull LongChunk<Attributes.KeyIndices> keys)Fills the ChunkSink with data from the source, with data corresponding to the keys from the given key chunk.- Parameters:
context- A context containing all mutable/state related data used in writing the Chunk.src- The source of the dataorderedKeyskeys- ALongChunkrepresenting the keys to be written
-
makeFillFromContext
-