Exemplo n.º 1
0
 @Override
 public void readFields(DataInput input) throws IOException {
   super.readFields(input);
   formatString = WritableUtils.readString(input);
   type = WritableUtils.readEnum(input, FunctionArgumentType.class);
   formatter = type.getFormatter(formatString);
 }
Exemplo n.º 2
0
 @Override
 public void readFields(DataInput input) throws IOException {
   super.readFields(input);
   init();
 }
Exemplo n.º 3
0
 @Override
 public void write(DataOutput output) throws IOException {
   super.write(output);
   WritableUtils.writeString(output, formatString);
   WritableUtils.writeEnum(output, type);
 }