This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The expression problem is a new name for an old problem. The goal is to | |
// define a datatype by cases, where one can add new cases to the datatype and | |
// new functions over the datatype, without recompiling existing code, and while | |
// retaining static type safety (e.g., no casts). | |
// (Philip Wadler) | |
import scala.language.implicitConversions | |
object ExpressionProblem extends App { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.avro.io.BinaryDecoder; | |
import org.apache.avro.io.DatumReader; | |
import org.apache.avro.io.DecoderFactory; | |
import org.apache.avro.reflect.ReflectDatumReader; | |
import org.apache.avro.specific.SpecificDatumReader; | |
import org.apache.flink.api.common.typeinfo.TypeInformation; | |
import org.apache.flink.api.java.typeutils.TypeExtractor; | |
public class AvroDeserializationSchema<T> implements DeserializationSchema<T> { | |