Package com.exasol.adapter.sql
Class SqlFunctionScalarJsonValue
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionScalarJsonValue
-
public class SqlFunctionScalarJsonValue extends SqlNode
This class represents theScalarFunction.JSON_VALUEscalar function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlFunctionScalarJsonValue.BehaviorThis class represent behavior ofSqlFunctionScalarJsonValueon error or empty.static classSqlFunctionScalarJsonValue.BehaviorTypeA list of expected behavior types.
-
Constructor Summary
Constructors Constructor Description SqlFunctionScalarJsonValue(ScalarFunction scalarFunction, List<SqlNode> arguments, DataType returningDataType, SqlFunctionScalarJsonValue.Behavior emptyBehavior, SqlFunctionScalarJsonValue.Behavior errorBehavior)Instantiates a new Sql function scalar json value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorList<SqlNode>getArguments()Gets arguments.SqlFunctionScalarJsonValue.BehaviorgetEmptyBehavior()Gets empty behavior.SqlFunctionScalarJsonValue.BehaviorgetErrorBehavior()Gets error behavior.DataTypegetReturningDataType()Gets returning data type.ScalarFunctiongetScalarFunction()Gets scalar function.SqlNodeTypegetType()Gets type.
-
-
-
Constructor Detail
-
SqlFunctionScalarJsonValue
public SqlFunctionScalarJsonValue(ScalarFunction scalarFunction, List<SqlNode> arguments, DataType returningDataType, SqlFunctionScalarJsonValue.Behavior emptyBehavior, SqlFunctionScalarJsonValue.Behavior errorBehavior)
Instantiates a new Sql function scalar json value.- Parameters:
scalarFunction- the scalar functionarguments- the argumentsreturningDataType- the returning data typeemptyBehavior- the empty behaviorerrorBehavior- the error behavior
-
-
Method Detail
-
getType
public SqlNodeType getType()
Description copied from class:SqlNodeGets type.
-
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
-
getScalarFunction
public ScalarFunction getScalarFunction()
Gets scalar function.- Returns:
- the scalar function
-
getReturningDataType
public DataType getReturningDataType()
Gets returning data type.- Returns:
- the returning data type
-
getEmptyBehavior
public SqlFunctionScalarJsonValue.Behavior getEmptyBehavior()
Gets empty behavior.- Returns:
- the empty behavior
-
getErrorBehavior
public SqlFunctionScalarJsonValue.Behavior getErrorBehavior()
Gets error behavior.- Returns:
- the error behavior
-
-