@InterfaceAudience.Public @InterfaceStability.Stable public class MD5Hash extends Object implements WritableComparable<MD5Hash>
| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| static int | MD5_LEN | 
| コンストラクタと説明 | 
|---|
| MD5Hash()Constructs an MD5Hash. | 
| MD5Hash(byte[] digest)Constructs an MD5Hash with a specified value. | 
| MD5Hash(String hex)Constructs an MD5Hash from a hex string. | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| int | compareTo(MD5Hash that)Compares this object with the specified object for order. | 
| static MD5Hash | digest(byte[] data)Construct a hash value for a byte array. | 
| static MD5Hash | digest(byte[][] dataArr,
      int start,
      int len)Construct a hash value for an array of byte array. | 
| static MD5Hash | digest(byte[] data,
      int start,
      int len)Construct a hash value for a byte array. | 
| static MD5Hash | digest(InputStream in)Construct a hash value for the content from the InputStream. | 
| static MD5Hash | digest(String string)Construct a hash value for a String. | 
| static MD5Hash | digest(org.apache.hadoop.io.UTF8 utf8)Construct a hash value for a String. | 
| boolean | equals(Object o)Returns true iff  ois an MD5Hash whose digest contains the
 same values. | 
| byte[] | getDigest()Returns the digest bytes. | 
| static MessageDigest | getDigester()Create a thread local MD5 digester | 
| long | halfDigest()Construct a half-sized version of this MD5. | 
| int | hashCode()Returns a hash code value for this object. | 
| int | quarterDigest()Return a 32-bit digest of the MD5. | 
| static MD5Hash | read(DataInput in)Constructs, reads and returns an instance. | 
| void | readFields(DataInput in)Deserialize the fields of this object from  in. | 
| void | set(MD5Hash that)Copy the contents of another instance into this instance. | 
| void | setDigest(String hex)Sets the digest value from a hex string. | 
| String | toString()Returns a string representation of this object. | 
| void | write(DataOutput out)Serialize the fields of this object to  out. | 
public MD5Hash()
public MD5Hash(byte[] digest)
public void readFields(DataInput in) throws IOException
Writablein.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields インタフェース内 Writablein - DataInput to deseriablize this object from.IOExceptionpublic static MD5Hash read(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write インタフェース内 Writableout - DataOuput to serialize this object into.IOExceptionpublic byte[] getDigest()
public static MessageDigest getDigester()
public static MD5Hash digest(InputStream in) throws IOException
IOExceptionpublic static MD5Hash digest(byte[] data, int start, int len)
public static MD5Hash digest(byte[][] dataArr, int start, int len)
public static MD5Hash digest(org.apache.hadoop.io.UTF8 utf8)
public long halfDigest()
public int quarterDigest()
public boolean equals(Object o)
o is an MD5Hash whose digest contains the
 same values.public int hashCode()
public int compareTo(MD5Hash that)
compareTo インタフェース内 Comparable<MD5Hash>Copyright © 2016 Apache Software Foundation. All rights reserved.