Interface ColumnRegion<ATTR extends Any>
- All Superinterfaces:
ChunkSource<ATTR>,DefaultChunkSource<ATTR>,FillContextMaker,GetContextMaker,Page<ATTR>,PagingChunkSource<ATTR>,PushdownFilterMatcher,RegionedPushdownFilterMatcher,Releasable
- All Known Subinterfaces:
ColumnRegionByte<ATTR>,ColumnRegionChar<ATTR>,ColumnRegionDouble<ATTR>,ColumnRegionFloat<ATTR>,ColumnRegionInt<ATTR>,ColumnRegionLong<ATTR>,ColumnRegionObject<DATA_TYPE,,ATTR> ColumnRegionObject.SelfDictionaryRegion<DATA_TYPE,,ATTR> ColumnRegionReferencing<ATTR,,REFERENCED_COLUMN_REGION> ColumnRegionShort<ATTR>
- All Known Implementing Classes:
AppendOnlyFixedSizePageRegionByte,AppendOnlyFixedSizePageRegionChar,AppendOnlyFixedSizePageRegionDouble,AppendOnlyFixedSizePageRegionFloat,AppendOnlyFixedSizePageRegionInt,AppendOnlyFixedSizePageRegionLong,AppendOnlyFixedSizePageRegionObject,AppendOnlyFixedSizePageRegionShort,ColumnRegion.Null,ColumnRegionByte.Constant,ColumnRegionByte.Null,ColumnRegionByte.StaticPageStore,ColumnRegionChar.Constant,ColumnRegionChar.Null,ColumnRegionChar.StaticPageStore,ColumnRegionChunkDictionary,ColumnRegionDouble.Constant,ColumnRegionDouble.Null,ColumnRegionDouble.StaticPageStore,ColumnRegionFloat.Constant,ColumnRegionFloat.Null,ColumnRegionFloat.StaticPageStore,ColumnRegionInt.Constant,ColumnRegionInt.Null,ColumnRegionInt.StaticPageStore,ColumnRegionLong.Constant,ColumnRegionLong.Null,ColumnRegionLong.StaticPageStore,ColumnRegionObject.Constant,ColumnRegionObject.DictionaryKeysWrapper,ColumnRegionObject.Null,ColumnRegionObject.StaticPageStore,ColumnRegionReferencing.Null,ColumnRegionReferencingImpl,ColumnRegionShort.Constant,ColumnRegionShort.Null,ColumnRegionShort.StaticPageStore,DeferredColumnRegionBase,DeferredColumnRegionChar,DeferredColumnRegionDouble,DeferredColumnRegionFloat,DeferredColumnRegionInt,DeferredColumnRegionLong,DeferredColumnRegionObject,DeferredColumnRegionReferencing,DeferredColumnRegionShort,GenericColumnRegionBase,ParquetColumnRegionBase,ParquetColumnRegionByte,ParquetColumnRegionChar,ParquetColumnRegionDouble,ParquetColumnRegionFloat,ParquetColumnRegionInt,ParquetColumnRegionLong,ParquetColumnRegionObject,ParquetColumnRegionShort
public interface ColumnRegion<ATTR extends Any>
extends Page<ATTR>, Releasable, RegionedPushdownFilterMatcher
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContextNested classes/interfaces inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Any>, DefaultChunkSource.WithPrev<ATTR extends Any>Nested classes/interfaces inherited from interface io.deephaven.engine.page.Page
Page.WithDefaults<ATTR extends Any>, Page.WithDefaultsForRepeatingValues<ATTR extends Any> -
Field Summary
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidestimatePushdownFilterCost(WhereFilter filter, RowSet selection, boolean usePrev, PushdownFilterContext context, JobScheduler jobScheduler, LongConsumer onComplete, Consumer<Exception> onError) Estimate the cost of pushing down the next pushdown filter.default longdefault Optional<ColumnLocation> voidInvalidate the region -- any further reads that cannot be completed consistently and correctly will fail.default voidpushdownFilter(WhereFilter filter, RowSet selection, boolean usePrev, PushdownFilterContext context, long costCeiling, JobScheduler jobScheduler, Consumer<PushdownResult> onComplete, Consumer<Exception> onError) Push down the given filter to the underlying table and pass the result to the consumer.Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunkTypeMethods inherited from interface io.deephaven.engine.table.impl.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeGetContextMethods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContextMethods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContextMethods inherited from interface io.deephaven.engine.page.Page
advanceToNextPage, advanceToNextPage, advanceToNextPageAndGetPositionDistance, firstRow, getRowOffsetMethods inherited from interface io.deephaven.engine.page.PagingChunkSource
fillChunkAppend, makeFillContext, mask, maxRowMethods inherited from interface io.deephaven.engine.table.impl.PushdownFilterMatcher
makePushdownFilterContextMethods inherited from interface io.deephaven.engine.table.impl.sources.regioned.RegionedPushdownFilterMatcher
estimatePushdownAction, makeActionContext, makeEstimateContext, performPushdownAction, supportedActionsMethods inherited from interface io.deephaven.engine.table.Releasable
releaseCachedResources
-
Method Details
-
firstRowOffset
- Specified by:
firstRowOffsetin interfacePage<ATTR extends Any>- Returns:
- the first row of this page, after applying the
PagingChunkSource.mask(), which refers to the first row of this page.
-
getColumnLocation
-
invalidate
void invalidate()Invalidate the region -- any further reads that cannot be completed consistently and correctly will fail. -
estimatePushdownFilterCost
default void estimatePushdownFilterCost(WhereFilter filter, RowSet selection, boolean usePrev, PushdownFilterContext context, JobScheduler jobScheduler, LongConsumer onComplete, Consumer<Exception> onError) Description copied from interface:PushdownFilterMatcherEstimate the cost of pushing down the next pushdown filter. This returns a unitless value to compare the cost of executing different filters. Common costs are listed inPushdownResult(such asPushdownResult.REGION_METADATA_STATS_COST) and should be used as a baseline for estimating the cost of newly implemented pushdown operations.A no-op implementation should simply complete with
Long.MAX_VALUE.- Specified by:
estimatePushdownFilterCostin interfacePushdownFilterMatcher- Parameters:
filter- Thefilterto test.selection- The set of rows to tests.usePrev- Whether to use the previous resultcontext- ThePushdownFilterContextto use for the pushdown operation.jobScheduler- The job scheduler to use for scheduling child jobsonComplete- Consumer of the estimated cost of the pushdown operation. 9223372036854775807L indicates that the filter cannot be pushed down.onError- Consumer of any exceptions that occur during the estimate operation
-
pushdownFilter
default void pushdownFilter(WhereFilter filter, RowSet selection, boolean usePrev, PushdownFilterContext context, long costCeiling, JobScheduler jobScheduler, Consumer<PushdownResult> onComplete, Consumer<Exception> onError) Description copied from interface:PushdownFilterMatcherPush down the given filter to the underlying table and pass the result to the consumer. This method is expected to execute all pushdown filter steps that are greater thanPushdownFilterContext.executedFilterCost()and less than or equal tocostCeiling.The resulting
PushdownResult(toonComplete) must only contain rows fromselection. Thematch row setare rows that are guaranteed to match. The implicitly "missing" rowsselection - match - maybeMatchare rows that are guaranteed to not match. The remainingmaybe match row setare rows that may, or may not, match. The pushdown result ownership passes toonComplete.A no-op implementation should simply complete with
PushdownResult.maybeMatch(selection).- Specified by:
pushdownFilterin interfacePushdownFilterMatcher- Parameters:
filter- Thefilterto apply.selection- The set of rows to test.usePrev- Whether to use the previous resultcontext- ThePushdownFilterContextto use for the pushdown operation.costCeiling- Execute all possible filters with a cost less than or equal this value.jobScheduler- The job scheduler to use for scheduling child jobsonComplete- Consumer of the output rowsets for added and modified rows that pass the filteronError- Consumer of any exceptions that occur during the pushdown operation
-