Package com.exasol.adapter.sql
Class SqlFunctionAggregateListagg
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionAggregateListagg
-
public class SqlFunctionAggregateListagg extends SqlNode
Represents a listagg aggregate function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlFunctionAggregateListagg.BehaviorThis class represent behavior ofSqlFunctionAggregateListagg.static classSqlFunctionAggregateListagg.BehaviorTypeExpected behavior types.static classSqlFunctionAggregateListagg.BuilderBuilder forSqlFunctionAggregateListagg.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorstatic SqlFunctionAggregateListagg.Builderbuilder(List<SqlNode> arguments, SqlFunctionAggregateListagg.Behavior overflowBehavior)Get aSqlFunctionAggregateListaggbuilder.List<SqlNode>getArguments()Get list of arguments.StringgetFunctionName()Get a function name.SqlOrderBygetOrderBy()Get an order by clause.SqlFunctionAggregateListagg.BehaviorgetOverflowBehavior()Get an overflow behavior.StringgetSeparator()Get a separator.SqlNodeTypegetType()booleanhasOrderBy()Check if the listagg function contains an order by clause.booleanhasSeparator()Check if the listagg function contains a separator.booleanisDistinct()Check if the listagg function contains distinct.
-
-
-
Method Detail
-
getType
public SqlNodeType getType()
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNodeSeeSqlNodeVisitor- Specified by:
acceptin classSqlNode- Type Parameters:
R- generic SqlNodeVisitor type- Parameters:
visitor- The visitor object on which the appropriate visit(sqlNode) method is called- Returns:
- visited object
- Throws:
AdapterException- can be thrown
-
isDistinct
public boolean isDistinct()
Check if the listagg function contains distinct.- Returns:
- true if contains distinct
-
hasOrderBy
public boolean hasOrderBy()
Check if the listagg function contains an order by clause.- Returns:
- true if contains an order by clause
-
hasSeparator
public boolean hasSeparator()
Check if the listagg function contains a separator.- Returns:
- true if contains a separator
-
getSeparator
public String getSeparator()
Get a separator.- Returns:
- separator
-
getOrderBy
public SqlOrderBy getOrderBy()
Get an order by clause.- Returns:
- order by clause
-
getOverflowBehavior
public SqlFunctionAggregateListagg.Behavior getOverflowBehavior()
Get an overflow behavior.- Returns:
- overflow behavior
-
getFunctionName
public String getFunctionName()
Get a function name.- Returns:
- function name as a string
-
builder
public static SqlFunctionAggregateListagg.Builder builder(List<SqlNode> arguments, SqlFunctionAggregateListagg.Behavior overflowBehavior)
Get aSqlFunctionAggregateListaggbuilder.- Parameters:
arguments- list of argumentsoverflowBehavior- overflow behavior- Returns:
- builder instance
-
-