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 class
SqlFunctionAggregateListagg.Behavior
This class represent behavior ofSqlFunctionAggregateListagg
.static class
SqlFunctionAggregateListagg.BehaviorType
Expected behavior types.static class
SqlFunctionAggregateListagg.Builder
Builder forSqlFunctionAggregateListagg
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
static SqlFunctionAggregateListagg.Builder
builder(SqlNode argument, SqlFunctionAggregateListagg.Behavior overflowBehavior)
Get aSqlFunctionAggregateListagg
builder.SqlNode
getArgument()
Get a function argument.String
getFunctionName()
Get a function name.SqlOrderBy
getOrderBy()
Get an order by clause.SqlFunctionAggregateListagg.Behavior
getOverflowBehavior()
Get an overflow behavior.SqlLiteralString
getSeparator()
Get a separator.SqlNodeType
getType()
Gets type.boolean
hasDistinct()
Check if the listagg function contains distinct.boolean
hasOrderBy()
Check if the listagg function contains an order by clause.boolean
hasSeparator()
Check if the listagg function contains a separator.
-
-
-
Method Detail
-
getType
public SqlNodeType getType()
Description copied from class:SqlNode
Gets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNode
SeeSqlNodeVisitor
- Specified by:
accept
in 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 argument
-
getSeparator
public SqlLiteralString getSeparator()
Get a separator.- Returns:
- separator 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 aSqlFunctionAggregateListagg
builder.- Parameters:
argument
- function argumentoverflowBehavior
- overflow behavior- Returns:
- builder instance
-
-