Class LongColumnSourceWritableRowRedirection
java.lang.Object
io.deephaven.engine.table.impl.util.LongColumnSourceRowRedirection<WritableColumnSource<Long>>
io.deephaven.engine.table.impl.util.LongColumnSourceWritableRowRedirection
- All Implemented Interfaces:
ChunkSink<RowKeys>,ChunkSource<RowKeys>,ChunkSource.WithPrev<RowKeys>,FillContextMaker,GetContextMaker,DefaultChunkSource<RowKeys>,DefaultChunkSource.WithPrev<RowKeys>,FillUnordered<RowKeys>,RowRedirection,WritableRowRedirection
public final class LongColumnSourceWritableRowRedirection
extends LongColumnSourceRowRedirection<WritableColumnSource<Long>>
implements WritableRowRedirection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSink
ChunkSink.FillFromContextNested 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.LongColumnSourceRowRedirection
columnSourceFields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAYFields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAYFields inherited from interface io.deephaven.engine.table.impl.util.WritableRowRedirection
DEFAULT_FILL_FROM_INSTANCE, FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionLongColumnSourceWritableRowRedirection(@NotNull WritableColumnSource<Long> columnSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidfillFromChunk(ChunkSink.FillFromContext context, @NotNull Chunk<? extends RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Insert mappings from each element in aRowSequenceto the parallel element in aLongChunk.makeFillFromContext(int chunkCapacity) Make aChunkSink.FillFromContextfor this WritableRowRedirection.longput(long outerRowKey, long innerRowKey) Add or change a mapping fromouterRowKeytoinnerRowKey.voidputVoid(long outerRowKey, long innerRowKey) LikeWritableRowRedirection.put(long, long), but without requiring the implementation to provide a return value.longremove(long outerRowKey) Remove a mapping fromouterRowKey.voidremoveAll(@NotNull RowSequence rowSequence) Remove the specifiedrowSequence.voidremoveAllUnordered(@NotNull LongChunk<RowKeys> outerRowKeys) Remove the specifiedouterRowKeys.voidremoveVoid(long outerRowKey) LikeWritableRowRedirection.remove(long)(long, long)}, but without requiring the implementation to provide a return value.voidInitiate previous value tracking.Methods inherited from class io.deephaven.engine.table.impl.util.LongColumnSourceRowRedirection
fillChunk, fillPrevChunk, get, getPrev, makeFillContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContextMethods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling, getPrevSourceMethods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContextMethods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContextMethods inherited from interface io.deephaven.engine.table.impl.util.RowRedirection
ascendingMapping, fillChunk, fillChunkUnordered, fillPrevChunk, fillPrevChunkUnordered, get, getChunkType, getPrev, isWritable, providesFillUnordered, writableCastMethods inherited from interface io.deephaven.engine.table.impl.util.WritableRowRedirection
applyShift, fillFromChunkUnordered
-
Constructor Details
-
LongColumnSourceWritableRowRedirection
public LongColumnSourceWritableRowRedirection(@NotNull @NotNull WritableColumnSource<Long> columnSource)
-
-
Method Details
-
put
public long put(long outerRowKey, long innerRowKey) Description copied from interface:WritableRowRedirectionAdd or change a mapping fromouterRowKeytoinnerRowKey.- Specified by:
putin 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_KEYif there was no mapping
-
putVoid
public void putVoid(long outerRowKey, long innerRowKey) Description copied from interface:WritableRowRedirectionLikeWritableRowRedirection.put(long, long), but without requiring the implementation to provide a return value. May be more efficient in some cases.- Specified by:
putVoidin 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:WritableRowRedirectionRemove a mapping fromouterRowKey.- Specified by:
removein interfaceWritableRowRedirection- Parameters:
outerRowKey- The outer row key to unmap- Returns:
- The inner row key previously mapped from
outerRowKey, orRowSequence.NULL_ROW_KEYif there was no mapping
-
removeVoid
public void removeVoid(long outerRowKey) Description copied from interface:WritableRowRedirectionLikeWritableRowRedirection.remove(long)(long, long)}, but without requiring the implementation to provide a return value. May be more efficient in some cases.- Specified by:
removeVoidin interfaceWritableRowRedirection- Parameters:
outerRowKey- The outer row key to map from
-
removeAll
Description copied from interface:WritableRowRedirectionRemove the specifiedrowSequence.- Specified by:
removeAllin interfaceWritableRowRedirection- Parameters:
rowSequence- The outer row keys to remove
-
removeAllUnordered
Description copied from interface:WritableRowRedirectionRemove the specifiedouterRowKeys.- Specified by:
removeAllUnorderedin interfaceWritableRowRedirection- Parameters:
outerRowKeys- The outer row keys to remove
-
makeFillFromContext
Description copied from interface:WritableRowRedirectionMake aChunkSink.FillFromContextfor 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:
makeFillFromContextin interfaceChunkSink<RowKeys>- Specified by:
makeFillFromContextin interfaceWritableRowRedirection- Parameters:
chunkCapacity- The maximum number of mappings that will be supplied in one operation- Returns:
- The
ChunkSink.FillFromContextto use
-
fillFromChunk
public void fillFromChunk(@NotNull ChunkSink.FillFromContext context, @NotNull @NotNull Chunk<? extends RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:WritableRowRedirectionInsert mappings from each element in aRowSequenceto the parallel element in aLongChunk. h- Specified by:
fillFromChunkin interfaceChunkSink<RowKeys>- Specified by:
fillFromChunkin 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:WritableRowRedirectionInitiate previous value tracking.- Specified by:
startTrackingPrevValuesin interfaceWritableRowRedirection
-