I - internal data structure (see RowData)E - external data structure (see DataType.getConversionClass())@Internal public interface DataStructureConverter<I,E> extends Serializable
Converters are serializable and can be passed to runtime operators.
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
open(ClassLoader classLoader) |
E |
toExternal(I internal)
Converts to external data structure.
|
default E |
toExternalOrNull(I internal)
Converts to external data structure or
null. |
I |
toInternal(E external)
Converts to internal data structure.
|
default I |
toInternalOrNull(E external)
Converts to internal data structure or
null. |
default void open(ClassLoader classLoader)
I toInternal(E external)
Note: Parameter must not be null. Output must not be null.
default I toInternalOrNull(E external)
null.
The nullability could be derived from the data type. However, this method reduces null checks.
E toExternal(I internal)
Note: Parameter must not be null. Output must not be null.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.