예제 #1
0
 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));
 }
예제 #2
0
 public static Block GetLocalBlock(Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock b
                                   )
 {
     return(b == null ? null : b.GetLocalBlock());
 }
예제 #3
0
 public ExtendedBlock(Org.Apache.Hadoop.Hdfs.Protocol.ExtendedBlock b)
     : this(b.poolId, new Block(b.block))
 {
 }