org.apache.hadoop.fs
Class HdfsVolumeId
java.lang.Object
org.apache.hadoop.fs.HdfsVolumeId
- All Implemented Interfaces:
- Comparable<VolumeId>, VolumeId
@InterfaceStability.Unstable
@InterfaceAudience.Public
public class HdfsVolumeId
- extends Object
- implements VolumeId
HDFS-specific volume identifier which implements VolumeId
. Can be
used to differentiate between the data directories on a single datanode. This
identifier is only unique on a per-datanode basis.
HdfsVolumeId
public HdfsVolumeId(byte[] id)
compareTo
public int compareTo(VolumeId arg0)
- Specified by:
compareTo
in interface Comparable<VolumeId>
- Specified by:
compareTo
in interface VolumeId
hashCode
public int hashCode()
- Specified by:
hashCode
in interface VolumeId
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface VolumeId
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.