use of com.huawei.boostkit.omnidata.decode.type.DecodeType in project boostkit-bigdata by kunpengcompute.
the class DataIoAdapter method initSparkDeserializer.
private SparkDeserializer initSparkDeserializer() {
DecodeType[] columnTypes = columnTypesList.toArray(new DecodeType[0]);
int[] columnOrders = columnOrdersList.stream().mapToInt(Integer::intValue).toArray();
DecodeType[] filterTypes = filterTypesList.toArray(new DecodeType[0]);
int[] filterOrders = filterOrdersList.stream().mapToInt(Integer::intValue).toArray();
SparkDeserializer deserializer;
if (columnTypes.length == 0) {
deserializer = new SparkDeserializer(filterTypes, filterOrders);
} else {
deserializer = new SparkDeserializer(columnTypes, columnOrders);
}
return deserializer;
}
Aggregations