Class LongColumnSourceRowRedirection<CST extends ColumnSource<Long>>
java.lang.Object
io.deephaven.engine.table.impl.util.LongColumnSourceRowRedirection<CST>
- All Implemented Interfaces:
ChunkSource<RowKeys>,ChunkSource.WithPrev<RowKeys>,FillContextMaker,GetContextMaker,DefaultChunkSource<RowKeys>,DefaultChunkSource.WithPrev<RowKeys>,FillUnordered<RowKeys>,RowRedirection
- Direct Known Subclasses:
LongColumnSourceWritableRowRedirection
public class LongColumnSourceRowRedirection<CST extends ColumnSource<Long>>
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
FieldsFields 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_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfillChunk(ChunkSource.FillContext fillContext, @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Lookup each element in aRowSequenceand write the result to aWritableLongChunk.final voidfillPrevChunk(ChunkSource.FillContext fillContext, @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Lookup each element in aRowSequenceusing previous values and write the result to aWritableLongChunk.final longget(long outerRowKey) Simple redirected lookup.final longgetPrev(long outerRowKey) Simple redirected lookup, using previous values.final ChunkSource.FillContextmakeFillContext(int chunkSize, SharedContext sharedContext) Allocate a newChunkSource.FillContextfor filling chunks from thisFillContextMaker, typically aChunkSource.Methods 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, 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, fillChunkUnordered, fillPrevChunkUnordered, getChunkType, isWritable, providesFillUnordered, writableCast
-
Field Details
-
columnSource
-
-
Constructor Details
-
LongColumnSourceRowRedirection
-
-
Method Details
-
get
public final long get(long outerRowKey) Description copied from interface:RowRedirectionSimple redirected lookup.- Specified by:
getin interfaceRowRedirection- Parameters:
outerRowKey- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEYif no mapping exists
-
getPrev
public final long getPrev(long outerRowKey) Description copied from interface:RowRedirectionSimple redirected lookup, using previous values.- Specified by:
getPrevin interfaceRowRedirection- Parameters:
outerRowKey- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEYif no mapping exists
-
fillChunk
public final void fillChunk(@NotNull ChunkSource.FillContext fillContext, @NotNull @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:RowRedirectionLookup each element in aRowSequenceand write the result to aWritableLongChunk.- Specified by:
fillChunkin interfaceChunkSource<CST extends ColumnSource<Long>>- Specified by:
fillChunkin interfaceRowRedirection- Parameters:
fillContext- Thefill contextinnerRowKeys- The resultWritableLongChunkouterRowKeys- The row keys to lookup in this RowRedirection
-
fillPrevChunk
public final void fillPrevChunk(@NotNull ChunkSource.FillContext fillContext, @NotNull @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull @NotNull RowSequence outerRowKeys) Description copied from interface:RowRedirectionLookup each element in aRowSequenceusing previous values and write the result to aWritableLongChunk.- Specified by:
fillPrevChunkin interfaceChunkSource.WithPrev<CST extends ColumnSource<Long>>- Specified by:
fillPrevChunkin interfaceRowRedirection- Parameters:
fillContext- Thefill contextinnerRowKeys- The resultWritableLongChunkouterRowKeys- The row keys to lookup in this RowRedirection
-