Package io.deephaven.engine.table.impl
Interface DefaultChunkSource.SupportsContiguousGet<ATTR extends Any>
- All Superinterfaces:
ChunkSource<ATTR>
,DefaultChunkSource<ATTR>
,FillContextMaker
,GetContextMaker
- All Known Subinterfaces:
ChunkPage<ATTR>
,PageStore<ATTR,
,INNER_ATTR, PAGE> RegionedPageStore<ATTR,
INNER_ATTR, REGION_TYPE>
- All Known Implementing Classes:
AppendOnlyFixedSizePageRegionByte
,AppendOnlyFixedSizePageRegionChar
,AppendOnlyFixedSizePageRegionDouble
,AppendOnlyFixedSizePageRegionFloat
,AppendOnlyFixedSizePageRegionInt
,AppendOnlyFixedSizePageRegionLong
,AppendOnlyFixedSizePageRegionObject
,AppendOnlyFixedSizePageRegionShort
,BooleanChunkPage
,ByteChunkPage
,CharChunkPage
,ChunkHolderPageBoolean
,ChunkHolderPageByte
,ChunkHolderPageChar
,ChunkHolderPageDouble
,ChunkHolderPageFloat
,ChunkHolderPageInt
,ChunkHolderPageLong
,ChunkHolderPageObject
,ChunkHolderPageShort
,ColumnChunkPageStore
,ColumnRegionByte.StaticPageStore
,ColumnRegionChar.StaticPageStore
,ColumnRegionChunkDictionary
,ColumnRegionDouble.StaticPageStore
,ColumnRegionFloat.StaticPageStore
,ColumnRegionInt.StaticPageStore
,ColumnRegionLong.StaticPageStore
,ColumnRegionObject.StaticPageStore
,ColumnRegionShort.StaticPageStore
,DoubleChunkPage
,FloatChunkPage
,IntChunkPage
,LongChunkPage
,ObjectChunkPage
,RegionedPageStore.Static
,ShortChunkPage
- Enclosing interface:
- DefaultChunkSource<ATTR extends Any>
public static interface DefaultChunkSource.SupportsContiguousGet<ATTR extends Any>
extends DefaultChunkSource<ATTR>
An alternative set of defaults which may typically be used by
ChunkSource
s which support a get method
which only works for contiguous ranges. They should just implement getChunk(GetContext, long, long)
.-
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>
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptiongetChunk
(@NotNull ChunkSource.GetContext context, long firstKey, long lastKey) Same asChunkSource.getChunk(GetContext, RowSequence)
, except that you pass in the begin and last keys representing the begin and last (inclusive) keys of a single range rather than anRowSequence
.getChunk
(@NotNull ChunkSource.GetContext context, @NotNull RowSequence rowSequence) Returns a chunk of data corresponding to the keys from the givenRowSequence
.Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunkType
Methods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext
-
Method Details
-
getChunk
default Chunk<? extends ATTR> getChunk(@NotNull @NotNull ChunkSource.GetContext context, @NotNull @NotNull RowSequence rowSequence) Description copied from interface:ChunkSource
Returns a chunk of data corresponding to the keys from the givenRowSequence
.- Specified by:
getChunk
in interfaceChunkSource<ATTR extends Any>
- Specified by:
getChunk
in interfaceDefaultChunkSource<ATTR extends Any>
- Parameters:
context
- A context containing all mutable/state related data used in retrieving the Chunk. In particular, the Context may be used to provide a Chunk data poolrowSequence
- AnRowSequence
representing the keys to be fetched- Returns:
- A chunk of data corresponding to the keys from the given
RowSequence
-
getChunk
Chunk<? extends ATTR> getChunk(@NotNull @NotNull ChunkSource.GetContext context, long firstKey, long lastKey) Description copied from interface:ChunkSource
Same asChunkSource.getChunk(GetContext, RowSequence)
, except that you pass in the begin and last keys representing the begin and last (inclusive) keys of a single range rather than anRowSequence
. Typically you want to call this only if you don't have anRowSequence
, such as during anRowSequence.forAllRowKeyRanges(LongRangeConsumer)
call. In this case, it allows you to avoid creating an intermediaryRowSequence
object.- Specified by:
getChunk
in interfaceChunkSource<ATTR extends Any>
- Specified by:
getChunk
in interfaceDefaultChunkSource<ATTR extends Any>
- Parameters:
context
- A context containing all mutable/state related data used in retrieving the Chunk. In particular, the Context may be used to provide a Chunk data poolfirstKey
- The beginning key (inclusive) of the range to fetch in the chunklastKey
- The last key (inclusive) of the range to fetch in the chunk
-