Class<? extends InputSplit> clazz = split.getClass().asSubclass(InputSplit.class);
Text.writeString(out, clazz.getName());
SerializationFactory factory = new SerializationFactory(conf);
Serializer serializer = factory.getSerializer(clazz);
serializer.open(out instanceof UncloseableDataOutputStream ? out : new UncloseableDataOutputStream(out));
serializer.serialize(split);
}
public static InputSplit deserializeInputSplit(Configuration conf, DataInputStream in) throws IOException {
String name = Text.readString(in);
Class<? extends InputSplit> clazz;