org.apache.hadoop.fs
Interface VolumeId

All Superinterfaces:
Comparable<VolumeId>
All Known Implementing Classes:
HdfsVolumeId

@InterfaceStability.Unstable
@InterfaceAudience.Public
public interface VolumeId
extends Comparable<VolumeId>

Opaque interface that identifies a disk location. Subclasses should implement Comparable and override both equals and hashCode.


Method Summary
 int compareTo(VolumeId arg0)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isValid()
          Indicates if the disk identifier is valid.
 

Method Detail

isValid

boolean isValid()
Indicates if the disk identifier is valid. Invalid identifiers indicate that the block was not present, or the location could otherwise not be determined.

Returns:
true if the disk identifier is valid

compareTo

int compareTo(VolumeId arg0)
Specified by:
compareTo in interface Comparable<VolumeId>

hashCode

int hashCode()
Overrides:
hashCode in class Object

equals

boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012 Apache Software Foundation. All Rights Reserved.