Esempio n. 1
0
  static Rename[] readRenameOptions(DataInputStream in) throws IOException {
    BytesWritable writable = new BytesWritable();
    writable.readFields(in);

    byte[] bytes = writable.getBytes();
    Rename[] options = new Rename[bytes.length];

    for (int i = 0; i < bytes.length; i++) {
      options[i] = Rename.valueOf(bytes[i]);
    }
    return options;
  }
Esempio n. 2
0
 @Override
 public void readFields(DataInput in) throws IOException {
   super.readFields(in);
   splitClass = Text.readString(in);
   split.readFields(in);
 }
 public void readFields(DataInput dataInput) throws IOException {
   key.readFields(dataInput);
   partition.readFields(dataInput);
 }