Package org.apache.orc
Enum Class OrcFile.WriterVersion
- All Implemented Interfaces:
Serializable
,Comparable<OrcFile.WriterVersion>
,Constable
- Enclosing class:
- OrcFile
Records the version of the writer in terms of which bugs have been fixed.
When you fix bugs in the writer (or make substantial changes) that don't
change the file format, add a new version here instead of Version.
The ids are assigned sequentially from 6 per a WriterImplementation so that
readers that predate ORC-202 treat the other writers correctly.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionfixed stripe/file maximum statistics and string statistics to use utf8 for min/max -
Method Summary
Modifier and TypeMethodDescriptionstatic OrcFile.WriterVersion
from
(OrcFile.WriterImplementation writer, int val) Convert the integer from OrcProto.PostScript.writerVersion to the enumeration with unknown versions being mapped to FUTURE.int
getId()
boolean
Does this file include the given fix or come from a different writer?static OrcFile.WriterVersion
Returns the enum constant of this class with the specified name.static OrcFile.WriterVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORIGINAL
-
HIVE_8732
-
HIVE_4243
fixed stripe/file maximum statistics and string statistics to use utf8 for min/max -
HIVE_12055
-
HIVE_13083
-
ORC_101
-
ORC_135
-
ORC_517
-
ORC_203
-
ORC_14
-
ORC_CPP_ORIGINAL
-
PRESTO_ORIGINAL
-
SCRITCHLEY_GO_ORIGINAL
-
TRINO_ORIGINAL
-
CUDF_ORIGINAL
-
FUTURE
-
-
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
-
getWriterImplementation
-
getId
public int getId() -
from
Convert the integer from OrcProto.PostScript.writerVersion to the enumeration with unknown versions being mapped to FUTURE.- Parameters:
writer
- the writer implementationval
- the serialized writer version- Returns:
- the corresponding enumeration value
-
includes
Does this file include the given fix or come from a different writer?- Parameters:
fix
- the required fix- Returns:
- true if the required fix is present
-