Package io.trino.plugin.jdbc.expression
Class ImplementCountAll
- java.lang.Object
-
- io.trino.plugin.jdbc.expression.ImplementCountAll
-
- All Implemented Interfaces:
AggregateFunctionRule
public class ImplementCountAll extends Object implements AggregateFunctionRule
Implementscount(*).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.plugin.jdbc.expression.AggregateFunctionRule
AggregateFunctionRule.RewriteContext
-
-
Constructor Summary
Constructors Constructor Description ImplementCountAll(JdbcTypeHandle bigintTypeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern<AggregateFunction>getPattern()Optional<JdbcExpression>rewrite(AggregateFunction aggregateFunction, Captures captures, AggregateFunctionRule.RewriteContext context)
-
-
-
Constructor Detail
-
ImplementCountAll
public ImplementCountAll(JdbcTypeHandle bigintTypeHandle)
- Parameters:
bigintTypeHandle- AJdbcTypeHandlethat will be mapped toBigintTypebyJdbcClient.toColumnMapping(io.trino.spi.connector.ConnectorSession, java.sql.Connection, io.trino.plugin.jdbc.JdbcTypeHandle).
-
-
Method Detail
-
getPattern
public Pattern<AggregateFunction> getPattern()
- Specified by:
getPatternin interfaceAggregateFunctionRule
-
rewrite
public Optional<JdbcExpression> rewrite(AggregateFunction aggregateFunction, Captures captures, AggregateFunctionRule.RewriteContext context)
- Specified by:
rewritein interfaceAggregateFunctionRule
-
-