Class BufferedColumnRegionBase<ATTR extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.sources.regioned.BufferedColumnRegionBase<ATTR>
- All Implemented Interfaces:
ChunkSource<ATTR>,DefaultChunkSource<ATTR>,DefaultChunkSource.SupportsContiguousGet<ATTR>,FillContextMaker,GetContextMaker,Page<ATTR>,PageStore<ATTR,ATTR,BufferedPage<ATTR>>,PagingChunkSource<ATTR>,BufferedColumnRegion<ATTR>,ColumnRegion<ATTR>,Releasable
- Direct Known Subclasses:
BufferedColumnRegionByte,BufferedColumnRegionChar,BufferedColumnRegionDouble,BufferedColumnRegionFloat,BufferedColumnRegionInt,BufferedColumnRegionLong,BufferedColumnRegionShort
public class BufferedColumnRegionBase<ATTR extends Attributes.Any> extends Object implements BufferedColumnRegion<ATTR>
The basic implementation for a
BufferedColumnRegion.-
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.ColumnRegion
ColumnRegion.Null<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 FileDataBufferStoregetBufferProvider()Class<?>getNativeType()BufferedPage<ATTR>getPageContaining(ChunkSource.FillContext fillContext, long row)longlength()voidreleaseCachedResources()Release any resources held for caching purposes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegion
firstRowOffset, maskMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
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.PageStore
doFillChunkAppend, fillChunk, fillChunkAppend, getChunk, getChunk
-
Method Details
-
getPageContaining
@NotNull public final BufferedPage<ATTR> getPageContaining(@NotNull ChunkSource.FillContext fillContext, long row)- Specified by:
getPageContainingin interfacePageStore<ATTR extends Attributes.Any,ATTR extends Attributes.Any,BufferedPage<ATTR extends Attributes.Any>>- Returns:
- The page containing row, after applying
PagingChunkSource.mask().
-
getNativeType
- Specified by:
getNativeTypein interfaceChunkSource<ATTR extends Attributes.Any>
-
getBufferProvider
- Specified by:
getBufferProviderin interfaceBufferedColumnRegion<ATTR extends Attributes.Any>- Returns:
- The buffer provider for this column for this region.
-
length
public long length()- Specified by:
lengthin interfacePage<ATTR extends Attributes.Any>- Returns:
- the length of this page.
-
releaseCachedResources
@OverridingMethodsMustInvokeSuper public void releaseCachedResources()Description copied from interface:ReleasableRelease any resources held for caching purposes. Implementations need not guarantee that they are safe for normal use concurrently with invocations of this method.- Specified by:
releaseCachedResourcesin interfaceReleasable
-