Package io.trino.plugin.jdbc.expression
Class ImplementCount
- java.lang.Object
-
- io.trino.plugin.jdbc.expression.ImplementCount
-
- All Implemented Interfaces:
AggregateFunctionRule
public class ImplementCount extends Object implements AggregateFunctionRule
Implementscount(x).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.plugin.jdbc.expression.AggregateFunctionRule
AggregateFunctionRule.RewriteContext
-
-
Constructor Summary
Constructors Constructor Description ImplementCount(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
-
ImplementCount
public ImplementCount(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
-
-