Interface BufferedPage<ATTR extends Attributes.Any>
- All Superinterfaces:
ChunkSource<ATTR>,DefaultChunkSource<ATTR>,FillContextMaker,GetContextMaker,Page<ATTR>,Page.WithDefaults<ATTR>,PagingChunkSource<ATTR>
- All Known Implementing Classes:
BufferedPageByte,BufferedPageChar,BufferedPageDouble,BufferedPageFloat,BufferedPageInt,BufferedPageLong,BufferedPageShort
-
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.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
FieldsModifier and TypeFieldDescriptionstatic final intMinimum average run length in anOrderedKeysthat should trigger copy-by-ranges in BufferedPage implementations.Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptioncom.illumon.iris.db.v2.sources.regioned.BufferedTypeTheBufferedTypeassociated with a buffer page has all the helper functions for calculating offsets, lengths, etc.default longdefault longlength()default longmask()This mask is applied toOrderedKeyswhich are passed intoChunkSource.getChunk(ChunkSource.GetContext, OrderedKeys)andChunkSource.fillChunk(ChunkSource.FillContext, WritableChunk, OrderedKeys).Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
getChunkType, getNativeTypeMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.Page
advanceToNextPage, advanceToNextPage, advanceToNextPageAndGetPositionDistance, firstRow, getRowOffset, lastRowMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.Page.WithDefaults
fillChunk, fillChunkAppend, fillChunkAppendMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.PagingChunkSource
maxRow
-
Field Details
-
USE_RANGES_AVERAGE_RUN_LENGTH
static final int USE_RANGES_AVERAGE_RUN_LENGTHMinimum average run length in anOrderedKeysthat should trigger copy-by-ranges in BufferedPage implementations.- See Also:
-
-
Method Details
-
bufferedType
com.illumon.iris.db.v2.sources.regioned.BufferedType bufferedType()TheBufferedTypeassociated with a buffer page has all the helper functions for calculating offsets, lengths, etc. based on the type stored on thisBufferedPage.- Returns:
- The type of the buffered page.
-
length
- Specified by:
lengthin interfacePage<ATTR extends Attributes.Any>- Returns:
- the length of this page.
-
mask
Description copied from interface:PagingChunkSourceThis mask is applied toOrderedKeyswhich are passed intoChunkSource.getChunk(ChunkSource.GetContext, OrderedKeys)andChunkSource.fillChunk(ChunkSource.FillContext, WritableChunk, OrderedKeys). This allows thePagingChunkSources to be cached, and reused even if they are properly relocated in key space.- Specified by:
maskin interfacePagingChunkSource<ATTR extends Attributes.Any>- Returns:
- the mask for this page, which must be a bitmask representing the some number of lower order bits of a long.
-
firstRowOffset
- Specified by:
firstRowOffsetin interfacePage<ATTR extends Attributes.Any>- Returns:
- the first row of this page, after applying the
PagingChunkSource.mask(), which refers to the first row of this page.
-