Package io.deephaven.engine.page
Interface Page.WithDefaults<ATTR extends Any>
- All Superinterfaces:
ChunkSource<ATTR>
,DefaultChunkSource<ATTR>
,FillContextMaker
,GetContextMaker
,Page<ATTR>
,PagingChunkSource<ATTR>
- All Known Subinterfaces:
ChunkPage<ATTR>
- All Known Implementing Classes:
BooleanChunkPage
,ByteChunkPage
,CharChunkPage
,ChunkHolderPageBoolean
,ChunkHolderPageByte
,ChunkHolderPageChar
,ChunkHolderPageDouble
,ChunkHolderPageFloat
,ChunkHolderPageInt
,ChunkHolderPageLong
,ChunkHolderPageObject
,ChunkHolderPageShort
,ColumnRegionChunkDictionary
,ColumnRegionObject.DictionaryKeysWrapper
,ColumnRegionReferencingImpl
,DoubleChunkPage
,FloatChunkPage
,IntChunkPage
,LongChunkPage
,ObjectChunkPage
,ShortChunkPage
public static interface Page.WithDefaults<ATTR extends Any>
extends Page<ATTR>, DefaultChunkSource<ATTR>
Helper defaults for general pages.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext
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.page.Page
Page.WithDefaults<ATTR extends Any>, Page.WithDefaultsForRepeatingValues<ATTR extends Any>
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
fillChunk
(@NotNull ChunkSource.FillContext context, @NotNull WritableChunk<? super ATTR> destination, @NotNull RowSequence rowSequence) Populates the given destination chunk with data corresponding to the keys from the givenRowSequence
.void
fillChunkAppend
(@NotNull ChunkSource.FillContext context, @NotNull WritableChunk<? super ATTR> destination, @NotNull RowSequence rowSequence) Appends the values referenced byorderKeys
ontodestination
.default void
fillChunkAppend
(@NotNull ChunkSource.FillContext context, @NotNull WritableChunk<? super ATTR> destination, RowSequence.Iterator rowSequenceIterator) Similar toChunkSource.fillChunk(FillContext, WritableChunk, RowSequence)
, except that the values are appended todestination
, rather than placed at the beginning.Methods inherited from interface io.deephaven.engine.table.ChunkSource
getChunkType
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeGetContext
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.page.Page
advanceToNextPage, advanceToNextPage, advanceToNextPageAndGetPositionDistance, firstRow, firstRowOffset, getRowOffset
Methods inherited from interface io.deephaven.engine.page.PagingChunkSource
makeFillContext, mask, maxRow
-
Method Details
-
fillChunkAppend
@FinalDefault default void fillChunkAppend(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super ATTR> destination, @NotNull RowSequence.Iterator rowSequenceIterator) Description copied from interface:PagingChunkSource
Similar to
ChunkSource.fillChunk(FillContext, WritableChunk, RowSequence)
, except that the values are appended todestination
, rather than placed at the beginning.The values to fill into
destination
are specified byrowSequenceIterator
, whoseRowSequence.firstRowKey()
must exist, and must be represented by thisPagingChunkSource
(moduloPagingChunkSource.mask()
), otherwise results are undefined.All values specified by
rowSequenceIterator
that are on the same page as its next row key will be appended todestination
. Row keys are on the same page when the bits outside ofPagingChunkSource.mask()
are identical.- Specified by:
fillChunkAppend
in interfacePagingChunkSource<ATTR extends Any>
- Parameters:
context
- A context containing all mutable/state related data used in fillingdestination
destination
- TheWritableChunk
to append the results torowSequenceIterator
- An iterator over the remaining row keys specifying the values to retrieve, which contains at least the keys to extract from thisPagingChunkSource
-
fillChunk
@FinalDefault default void fillChunk(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super ATTR> destination, @NotNull @NotNull RowSequence rowSequence) Description copied from interface:ChunkSource
Populates the given destination chunk with data corresponding to the keys from the givenRowSequence
.- Specified by:
fillChunk
in interfaceChunkSource<ATTR extends Any>
- Parameters:
context
- A context containing all mutable/state related data used in retrieving the Chunk.destination
- The chunk to be populated according torowSequence
. No assumptions shall be made about the size of the chunk shall be made. The chunk will be populated from position [0,rowSequence.size()).rowSequence
- AnRowSequence
representing the keys to be fetched
-
fillChunkAppend
void fillChunkAppend(@NotNull @NotNull ChunkSource.FillContext context, @NotNull @NotNull WritableChunk<? super ATTR> destination, @NotNull @NotNull RowSequence rowSequence) Appends the values referenced byorderKeys
ontodestination
.orderKeys
are assumed to be entirely contained on thisPage
.
-