/** Returns the attached schema's toRowFunction. */ @Experimental(Kind.SCHEMAS) public SerializableFunction<T, Row> getToRowFunction() { if (!hasSchema()) { throw new IllegalStateException("Cannot call getToRowFunction when there is no schema"); } return ((SchemaCoder<T>) getCoder()).getToRowFunction(); }
.setSchema( outputSchemaCoder.getSchema(), outputSchemaCoder.getToRowFunction(), outputSchemaCoder.getFromRowFunction());