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(SqlNode argument, SqlFunctionAggregateListagg.Behavior overflowBehavior)Get aSqlFunctionAggregateListaggbuilder.SqlNodegetArgument()Get a function argument.StringgetFunctionName()Get a function name.SqlOrderBygetOrderBy()Get an order by clause.SqlFunctionAggregateListagg.BehaviorgetOverflowBehavior()Get an overflow behavior.SqlLiteralStringgetSeparator()Get a separator.SqlNodeTypegetType()booleanhasDistinct()Check if the listagg function contains distinct.booleanhasOrderBy()Check if the listagg function contains an order by clause.booleanhasSeparator()Check if the listagg function contains a separator.
-
-
-
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
-
hasDistinct
public boolean hasDistinct()
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
-
getArgument
public SqlNode getArgument()
Get a function argument.- Returns:
- argument
-
getSeparator
public SqlLiteralString 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(SqlNode argument, SqlFunctionAggregateListagg.Behavior overflowBehavior)
Get aSqlFunctionAggregateListaggbuilder.- Parameters:
argument- function argumentoverflowBehavior- overflow behavior- Returns:
- builder instance
-
-