public static enum BlockMasterInfo._Fields extends Enum<BlockMasterInfo._Fields> implements org.apache.thrift.TFieldIdEnum
Enum Constant and Description |
---|
CAPACITY_BYTES |
CAPACITY_BYTES_ON_TIERS |
FREE_BYTES |
LIVE_WORKER_NUM |
LOST_WORKER_NUM |
USED_BYTES |
USED_BYTES_ON_TIERS |
Modifier and Type | Method and Description |
---|---|
static BlockMasterInfo._Fields |
findByName(String name)
Find the _Fields constant that matches name, or null if its not found.
|
static BlockMasterInfo._Fields |
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
|
static BlockMasterInfo._Fields |
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception
if it is not found.
|
String |
getFieldName() |
short |
getThriftFieldId() |
static BlockMasterInfo._Fields |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockMasterInfo._Fields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockMasterInfo._Fields CAPACITY_BYTES
public static final BlockMasterInfo._Fields CAPACITY_BYTES_ON_TIERS
public static final BlockMasterInfo._Fields FREE_BYTES
public static final BlockMasterInfo._Fields LIVE_WORKER_NUM
public static final BlockMasterInfo._Fields LOST_WORKER_NUM
public static final BlockMasterInfo._Fields USED_BYTES
public static final BlockMasterInfo._Fields USED_BYTES_ON_TIERS
public static BlockMasterInfo._Fields[] values()
for (BlockMasterInfo._Fields c : BlockMasterInfo._Fields.values()) System.out.println(c);
public static BlockMasterInfo._Fields 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 static BlockMasterInfo._Fields findByThriftId(int fieldId)
public static BlockMasterInfo._Fields findByThriftIdOrThrow(int fieldId)
public static BlockMasterInfo._Fields findByName(String name)
public short getThriftFieldId()
getThriftFieldId
in interface org.apache.thrift.TFieldIdEnum
public String getFieldName()
getFieldName
in interface org.apache.thrift.TFieldIdEnum
Copyright © 2023. All Rights Reserved.