use of org.apache.hive.hcatalog.mapreduce.HCatSplit in project hive by apache.
the class ReaderContextImpl method readExternal.
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
conf.readFields(in);
int numOfSplits = in.readInt();
for (int i = 0; i < numOfSplits; i++) {
HCatSplit split = new HCatSplit();
split.readFields(in);
splits.add(split);
}
}
use of org.apache.hive.hcatalog.mapreduce.HCatSplit in project hive by apache.
the class ReaderContextImpl method writeExternal.
@Override
public void writeExternal(ObjectOutput out) throws IOException {
conf.write(out);
out.writeInt(splits.size());
for (InputSplit split : splits) {
((HCatSplit) split).write(out);
}
}
Aggregations