/** * Read from the source to create the target type with target schema. * * @param source the source from which to read the object * @param sourceSchema the write schema of the object * @return the object of given type and schema * @throws IOException if there was some exception reading the object */ public TO read(FROM source, Schema sourceSchema) throws IOException { return read(source, sourceSchema, schema, type); }
/** * Read from the source to create the target type with target schema. * * @param source the source from which to read the object * @param sourceSchema the write schema of the object * @return the object of given type and schema * @throws IOException if there was some exception reading the object */ public TO read(FROM source, Schema sourceSchema) throws IOException { return read(source, sourceSchema, schema, type); }