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.


Field Summary
static VolumeId INVALID_VOLUME_ID
          Represents an invalid Volume ID (ID for unknown content).
 
Method Summary
 int compareTo(VolumeId arg0)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isValid()
          Indicates if the disk identifier is valid.
 

Field Detail

INVALID_VOLUME_ID

static final VolumeId INVALID_VOLUME_ID
Represents an invalid Volume ID (ID for unknown content).

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 © 2013 Apache Software Foundation. All Rights Reserved.