Class WritableSingleValueRowRedirection
java.lang.Object
io.deephaven.engine.table.impl.util.SingleValueRowRedirection
io.deephaven.engine.table.impl.util.WritableSingleValueRowRedirection
- All Implemented Interfaces:
ChunkSource<RowKeys>,ChunkSource.WithPrev<RowKeys>,FillContextMaker,GetContextMaker,DefaultChunkSource<RowKeys>,DefaultChunkSource.WithPrev<RowKeys>,FillUnordered<RowKeys>,RowRedirection
-
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> -
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.util.SingleValueRowRedirection
valueFields 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 TypeMethodDescriptionvoidfillPrevChunk(@NotNull ChunkSource.FillContext fillContext, @NotNull WritableChunk<? super RowKeys> innerRowKeys, @NotNull RowSequence outerRowKeys) Lookup each element in aRowSequenceusing previous values and write the result to aWritableLongChunk.longget(long outerRowKey) Simple redirected lookup.longgetPrev(long outerRowKey) Simple redirected lookup, using previous values.longgetValue()voidsetValue(long newValue) voidtoString()Methods inherited from class io.deephaven.engine.table.impl.util.SingleValueRowRedirection
fillChunk, isWritableSingleValue, writableSingleValueCastMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, fillChunkUnordered, fillPrevChunkUnordered, getChunkType, isWritable, providesFillUnordered, writableCast
-
Constructor Details
-
WritableSingleValueRowRedirection
public WritableSingleValueRowRedirection(long value)
-
-
Method Details
-
get
public long get(long outerRowKey) Description copied from interface:RowRedirectionSimple redirected lookup.- Specified by:
getin interfaceRowRedirection- Overrides:
getin classSingleValueRowRedirection- Parameters:
outerRowKey- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEYif no mapping exists
-
getPrev
public long getPrev(long outerRowKey) Description copied from interface:RowRedirectionSimple redirected lookup, using previous values.- Specified by:
getPrevin interfaceRowRedirection- Overrides:
getPrevin classSingleValueRowRedirection- Parameters:
outerRowKey- The "outer" row key- Returns:
- The corresponding "inner" row key, or
RowSequence.NULL_ROW_KEYif no mapping exists
-
setValue
public void setValue(long newValue) -
getValue
public long getValue()- Overrides:
getValuein classSingleValueRowRedirection
-
startTrackingPrevValues
public void startTrackingPrevValues() -
toString
- Overrides:
toStringin classSingleValueRowRedirection
-
fillPrevChunk
public void fillPrevChunk(@NotNull @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<RowKeys>- Specified by:
fillPrevChunkin interfaceRowRedirection- Overrides:
fillPrevChunkin classSingleValueRowRedirection- Parameters:
fillContext- Thefill contextinnerRowKeys- The resultWritableLongChunkouterRowKeys- The row keys to lookup in this RowRedirection
-