Package org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto

Examples of org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto.ChecksumType


    return OpWriteBlockProto.BlockConstructionStage.valueOf(
        stage.name());
  }

  public static ChecksumProto toProto(DataChecksum checksum) {
    ChecksumType type = checksumTypeMap.get(checksum.getChecksumType());
    if (type == null) {
      throw new IllegalArgumentException(
          "Can't convert checksum to protobuf: " + checksum);
    }
View Full Code Here


    return OpWriteBlockProto.BlockConstructionStage.valueOf(
        stage.name());
  }

  public static ChecksumProto toProto(DataChecksum checksum) {
    ChecksumType type = ChecksumType.valueOf(checksum.getChecksumType().name());
    if (type == null) {
      throw new IllegalArgumentException(
          "Can't convert checksum to protobuf: " + checksum);
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto.ChecksumType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.