use of org.apache.flink.core.memory.DataInputDeserializer in project flink by apache.
the class TestManagedFileSourceSplitSerializer method deserialize.
@Override
public TestManagedIterableSourceSplit deserialize(int version, byte[] serialized) throws IOException {
if (version == VERSION) {
final DataInputDeserializer in = new DataInputDeserializer(serialized);
final String id = in.readUTF();
final Path path = new Path();
path.read(in);
return new TestManagedIterableSourceSplit(id, path);
}
throw new IOException(String.format("Unknown version %d", version));
}
Aggregations