我有一个Json文件,其内容是每行一个对象数组,可以将Object []的PCollection转换为Object的PCollection吗?
PCollection<String> events =
p.apply(TextIO.read()
.from("C:\\data\\*.zip")
.withCompression(Compression.ZIP));
PCollection<User[]> objectsArray = events.apply(ParseJsons.of(User[].class))
.setCoder(SerializableCoder.of(User[].class));
PCollection<User> object = objectsArray.apply( ????? );