Class IntColumnSourceRowRedirection<CST extends ColumnSource<Integer>>
java.lang.Object
io.deephaven.engine.table.impl.util.IntColumnSourceRowRedirection<CST>
- All Implemented Interfaces:
ChunkSource<RowKeys>
,ChunkSource.WithPrev<RowKeys>
,FillContextMaker
,GetContextMaker
,DefaultChunkSource<RowKeys>
,DefaultChunkSource.WithPrev<RowKeys>
,FillUnordered<RowKeys>
,RowRedirection
- Direct Known Subclasses:
IntColumnSourceWritableRowRedirection
public class IntColumnSourceRowRedirection<CST extends ColumnSource<Integer>>
extends Object
implements RowRedirection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
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>
-
Field Summary
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillChunk
(ChunkSource.FillContext fillContext, @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Lookup each element in aRowSequence
and write the result to aWritableLongChunk
.void
fillPrevChunk
(ChunkSource.FillContext fillContext, @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Lookup each element in aRowSequence
using previous values and write the result to aWritableLongChunk
.long
get
(long outerRowKey) Simple redirected lookup.long
getPrev
(long outerRowKey) Simple redirected lookup, using previous values.makeFillContext
(int chunkSize, SharedContext sharedContext) Allocate a newChunkSource.FillContext
for filling chunks from thisFillContextMaker
, typically aChunkSource
.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, 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, fillChunkUnordered, fillPrevChunkUnordered, getChunkType, isWritable, providesFillUnordered, writableCast
-
Field Details
-
columnSource
-
-
Constructor Details
-
IntColumnSourceRowRedirection
-
-
Method Details
-
get
public long get(long outerRowKey) Description copied from interface:RowRedirection
Simple redirected lookup.- Specified by:
get
in interfaceRowRedirection
- Parameters:
outerRowKey
- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEY
if no mapping exists
-
getPrev
public long getPrev(long outerRowKey) Description copied from interface:RowRedirection
Simple redirected lookup, using previous values.- Specified by:
getPrev
in interfaceRowRedirection
- Parameters:
outerRowKey
- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEY
if no mapping exists
-
fillChunk
public void fillChunk(@NotNull ChunkSource.FillContext fillContext, @NotNull @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:RowRedirection
Lookup each element in aRowSequence
and write the result to aWritableLongChunk
.- Specified by:
fillChunk
in interfaceChunkSource<CST extends ColumnSource<Integer>>
- Specified by:
fillChunk
in interfaceRowRedirection
- Parameters:
fillContext
- Thefill context
innerRowKeys
- The resultWritableLongChunk
outerRowKeys
- The row keys to lookup in this RowRedirection
-
fillPrevChunk
public void fillPrevChunk(@NotNull ChunkSource.FillContext fillContext, @NotNull @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:RowRedirection
Lookup each element in aRowSequence
using previous values and write the result to aWritableLongChunk
.- Specified by:
fillPrevChunk
in interfaceChunkSource.WithPrev<CST extends ColumnSource<Integer>>
- Specified by:
fillPrevChunk
in interfaceRowRedirection
- Parameters:
fillContext
- Thefill context
innerRowKeys
- The resultWritableLongChunk
outerRowKeys
- The row keys to lookup in this RowRedirection
-