public enum ChunkType extends java.lang.Enum<ChunkType>
이 열거형은 두 가지 유형의 청크를 정의한다: CYCLE과 STEP. 각각의 열거형 상수는 해당 데이터 청크가 저장되는 테이블 이름을 나타내는
문자열 값을 가진다.
ChunkType cycleType = ChunkType.CYCLE;
String tableName = cycleType.getTableName(); // "cyclechunk_compressed_rawdata"
위의 예시에서, cycleType 변수는 ChunkType.CYCLE을 가리키며, 이를 통해 해당 청크 타입의 테이블 이름을 얻을 수 있다.
| Modifier and Type | Method and Description |
|---|---|
static ChunkType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChunkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChunkType CYCLE
public static final ChunkType STEP
public static ChunkType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ChunkType[] values()
for (ChunkType c : ChunkType.values()) System.out.println(c);