List of usage examples for org.apache.hadoop.io WritableUtils readStringSafely
public static String readStringSafely(DataInput in, int maxLength) throws IOException, IllegalArgumentException
From source file:org.apache.tez.engine.common.shuffle.impl.ShuffleHeader.java
License:Apache License
public void readFields(DataInput in) throws IOException { mapId = WritableUtils.readStringSafely(in, MAX_ID_LENGTH); compressedLength = WritableUtils.readVLong(in); uncompressedLength = WritableUtils.readVLong(in); forReduce = WritableUtils.readVInt(in); }