Package com.exasol.adapter.sql
Class SqlFunctionAggregateGroupConcat
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionAggregateGroupConcat
-
public class SqlFunctionAggregateGroupConcat extends SqlNode
Represents a GROUP_CONCAT aggregate function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlFunctionAggregateGroupConcat.BuilderBuilder forSqlFunctionAggregateGroupConcat.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorstatic SqlFunctionAggregateGroupConcat.Builderbuilder(SqlNode argument)Get aSqlFunctionAggregateGroupConcatbuilder.SqlNodegetArgument()Get a function argument.StringgetFunctionName()Get a function name.SqlOrderBygetOrderBy()Get an order by clause.SqlLiteralStringgetSeparator()Get a separator.SqlNodeTypegetType()booleanhasDistinct()Check if the listagg function contains distinct.booleanhasOrderBy()Check if the this function contains an order by clause.booleanhasSeparator()Check if the listagg function contains a separator.
-
-
-
Method Detail
-
getArgument
public SqlNode getArgument()
Get a function argument.- Returns:
- argument
-
hasOrderBy
public boolean hasOrderBy()
Check if the this function contains an order by clause.- Returns:
- true if contains an order by clause
-
getOrderBy
public SqlOrderBy getOrderBy()
Get an order by clause.- Returns:
- order by clause
-
getFunctionName
public String getFunctionName()
Get a function name.- Returns:
- function name as a string
-
hasSeparator
public boolean hasSeparator()
Check if the listagg function contains a separator.- Returns:
- true if contains a separator
-
getSeparator
public SqlLiteralString getSeparator()
Get a separator.- Returns:
- separator
-
hasDistinct
public boolean hasDistinct()
Check if the listagg function contains distinct.- Returns:
- true if contains distinct
-
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
-
builder
public static SqlFunctionAggregateGroupConcat.Builder builder(SqlNode argument)
Get aSqlFunctionAggregateGroupConcatbuilder.- Parameters:
argument- function argument- Returns:
- builder instance
-
-