public enum ValueSerdeFactory extends Enum<ValueSerdeFactory> implements ValueSerde
ValueSerde
.Enum Constant and Description |
---|
BOOLEAN
|
BYTE
|
DATE
|
DATETIME
|
DECIMAL
|
DOUBLE
|
FLOAT
|
INT
|
LONG
|
SHORT
|
STRING
|
Modifier and Type | Method and Description |
---|---|
static ValueSerdeFactory |
fromClass(Class<?> aClass)
Returns a
ValueSerde for the specified ValueOption class. |
static ValueSerde |
getChar(int length)
StringOption as char . |
static ValueSerde |
getDecimal(int precision,
int scale)
DecimalOption with precision, scale. |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getInspector()
Returns an
ObjectInspector . |
org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
getTypeInfo()
Returns the type info.
|
Class<? extends ValueOption<?>> |
getValueClass()
Returns the
ValueOption class. |
static ValueSerde |
getVarchar(int length)
StringOption as varchar . |
static ValueSerdeFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueSerdeFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getDriver
public static final ValueSerdeFactory BOOLEAN
public static final ValueSerdeFactory BYTE
public static final ValueSerdeFactory SHORT
public static final ValueSerdeFactory INT
public static final ValueSerdeFactory LONG
public static final ValueSerdeFactory FLOAT
public static final ValueSerdeFactory DOUBLE
public static final ValueSerdeFactory DECIMAL
public static final ValueSerdeFactory STRING
public static final ValueSerdeFactory DATE
public static final ValueSerdeFactory DATETIME
public static ValueSerdeFactory[] values()
for (ValueSerdeFactory c : ValueSerdeFactory.values()) System.out.println(c);
public static ValueSerdeFactory 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 org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo()
ValueSerde
getTypeInfo
in interface ValueSerde
public Class<? extends ValueOption<?>> getValueClass()
ValueSerde
ValueOption
class.getValueClass
in interface ValueSerde
ValueOption
classpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getInspector()
ValueSerde
ObjectInspector
.getInspector
in interface ValueSerde
ObjectInspector
public static ValueSerde getChar(int length)
StringOption
as char
.length
- the character string lengthpublic static ValueSerde getVarchar(int length)
StringOption
as varchar
.length
- the character string lengthpublic static ValueSerde getDecimal(int precision, int scale)
DecimalOption
with precision, scale.precision
- the decimal precisionscale
- the decimal scalepublic static ValueSerdeFactory fromClass(Class<?> aClass)
ValueSerde
for the specified ValueOption
class.aClass
- the target ValueOption
class.ValueSerde
for the target ValueOption
class,
or null
if the target class has no ValueSerde
objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.