List of usage examples for org.apache.hadoop.io MD5Hash MD5Hash
public MD5Hash()
From source file:co.nubetech.hiho.dedup.HihoTuple.java
License:Apache License
@Override public void readFields(DataInput in) throws IOException { logger.debug("Reading fields"); hash = new MD5Hash(); hash.readFields(in);//from w w w . j a va2 s . c o m keyClass = new Text(); keyClass.readFields(in); try { logger.debug("Key class in readField() of HihoTuple class is :" + keyClass); key = (K) Class.forName(keyClass.toString()).newInstance(); } catch (Exception e) { e.printStackTrace(); throw new IOException("Error in serializing the HihoTuple ", e); } key.readFields(in); }