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.
Enum Constant and Description |
---|
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 |
Modifier and Type | Field and Description |
---|---|
static OrcFile.Version |
CURRENT |
Modifier and Type | Method and Description |
---|---|
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)
Returns the enum constant of this type with the specified name.
|
static OrcFile.Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 OrcFile.Version byName(String name)
public String getName()
public int getMajor()
public int getMinor()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.