Class ByteArray

java.lang.Object
org.apache.hadoop.hdfs.util.ByteArray

@Private public class ByteArray extends Object
Wrapper for byte[] to use byte[] as key in HashMap
  • Constructor Details

    • ByteArray

      public ByteArray(byte[] bytes)
  • Method Details

    • getBytes

      public byte[] getBytes()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object