Package org.apache.orc
Enum Class OrcFile.Version
- All Implemented Interfaces:
Serializable
,Comparable<OrcFile.Version>
,Constable
- Enclosing class:
- OrcFile
Create a version number for the ORC file format, so that we can add
non-forward compatible changes in the future. To make it easier for users
to understand the version numbers, we use the Hive release number that
first wrote that version of ORC files.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe generic identifier for all unknown versions.Do not use this format except for testing. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrcFile.Version
int
getMajor()
Get the major version number.int
getMinor()
Get the minor version number.getName()
Get the human readable name for the version.static OrcFile.Version
Returns the enum constant of this class with the specified name.static OrcFile.Version[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V_0_11
-
V_0_12
-
UNSTABLE_PRE_2_0
Do not use this format except for testing. It will not be compatible with other versions of the software. While we iterate on the ORC 2.0 format, we will make incompatible format changes under this version without providing any forward or backward compatibility. When 2.0 is released, this version identifier will be completely removed. -
FUTURE
The generic identifier for all unknown versions.
-
-
Field Details
-
CURRENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
byName
-
getName
Get the human readable name for the version. -
getMajor
public int getMajor()Get the major version number. -
getMinor
public int getMinor()Get the minor version number.
-