Class ColumnRegionObject.DictionaryKeysWrapper
java.lang.Object
com.illumon.iris.db.v2.sources.regioned.ColumnRegionObject.DictionaryKeysWrapper
- All Implemented Interfaces:
ChunkSource<Attributes.DictionaryKeys>
,DefaultChunkSource<Attributes.DictionaryKeys>
,FillContextMaker
,GetContextMaker
,Page<Attributes.DictionaryKeys>
,Page.WithDefaults<Attributes.DictionaryKeys>
,PagingChunkSource<Attributes.DictionaryKeys>
,ColumnRegion<Attributes.DictionaryKeys>
,ColumnRegionLong<Attributes.DictionaryKeys>
,Releasable
- Enclosing interface:
- ColumnRegionObject<T,ATTR extends Attributes.Any>
public static final class ColumnRegionObject.DictionaryKeysWrapper extends Object implements ColumnRegionLong<Attributes.DictionaryKeys>, Page.WithDefaults<Attributes.DictionaryKeys>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegionLong
ColumnRegionLong.Null<ATTR extends Attributes.Any>, ColumnRegionLong.StaticPageStore<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Attributes.Any>, DefaultChunkSource.WithPrev<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.page.Page
Page.WithDefaults<ATTR extends Attributes.Any>, Page.WithDefaultsForRepeatingValues<ATTR extends Attributes.Any>
-
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
-
Method Summary
Modifier and Type Method Description void
fillChunkAppend(ChunkSource.FillContext context, WritableChunk<? super Attributes.DictionaryKeys> destination, OrderedKeys rowSequence)
Appends the values referenced byorderKeys
ontodestination
.long
getLong(long elementIndex)
Get a single long from this region.long
getLong(ChunkSource.FillContext context, long elementIndex)
Get a single long from this region.long
length()
long
mask()
This mask is applied toOrderedKeys
which are passed intoChunkSource.getChunk(ChunkSource.GetContext, OrderedKeys)
andChunkSource.fillChunk(ChunkSource.FillContext, WritableChunk, OrderedKeys)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegion
firstRowOffset
Methods inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegionLong
getNativeType
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.Page
advanceToNextPage, advanceToNextPage, advanceToNextPageAndGetPositionDistance, firstRow, getRowOffset, lastRow
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.Page.WithDefaults
fillChunk, fillChunkAppend
-
Method Details
-
length
public long length()- Specified by:
length
in interfacePage<Attributes.DictionaryKeys>
- Returns:
- the length of this page.
-
mask
public long mask()Description copied from interface:PagingChunkSource
This mask is applied toOrderedKeys
which are passed intoChunkSource.getChunk(ChunkSource.GetContext, OrderedKeys)
andChunkSource.fillChunk(ChunkSource.FillContext, WritableChunk, OrderedKeys)
. This allows thePagingChunkSource
s to be cached, and reused even if they are properly relocated in key space.- Specified by:
mask
in interfaceColumnRegion<Attributes.DictionaryKeys>
- Specified by:
mask
in interfacePagingChunkSource<Attributes.DictionaryKeys>
- Returns:
- the mask for this page, which must be a bitmask representing the some number of lower order bits of a long.
-
getLong
public long getLong(long elementIndex)Description copied from interface:ColumnRegionLong
Get a single long from this region.- Specified by:
getLong
in interfaceColumnRegionLong<Attributes.DictionaryKeys>
- Parameters:
elementIndex
- Element (long) index in the table's address space- Returns:
- The long value at the specified element (long) index
-
getLong
Description copied from interface:ColumnRegionLong
Get a single long from this region.- Specified by:
getLong
in interfaceColumnRegionLong<Attributes.DictionaryKeys>
- Parameters:
context
- AColumnRegionFillContext
to enable resource caching where suitable, with current region index pointing to this regionelementIndex
- Element (long) index in the table's address space- Returns:
- The long value at the specified element (long) index
-
fillChunkAppend
public void fillChunkAppend(@NotNull ChunkSource.FillContext context, @NotNull WritableChunk<? super Attributes.DictionaryKeys> destination, @NotNull OrderedKeys rowSequence)Description copied from interface:Page.WithDefaults
Appends the values referenced byorderKeys
ontodestination
.orderKeys
are assumed to be entirely contained on thisPage
.- Specified by:
fillChunkAppend
in interfacePage.WithDefaults<Attributes.DictionaryKeys>
-