org.apache.hadoop.hdfs.protocol
Class CorruptFileBlocks
java.lang.Object
org.apache.hadoop.hdfs.protocol.CorruptFileBlocks
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class CorruptFileBlocks
- extends Object
- implements org.apache.hadoop.io.Writable
Contains a list of paths corresponding to corrupt files and a cookie
used for iterative calls to NameNode.listCorruptFileBlocks.
CorruptFileBlocks
public CorruptFileBlocks()
CorruptFileBlocks
public CorruptFileBlocks(String[] files,
String cookie)
getFiles
public String[] getFiles()
getCookie
public String getCookie()
readFields
public void readFields(DataInput in)
throws IOException
-
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
-
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
equals
public boolean equals(Object obj)
-
- Overrides:
equals in class Object
hashCode
public int hashCode()
-
- Overrides:
hashCode in class Object
Copyright © 2013 Apache Software Foundation. All Rights Reserved.