public class HiveShims extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveShims.serdeConstants
This class is supplied for compatibility between Hive versions.
|
| Constructor and Description |
|---|
HiveShims() |
| Modifier and Type | Method and Description |
|---|---|
static Long |
getPrimitiveEpoch(Object prim,
TimeZone tz)
Classes o.a.h.h.common.type Date and Timestamp were introduced in Hive-3.1 version.
|
static void |
setDateWritable(Object dwHive,
Date jsd)
Type DATE was introduced in Hive-0.12 - class DateWritable in API.
|
static void |
setDateWritable(Object dwHive,
long epoch,
TimeZone tz)
Type DATE was introduced in Hive-0.12 - class DateWritable in API.
|
static void |
setTimeWritable(Object twHive,
long epoch)
Type TIMESTAMP was introduced in Hive-0.12 - class TimestampWritable in API.
|
static void |
setTimeWritable(Object twHive,
Timestamp jst)
Type TIMESTAMP was introduced in Hive-0.12 - class TimestampWritable in API.
|
public static Long getPrimitiveEpoch(Object prim, TimeZone tz)
public static void setDateWritable(Object dwHive, long epoch, TimeZone tz)
public static void setDateWritable(Object dwHive, Date jsd)
public static void setTimeWritable(Object twHive, long epoch)
Copyright © 2022 The Apache Software Foundation. All rights reserved.