proto.getLatestGenerationStamp(), fromProto(proto.getRequestedChecksum()), (proto.hasCachingStrategy() ? getCachingStrategy(proto.getCachingStrategy()) : CachingStrategy.newDefaultStrategy()),
mergeRequestedChecksum(other.getRequestedChecksum()); if (other.hasCachingStrategy()) { mergeCachingStrategy(other.getCachingStrategy());
mergeRequestedChecksum(other.getRequestedChecksum()); if (other.hasCachingStrategy()) { mergeCachingStrategy(other.getCachingStrategy());
mergeRequestedChecksum(other.getRequestedChecksum()); if (other.hasCachingStrategy()) { mergeCachingStrategy(other.getCachingStrategy());
.equals(other.getRequestedChecksum()); result = result && (hasCachingStrategy() == other.hasCachingStrategy()); if (hasCachingStrategy()) { result = result && getCachingStrategy() .equals(other.getCachingStrategy());
.equals(other.getRequestedChecksum()); result = result && (hasCachingStrategy() == other.hasCachingStrategy()); if (hasCachingStrategy()) { result = result && getCachingStrategy() .equals(other.getCachingStrategy());
.equals(other.getRequestedChecksum()); result = result && (hasCachingStrategy() == other.hasCachingStrategy()); if (hasCachingStrategy()) { result = result && getCachingStrategy() .equals(other.getCachingStrategy());
hash = (53 * hash) + getRequestedChecksum().hashCode(); if (hasCachingStrategy()) { hash = (37 * hash) + CACHINGSTRATEGY_FIELD_NUMBER; hash = (53 * hash) + getCachingStrategy().hashCode();
hash = (53 * hash) + getRequestedChecksum().hashCode(); if (hasCachingStrategy()) { hash = (37 * hash) + CACHINGSTRATEGY_FIELD_NUMBER; hash = (53 * hash) + getCachingStrategy().hashCode();
hash = (53 * hash) + getRequestedChecksum().hashCode(); if (hasCachingStrategy()) { hash = (37 * hash) + CACHINGSTRATEGY_FIELD_NUMBER; hash = (53 * hash) + getCachingStrategy().hashCode();
/** Receive OP_WRITE_BLOCK */ private void opWriteBlock(DataInputStream in) throws IOException { final OpWriteBlockProto proto = OpWriteBlockProto.parseFrom(vintPrefixed(in)); final DatanodeInfo[] targets = PBHelper.convert(proto.getTargetsList()); TraceScope traceScope = continueTraceSpan(proto.getHeader(), proto.getClass().getSimpleName()); try { writeBlock(PBHelper.convert(proto.getHeader().getBaseHeader().getBlock()), PBHelper.convertStorageType(proto.getStorageType()), PBHelper.convert(proto.getHeader().getBaseHeader().getToken()), proto.getHeader().getClientName(), targets, PBHelper.convertStorageTypes(proto.getTargetStorageTypesList(), targets.length), PBHelper.convert(proto.getSource()), fromProto(proto.getStage()), proto.getPipelineSize(), proto.getMinBytesRcvd(), proto.getMaxBytesRcvd(), proto.getLatestGenerationStamp(), fromProto(proto.getRequestedChecksum()), (proto.hasCachingStrategy() ? getCachingStrategy(proto.getCachingStrategy()) : CachingStrategy.newDefaultStrategy()), (proto.hasAllowLazyPersist() ? proto.getAllowLazyPersist() : false), (proto.hasPinning() ? proto.getPinning(): false), (PBHelper.convertBooleanList(proto.getTargetPinningsList()))); } finally { if (traceScope != null) traceScope.close(); } }
/** Receive OP_WRITE_BLOCK */ private void opWriteBlock(DataInputStream in) throws IOException { final OpWriteBlockProto proto = OpWriteBlockProto.parseFrom(vintPrefixed(in)); final DatanodeInfo[] targets = PBHelper.convert(proto.getTargetsList()); TraceScope traceScope = continueTraceSpan(proto.getHeader(), proto.getClass().getSimpleName()); try { writeBlock(PBHelper.convert(proto.getHeader().getBaseHeader().getBlock()), PBHelper.convertStorageType(proto.getStorageType()), PBHelper.convert(proto.getHeader().getBaseHeader().getToken()), proto.getHeader().getClientName(), targets, PBHelper.convertStorageTypes(proto.getTargetStorageTypesList(), targets.length), PBHelper.convert(proto.getSource()), fromProto(proto.getStage()), proto.getPipelineSize(), proto.getMinBytesRcvd(), proto.getMaxBytesRcvd(), proto.getLatestGenerationStamp(), fromProto(proto.getRequestedChecksum()), (proto.hasCachingStrategy() ? getCachingStrategy(proto.getCachingStrategy()) : CachingStrategy.newDefaultStrategy()), (proto.hasAllowLazyPersist() ? proto.getAllowLazyPersist() : false), (proto.hasPinning() ? proto.getPinning(): false), (PBHelper.convertBooleanList(proto.getTargetPinningsList()))); } finally { if (traceScope != null) traceScope.close(); } }