@Override public PCollection<Row> expand(PCollection<InputT> input) { SchemaAggregateFn.Inner<InputT> fn = schemaAggregateFn.withSchema(input.getSchema(), input.getToRowFunction()); return input.apply(Combine.globally(fn)).setRowSchema(fn.getOutputSchema()); } }
@Override public PCollection<KV<Row, Row>> expand(PCollection<InputT> input) { SchemaAggregateFn.Inner<InputT> fn = schemaAggregateFn.withSchema(input.getSchema(), input.getToRowFunction()); return input.apply(byFields).apply(Combine.groupedValues(fn)); } }