Modifier and Type | Method and Description |
---|---|
BoundFunction |
bind(StructType inputType)
Bind this function to an input type.
|
String |
description()
Returns Function documentation.
|
BoundFunction bind(StructType inputType)
If the input type is not supported, implementations must throw
UnsupportedOperationException
.
For example, a "length" function that only supports a single string argument should throw UnsupportedOperationException if the struct has more than one field or if that field is not a string, and it may optionally throw if the field is nullable.
inputType
- a struct type for inputs that will be passed to the bound functionUnsupportedOperationException
- If the function cannot be applied to the input typeString description()