org.apache.hadoop.hdfs.server.protocol
Class ReceivedDeletedBlockInfo
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.ReceivedDeletedBlockInfo
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class ReceivedDeletedBlockInfo
- extends Object
- implements org.apache.hadoop.io.Writable
A data structure to store Block and delHints together, used to send
received/deleted ACKs.
TODELETE_HINT
public static final String TODELETE_HINT
- See Also:
- Constant Field Values
ReceivedDeletedBlockInfo
public ReceivedDeletedBlockInfo()
ReceivedDeletedBlockInfo
public ReceivedDeletedBlockInfo(org.apache.hadoop.hdfs.protocol.Block blk,
String delHints)
getBlock
public org.apache.hadoop.hdfs.protocol.Block getBlock()
setBlock
public void setBlock(org.apache.hadoop.hdfs.protocol.Block blk)
getDelHints
public String getDelHints()
setDelHints
public void setDelHints(String hints)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
blockEquals
public boolean blockEquals(org.apache.hadoop.hdfs.protocol.Block b)
isDeletedBlock
public boolean isDeletedBlock()
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Apache Software Foundation. All Rights Reserved.