org.apache.hadoop.fs
Class HdfsVolumeId

java.lang.Object
  extended by 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.


Constructor Summary
HdfsVolumeId(byte[] id)
           
 
Method Summary
 int compareTo(VolumeId arg0)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HdfsVolumeId

public HdfsVolumeId(byte[] id)
Method Detail

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.