Search in sources :

Example 1 with HCatSplit

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);
    }
}
Also used : HCatSplit(org.apache.hive.hcatalog.mapreduce.HCatSplit)

Example 2 with HCatSplit

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);
    }
}
Also used : InputSplit(org.apache.hadoop.mapreduce.InputSplit) HCatSplit(org.apache.hive.hcatalog.mapreduce.HCatSplit)

Aggregations

HCatSplit (org.apache.hive.hcatalog.mapreduce.HCatSplit)2 InputSplit (org.apache.hadoop.mapreduce.InputSplit)1