public interface Params extends Identifiable, scala.Serializable
Modifier and Type | Method and Description |
---|---|
StructType |
addOutputColumn(StructType schema,
String colName,
DataType dataType) |
void |
checkInputColumn(StructType schema,
String colName,
DataType dataType)
Check whether the given schema contains an input column.
|
String |
explainParams()
Returns the documentation of all params.
|
<T> T |
get(Param<T> param)
Gets the value of a parameter in the embedded param map.
|
Param<Object> |
getParam(String paramName)
Gets a param by its name.
|
boolean |
isSet(Param<?> param)
Checks whether a param is explicitly set.
|
ParamMap |
paramMap()
Internal param map.
|
Param<?>[] |
params()
Returns all params.
|
<T> Params |
set(Param<T> param,
T value)
Sets a parameter in the embedded param map.
|
Params |
set(String param,
Object value)
Sets a parameter (by name) in the embedded param map.
|
void |
validate()
Validates parameter values stored internally.
|
void |
validate(ParamMap paramMap)
Validates parameter values stored internally plus the input parameter map.
|
uid
Param<?>[] params()
void validate(ParamMap paramMap)
void validate()
String explainParams()
boolean isSet(Param<?> param)
Param<Object> getParam(String paramName)
Params set(String param, Object value)
<T> T get(Param<T> param)
ParamMap paramMap()
void checkInputColumn(StructType schema, String colName, DataType dataType)
colName
- Parameter name for the input column.dataType
- SQL DataType of the input column.StructType addOutputColumn(StructType schema, String colName, DataType dataType)