public static enum OrcFile.Version extends Enum<OrcFile.Version>
Thus, if you add new encodings or other non-forward compatible changes to ORC files, which prevent the old reader from reading the new format, you should change these variable to reflect the next Hive release number. Non-forward compatible changes should never be added in patch releases.
Do not make any changes that break backwards compatibility, which would prevent the new reader from reading ORC files generated by any released version of Hive.
| 枚举常量和说明 |
|---|
FUTURE
The generic identifier for all unknown versions.
|
UNSTABLE_PRE_2_0
Do not use this format except for testing.
|
V_0_11 |
V_0_12 |
| 限定符和类型 | 字段和说明 |
|---|---|
static OrcFile.Version |
CURRENT |
| 限定符和类型 | 方法和说明 |
|---|---|
static OrcFile.Version |
byName(String name) |
int |
getMajor()
Get the major version number.
|
int |
getMinor()
Get the minor version number.
|
String |
getName()
Get the human readable name for the version.
|
static OrcFile.Version |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static OrcFile.Version[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final OrcFile.Version V_0_11
public static final OrcFile.Version V_0_12
public static final OrcFile.Version UNSTABLE_PRE_2_0
When 2.0 is released, this version identifier will be completely removed.
public static final OrcFile.Version FUTURE
public static final OrcFile.Version CURRENT
public static OrcFile.Version[] values()
for (OrcFile.Version c : OrcFile.Version.values()) System.out.println(c);
public static OrcFile.Version valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static OrcFile.Version byName(String name)
public String getName()
public int getMajor()
public int getMinor()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.