Package org.apache.flink.formats.common
Interface Converter<From,To,C>
- Type Parameters:
From- The type of the element to be converted.To- The output type.C- The context for passing optional conversion instructions.
- All Superinterfaces:
Serializable
A generic interface for converting data types.
-
Method Summary
-
Method Details
-
convert
Converts elements of typeFrominto elements of typeTo.- Parameters:
source- The element to be converted.context- The context with conversion instructions and utilities.- Returns:
- The element in the target type.
-