Interface ProcedureParameter
-
public interface ProcedureParameterAn input parameter of astored procedure.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.spark.sql.types.DataTypedataType()Returns the type of this parameter.java.lang.Stringname()Returns the name of this parameter.static ProcedureParameteroptional(java.lang.String name, org.apache.spark.sql.types.DataType dataType)Creates an optional input parameter.booleanrequired()Returns true if this parameter is required.static ProcedureParameterrequired(java.lang.String name, org.apache.spark.sql.types.DataType dataType)Creates a required input parameter.
-
-
-
Method Detail
-
required
static ProcedureParameter required(java.lang.String name, org.apache.spark.sql.types.DataType dataType)
Creates a required input parameter.- Parameters:
name- the name of the parameterdataType- the type of the parameter- Returns:
- the constructed stored procedure parameter
-
optional
static ProcedureParameter optional(java.lang.String name, org.apache.spark.sql.types.DataType dataType)
Creates an optional input parameter.- Parameters:
name- the name of the parameter.dataType- the type of the parameter.- Returns:
- the constructed optional stored procedure parameter
-
name
java.lang.String name()
Returns the name of this parameter.
-
dataType
org.apache.spark.sql.types.DataType dataType()
Returns the type of this parameter.
-
required
boolean required()
Returns true if this parameter is required.
-
-