use of org.embulk.spi.ColumnConfig in project embulk by embulk.
the class Timestamps method newTimestampColumnParsers.
public static TimestampParser[] newTimestampColumnParsers(TimestampParser.Task parserTask, SchemaConfig schema) {
TimestampParser[] parsers = new TimestampParser[schema.getColumnCount()];
int i = 0;
for (ColumnConfig column : schema.getColumns()) {
if (column.getType() instanceof TimestampType) {
TimestampColumnOption option = column.getOption().loadConfig(TimestampColumnOption.class);
parsers[i] = TimestampParser.of(parserTask, option);
}
i++;
}
return parsers;
}
Aggregations