Example usage for org.apache.hadoop.io MD5Hash MD5Hash

List of usage examples for org.apache.hadoop.io MD5Hash MD5Hash

Introduction

In this page you can find the example usage for org.apache.hadoop.io MD5Hash MD5Hash.

Prototype

public MD5Hash() 

Source Link

Document

Constructs an MD5Hash.

Usage

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);
}