use of org.apache.flink.table.data.writer.BinaryArrayWriter in project flink by apache.
the class ArrayDataSerializerTest method createArray.
static BinaryArrayData createArray(String... vs) {
BinaryArrayData array = new BinaryArrayData();
BinaryArrayWriter writer = new BinaryArrayWriter(array, vs.length, 8);
for (int i = 0; i < vs.length; i++) {
writer.writeString(i, StringData.fromString(vs[i]));
}
writer.complete();
return array;
}
Aggregations