org.apache.hadoop.hdfs.protocol.Block.equals()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(244)

本文整理了Java中org.apache.hadoop.hdfs.protocol.Block.equals()方法的一些代码示例,展示了Block.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.equals()方法的具体详情如下:
包路径:org.apache.hadoop.hdfs.protocol.Block
类名称:Block
方法名:equals

Block.equals介绍

暂无

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override // Block
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean equals(Object o) {
 return super.equals(o);
}
@Override

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean equals(Object o) {
 return super.equals(o);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

public boolean blockEquals(Block b) {
 return this.block.equals(b);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean equals(Object o) {
 if (!(o instanceof ReceivedDeletedBlockInfo)) {
  return false;
 }
 ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo) o;
 return this.block.equals(other.getBlock())
   && this.status == other.status
   && this.delHints != null
   && this.delHints.equals(other.delHints);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

@Override
public Optional<FileRegion> resolve(Block ident) throws IOException {
 // consider layering index w/ composable format
 Iterator<FileRegion> i = iterator();
 try {
  while (i.hasNext()) {
   FileRegion f = i.next();
   if (f.getBlock().equals(ident)) {
    return Optional.of(f);
   }
  }
 } finally {
  BufferedReader r = iterators.remove(i);
  if (r != null) {
   // null on last element
   r.close();
  }
 }
 return Optional.empty();
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override
public boolean equals(Object o) {
 return super.equals(o);
}
@Override

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public boolean equals(Object o) {
 return super.equals(o);
}
@Override

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override // Block
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override // Block
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override
public boolean equals(Object obj) {
 // Sufficient to rely on super's implementation
 return (this == obj) || super.equals(obj);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override // Object
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof ExtendedBlock)) {
  return false;
 }
 ExtendedBlock b = (ExtendedBlock)o;
 return b.block.equals(block) && b.poolId.equals(poolId);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override // Object
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof ExtendedBlock)) {
  return false;
 }
 ExtendedBlock b = (ExtendedBlock)o;
 return b.block.equals(block) && b.poolId.equals(poolId);
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs-client

@Override // Object
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof ExtendedBlock)) {
  return false;
 }
 ExtendedBlock b = (ExtendedBlock)o;
 return b.block.equals(block) &&
   (b.poolId != null ? b.poolId.equals(poolId) : poolId == null);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override
public boolean equals(Object o) {
 if (!(o instanceof ReceivedDeletedBlockInfo)) {
  return false;
 }
 ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo) o;
 return this.block.equals(other.getBlock())
   && this.status == other.status
   && this.delHints != null
   && this.delHints.equals(other.delHints);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public boolean equals(Object o) {
 if (!(o instanceof ReceivedDeletedBlockInfo)) {
  return false;
 }
 ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo) o;
 return this.block.equals(other.getBlock())
   && this.status == other.status
   && this.delHints != null
   && this.delHints.equals(other.delHints);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

public boolean equals(Object o){
 if (!(o instanceof ReceivedDeletedBlockInfo)) {
  return false;
 }
 ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo)o;
 return this.block.equals(other.getBlock())
     && (this.delHints.equals(other.delHints) ||
       this.delHints.equals(WILDCARD_HINT) ||
       other.delHints.equals(WILDCARD_HINT));
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

public boolean equals(Object o){
 if (!((o instanceof ReceivedBlockInfo) || (o instanceof Block))) {
  return false;
 }
 //for lookups in maps/queues/etc when comparing RDBI to Block
 String otherDelHints = ((Block)o).getDelHints();
 return super.equals(o)
     && (this.delHints == otherDelHints ||
       (this.delHints != null && this.delHints.equals(otherDelHints)) ||
       WILDCARD_HINT.equals(this.delHints) ||
       WILDCARD_HINT.equals(this.delHints));
}

相关文章