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
-
Method Summary
Modifier and Type Method Description Index
chunkMatch(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 forFileDataBufferStore
getBufferProvider()
DeephavenFormatColumnLocation
getLocation()
Class<?>
getNativeType()
BufferedPage<ATTR>
getPageContaining(ChunkSource.FillContext fillContext, long row)
long
length()
ChunkSource.FillContext
makeFillContext(int chunkCapacity, SharedContext sharedContext)
Allocate a newChunkSource.FillContext
for filling chunks from thisFillContextMaker
, typically aChunkSource
.void
releaseCachedResources()
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.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
-
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
-
makeFillContext
Description copied from interface:FillContextMaker
Allocate a newChunkSource.FillContext
for filling chunks from thisFillContextMaker
, typically aChunkSource
.- Specified by:
makeFillContext
in interfaceDefaultChunkSource<ATTR extends Attributes.Values>
- Specified by:
makeFillContext
in interfaceFillContextMaker
- Parameters:
chunkCapacity
- The maximum size of anyWritableChunk
that will be filled with this contextsharedContext
- Shared store of intermediate results.- Returns:
- A context for use with fill operations
-
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(@NotNull OrderedKeys keysToFilter, boolean caseInsensitive, boolean invertMatch, @NotNull Object[] sortedKeys)- Specified by:
chunkMatch
in interfaceColumnRegion<ATTR extends Attributes.Values>
-