public override bool Equals(object o) { // Object if (this == o) { return(true); } if (!(o is Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock)) { return(false); } Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock b = (Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock )o; return(b.block.Equals(block) && b.poolId.Equals(poolId)); }
public static Block GetLocalBlock(Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock b ) { return(b == null ? null : b.GetLocalBlock()); }
public ExtendedBlock(Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock b) : this(b.poolId, new Block(b.block)) { }