public static enum HdfsProtos.ChecksumTypeProto extends Enum<HdfsProtos.ChecksumTypeProto> implements com.google.protobuf.ProtocolMessageEnum
hadoop.hdfs.ChecksumTypeProto
Checksum algorithms/types used in HDFS Make sure this enum's integer values match enum values' id properties defined in org.apache.hadoop.util.DataChecksum.Type
Enum Constant and Description |
---|
CHECKSUM_CRC32
CHECKSUM_CRC32 = 1; |
CHECKSUM_CRC32C
CHECKSUM_CRC32C = 2; |
CHECKSUM_NULL
CHECKSUM_NULL = 0; |
Modifier and Type | Field and Description |
---|---|
static int |
CHECKSUM_CRC32_VALUE
CHECKSUM_CRC32 = 1; |
static int |
CHECKSUM_CRC32C_VALUE
CHECKSUM_CRC32C = 2; |
static int |
CHECKSUM_NULL_VALUE
CHECKSUM_NULL = 0; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HdfsProtos.ChecksumTypeProto> |
internalGetValueMap() |
static HdfsProtos.ChecksumTypeProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HdfsProtos.ChecksumTypeProto |
valueOf(int value) |
static HdfsProtos.ChecksumTypeProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsProtos.ChecksumTypeProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsProtos.ChecksumTypeProto CHECKSUM_NULL
CHECKSUM_NULL = 0;
public static final HdfsProtos.ChecksumTypeProto CHECKSUM_CRC32
CHECKSUM_CRC32 = 1;
public static final HdfsProtos.ChecksumTypeProto CHECKSUM_CRC32C
CHECKSUM_CRC32C = 2;
public static final int CHECKSUM_NULL_VALUE
CHECKSUM_NULL = 0;
public static final int CHECKSUM_CRC32_VALUE
CHECKSUM_CRC32 = 1;
public static final int CHECKSUM_CRC32C_VALUE
CHECKSUM_CRC32C = 2;
public static HdfsProtos.ChecksumTypeProto[] values()
for (HdfsProtos.ChecksumTypeProto c : HdfsProtos.ChecksumTypeProto.values()) System.out.println(c);
public static HdfsProtos.ChecksumTypeProto valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static HdfsProtos.ChecksumTypeProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HdfsProtos.ChecksumTypeProto> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HdfsProtos.ChecksumTypeProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013 Apache Software Foundation. All rights reserved.