Class BufferedColumnRegionBase<ATTR extends Attributes.Values>
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 abstract class BufferedColumnRegionBase<ATTR extends Attributes.Values>
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
Fields inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegion
REGION_MASK
-
Method Summary
Modifier and TypeMethodDescriptionchunkMatch
(long regionFirstKey, OrderedKeys keysToFilter, boolean caseInsensitive, boolean invertMatch, Object[] sortedKeys) boolean
couldInclude
(Object[] sortedKeys) Check if the region could possibly include any of the keys we're searching forClass<?>
final BufferedPage<ATTR>
getPageContaining
(ChunkSource.FillContext fillContext, long row) long
length()
makeFillContext
(int chunkCapacity, SharedContext sharedContext) Allocate a newChunkSource.FillContext
for filling chunks from thisFillContextMaker
, typically aChunkSource
.void
Release any resources held for caching purposes.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.chunk.ChunkSource
getChunkType
Methods inherited from interface com.illumon.iris.db.v2.sources.regioned.ColumnRegion
binSearchMatch, firstRowOffset, mask, specialMatch, supportsSpecialMatching
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunkByFilling, 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.PageStore
doFillChunkAppend, fillChunk, fillChunkAppend, getChunk, getChunk
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.page.PagingChunkSource
maxRow
-
Method Details
-
getPageContaining
@NotNull public final BufferedPage<ATTR> getPageContaining(@NotNull ChunkSource.FillContext fillContext, long row) - Specified by:
getPageContaining
in interfacePageStore<ATTR extends Attributes.Values,
ATTR extends Attributes.Values, BufferedPage<ATTR extends Attributes.Values>> - Returns:
- The page containing row, after applying
PagingChunkSource.mask()
.
-
getNativeType
- Specified by:
getNativeType
in interfaceChunkSource<ATTR extends Attributes.Values>
-
getBufferProvider
- Specified by:
getBufferProvider
in interfaceBufferedColumnRegion<ATTR extends Attributes.Values>
- Returns:
- The buffer provider for this column for this region.
-
length
public long length()- Specified by:
length
in interfacePage<ATTR extends Attributes.Values>
- Returns:
- the length of this page.
-
getLocation
- Specified by:
getLocation
in interfaceColumnRegion<ATTR extends Attributes.Values>
-
releaseCachedResources
@OverridingMethodsMustInvokeSuper public void releaseCachedResources()Description copied from interface:Releasable
Release 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:
releaseCachedResources
in interfaceReleasable
-
couldInclude
Description copied from interface:ColumnRegion
Check if the region could possibly include any of the keys we're searching for- Specified by:
couldInclude
in interfaceColumnRegion<ATTR extends Attributes.Values>
- Parameters:
sortedKeys
- the keys to search for- Returns:
- true if the region possibly contains the values
-
chunkMatch
public Index chunkMatch(long regionFirstKey, @NotNull OrderedKeys keysToFilter, boolean caseInsensitive, boolean invertMatch, @NotNull Object[] sortedKeys) - Specified by:
chunkMatch
in interfaceColumnRegion<ATTR extends Attributes.Values>
-