parentRDD = parentRDD.mapPartitions(new CombineMapsideFunction<K, V>(combineFn, runtime.getRuntimeContext()));
}
SerDe keySerde, valueSerde;
PTableType<K, V> parentType = ptype.getTableType();
if (parentType instanceof AvroType) {
keySerde = new AvroSerDe((AvroType) parentType.getKeyType());
valueSerde = new AvroSerDe((AvroType) parentType.getValueType());
} else {
keySerde = new WritableSerDe(((WritableType) parentType.getKeyType()).getSerializationClass());
valueSerde = new WritableSerDe(((WritableType) parentType.getValueType()).getSerializationClass());
}