[FLINK-933] Add primitive input format to read a sequence of primitives