Class IntColumnSourceWritableRowRedirection
java.lang.Object
io.deephaven.engine.table.impl.util.IntColumnSourceRowRedirection<WritableColumnSource<Integer>>
io.deephaven.engine.table.impl.util.IntColumnSourceWritableRowRedirection
- All Implemented Interfaces:
ChunkSink<RowKeys>
,ChunkSource<RowKeys>
,ChunkSource.WithPrev<RowKeys>
,FillContextMaker
,GetContextMaker
,DefaultChunkSource<RowKeys>
,DefaultChunkSource.WithPrev<RowKeys>
,FillUnordered<RowKeys>
,RowRedirection
,WritableRowRedirection
public final class IntColumnSourceWritableRowRedirection
extends IntColumnSourceRowRedirection<WritableColumnSource<Integer>>
implements WritableRowRedirection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Any>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Any>, DefaultChunkSource.WithPrev<ATTR extends Any>
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.util.WritableRowRedirection
WritableRowRedirection.Factory
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.util.IntColumnSourceRowRedirection
columnSource
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
Fields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY
Fields inherited from interface io.deephaven.engine.table.impl.util.WritableRowRedirection
DEFAULT_FILL_FROM_INSTANCE, FACTORY
-
Constructor Summary
ConstructorDescriptionIntColumnSourceWritableRowRedirection
(@NotNull WritableColumnSource<Integer> columnSource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillFromChunk
(ChunkSink.FillFromContext context, @NotNull Chunk<? extends RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Insert mappings from each element in aRowSequence
to the parallel element in aLongChunk
.makeFillFromContext
(int chunkCapacity) Make aChunkSink.FillFromContext
for this WritableRowRedirection.long
put
(long outerRowKey, long innerRowKey) Add or change a mapping fromouterRowKey
toinnerRowKey
.void
putVoid
(long outerRowKey, long innerRowKey) LikeWritableRowRedirection.put(long, long)
, but without requiring the implementation to provide a return value.long
remove
(long outerRowKey) Remove a mapping fromouterRowKey
.void
removeAll
(RowSequence rowSequence) Remove the specifiedrowSequence
.void
removeAllUnordered
(@NotNull LongChunk<RowKeys> outerRowKeys) Remove the specifiedouterRowKeys
.void
removeVoid
(long outerRowKey) LikeWritableRowRedirection.remove(long)
(long, long)}, but without requiring the implementation to provide a return value.void
Initiate previous value tracking.Methods inherited from class io.deephaven.engine.table.impl.util.IntColumnSourceRowRedirection
fillChunk, fillPrevChunk, get, getPrev, makeFillContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling, getPrevSource
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
Methods inherited from interface io.deephaven.engine.table.impl.util.RowRedirection
ascendingMapping, fillChunk, fillChunkUnordered, fillPrevChunk, fillPrevChunkUnordered, get, getChunkType, getPrev, isWritable, providesFillUnordered, writableCast
Methods inherited from interface io.deephaven.engine.table.impl.util.WritableRowRedirection
applyShift, fillFromChunkUnordered
-
Constructor Details
-
IntColumnSourceWritableRowRedirection
public IntColumnSourceWritableRowRedirection(@NotNull @NotNull WritableColumnSource<Integer> columnSource)
-
-
Method Details
-
put
public long put(long outerRowKey, long innerRowKey) Description copied from interface:WritableRowRedirection
Add or change a mapping fromouterRowKey
toinnerRowKey
.- Specified by:
put
in interfaceWritableRowRedirection
- Parameters:
outerRowKey
- The outer row key to map frominnerRowKey
- The inner row key to map to- Returns:
- The inner row key previously mapped from
outerRowKey
, orRowSequence.NULL_ROW_KEY
if there was no mapping
-
putVoid
public void putVoid(long outerRowKey, long innerRowKey) Description copied from interface:WritableRowRedirection
LikeWritableRowRedirection.put(long, long)
, but without requiring the implementation to provide a return value. May be more efficient in some cases.- Specified by:
putVoid
in interfaceWritableRowRedirection
- Parameters:
outerRowKey
- The outer row key to map frominnerRowKey
- The inner row key to map to
-
remove
public long remove(long outerRowKey) Description copied from interface:WritableRowRedirection
Remove a mapping fromouterRowKey
.- Specified by:
remove
in interfaceWritableRowRedirection
- Parameters:
outerRowKey
- The outer row key to unmap- Returns:
- The inner row key previously mapped from
outerRowKey
, orRowSequence.NULL_ROW_KEY
if there was no mapping
-
removeVoid
public void removeVoid(long outerRowKey) Description copied from interface:WritableRowRedirection
LikeWritableRowRedirection.remove(long)
(long, long)}, but without requiring the implementation to provide a return value. May be more efficient in some cases.- Specified by:
removeVoid
in interfaceWritableRowRedirection
- Parameters:
outerRowKey
- The outer row key to map from
-
removeAll
Description copied from interface:WritableRowRedirection
Remove the specifiedrowSequence
.- Specified by:
removeAll
in interfaceWritableRowRedirection
- Parameters:
rowSequence
- The outer row keys to remove
-
removeAllUnordered
Description copied from interface:WritableRowRedirection
Remove the specifiedouterRowKeys
.- Specified by:
removeAllUnordered
in interfaceWritableRowRedirection
- Parameters:
outerRowKeys
- The outer row keys to remove
-
makeFillFromContext
Description copied from interface:WritableRowRedirection
Make aChunkSink.FillFromContext
for this WritableRowRedirection. The default implementation suppliesWritableRowRedirection.DEFAULT_FILL_FROM_INSTANCE
, suitable for use with the default implementation ofWritableRowRedirection.fillFromChunk(ChunkSink.FillFromContext, Chunk, RowSequence)
.- Specified by:
makeFillFromContext
in interfaceChunkSink<RowKeys>
- Specified by:
makeFillFromContext
in interfaceWritableRowRedirection
- Parameters:
chunkCapacity
- The maximum number of mappings that will be supplied in one operation- Returns:
- The
ChunkSink.FillFromContext
to use
-
fillFromChunk
public void fillFromChunk(@NotNull ChunkSink.FillFromContext context, @NotNull @NotNull Chunk<? extends RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:WritableRowRedirection
Insert mappings from each element in aRowSequence
to the parallel element in aLongChunk
. h- Specified by:
fillFromChunk
in interfaceChunkSink<RowKeys>
- Specified by:
fillFromChunk
in interfaceWritableRowRedirection
- Parameters:
context
- THe FillFromContextinnerRowKeys
- The inner row keys to map toouterRowKeys
- The outer row keys to map from
-
startTrackingPrevValues
public void startTrackingPrevValues()Description copied from interface:WritableRowRedirection
Initiate previous value tracking.- Specified by:
startTrackingPrevValues
in interfaceWritableRowRedirection
-