@Internal public final class DataStructureConverters extends Object
Data structure converters are used at the edges for the API for converting between internal
structures (see RowData
) and external structures (see DataType.getConversionClass()
).
This is useful for UDFs, sources, sinks, or exposing data in the API (e.g. via a collect()
).
Note: It is NOT the responsibility of a converter to normalize the data. Thus, a converter does neither change the precision of a timestamp nor prune/expand strings to their defined length. This might be the responsibility of data classes that are called transitively.
Constructor and Description |
---|
DataStructureConverters() |
Modifier and Type | Method and Description |
---|---|
static DataStructureConverter<Object,Object> |
getConverter(DataType dataType)
Returns a converter for the given
DataType . |
public static DataStructureConverter<Object,Object> getConverter(DataType dataType)
DataType
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.