Package io.trino.operator.window.pattern
Class MeasureComputation
- java.lang.Object
-
- io.trino.operator.window.pattern.MeasureComputation
-
public class MeasureComputation extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeasureComputation.MeasureComputationSupplier
-
Constructor Summary
Constructors Constructor Description MeasureComputation(PageProjection projection, List<PhysicalValueAccessor> expectedLayout, List<MatchAggregation> aggregations, Type type, List<String> labelNames, ConnectorSession session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Blockcompute(int currentRow, ArrayView matchedLabels, int partitionStart, int searchStart, int searchEnd, int patternStart, long matchNumber, ProjectingPagesWindowIndex windowIndex)static Blockcompute(int currentRow, ArrayView matchedLabels, MatchAggregation[] aggregations, int partitionStart, int searchStart, int searchEnd, int patternStart, long matchNumber, ProjectingPagesWindowIndex windowIndex, PageProjection projection, List<PhysicalValueAccessor> expectedLayout, Block[] nulls, List<String> labelNames, ConnectorSession session)BlockcomputeEmpty(long matchNumber)TypegetType()static Block[]precomputeNulls(List<PhysicalValueAccessor> expectedLayout)
-
-
-
Constructor Detail
-
MeasureComputation
public MeasureComputation(PageProjection projection, List<PhysicalValueAccessor> expectedLayout, List<MatchAggregation> aggregations, Type type, List<String> labelNames, ConnectorSession session)
-
-
Method Detail
-
getType
public Type getType()
-
compute
public Block compute(int currentRow, ArrayView matchedLabels, int partitionStart, int searchStart, int searchEnd, int patternStart, long matchNumber, ProjectingPagesWindowIndex windowIndex)
-
computeEmpty
public Block computeEmpty(long matchNumber)
-
compute
public static Block compute(int currentRow, ArrayView matchedLabels, MatchAggregation[] aggregations, int partitionStart, int searchStart, int searchEnd, int patternStart, long matchNumber, ProjectingPagesWindowIndex windowIndex, PageProjection projection, List<PhysicalValueAccessor> expectedLayout, Block[] nulls, List<String> labelNames, ConnectorSession session)
-
precomputeNulls
public static Block[] precomputeNulls(List<PhysicalValueAccessor> expectedLayout)
-
-