Modifier and Type | Method and Description |
---|---|
static Date |
Date.of(int year,
int month,
int dayOfMonth) |
static Date |
Date.ofEpochDay(int epochDay) |
static Date |
Date.ofEpochMilli(long epochMilli) |
static Date |
Date.valueOf(String s) |
Modifier and Type | Method and Description |
---|---|
int |
Date.compareTo(Date o) |
static TimestampTZ |
TimestampTZUtil.convert(Date date,
ZoneId defaultTimeZone) |
Constructor and Description |
---|
Date(Date d) |
Modifier and Type | Method and Description |
---|---|
protected Date |
GenericUDF.getDateValue(GenericUDF.DeferredObject[] arguments,
int i,
PrimitiveObjectInspector.PrimitiveCategory[] inputTypes,
ObjectInspectorConverters.Converter[] converters) |
protected Date |
GenericUDFLastDay.lastDay(Date d) |
protected Date |
GenericUDFNextDay.nextDay(Date d,
int dayOfWeek) |
Modifier and Type | Method and Description |
---|---|
protected DateWritableV2 |
GenericUDFOPDTIMinus.handleDateResult(Date result) |
protected DateWritableV2 |
GenericUDFOPDTIPlus.handleDateResult(Date result) |
protected Date |
GenericUDFLastDay.lastDay(Date d) |
protected Date |
GenericUDFNextDay.nextDay(Date d,
int dayOfWeek) |
Modifier and Type | Method and Description |
---|---|
Date |
DateTimeMath.add(Date dt,
HiveIntervalYearMonth interval) |
Date |
DateTimeMath.add(HiveIntervalYearMonth interval,
Date dt) |
Date |
DateTimeMath.subtract(Date left,
HiveIntervalYearMonth right) |
Modifier and Type | Method and Description |
---|---|
Date |
DateTimeMath.add(Date dt,
HiveIntervalYearMonth interval) |
boolean |
DateTimeMath.add(Date dt,
HiveIntervalYearMonth interval,
Date result) |
Date |
DateTimeMath.add(HiveIntervalYearMonth interval,
Date dt) |
boolean |
DateTimeMath.add(HiveIntervalYearMonth interval,
Date dt,
Date result) |
Date |
DateTimeMath.subtract(Date left,
HiveIntervalYearMonth right) |
boolean |
DateTimeMath.subtract(Date left,
HiveIntervalYearMonth right,
Date result) |
Modifier and Type | Method and Description |
---|---|
static Date |
RandomTypeUtil.getRandDate(Random r) |
Modifier and Type | Method and Description |
---|---|
void |
BinarySortableSerializeWrite.writeDate(Date date) |
Modifier and Type | Method and Description |
---|---|
void |
SerializeWrite.writeDate(Date date) |
Modifier and Type | Method and Description |
---|---|
Date |
DateWritableV2.get() |
static Date |
DateWritableV2.timeToDate(long seconds) |
Modifier and Type | Method and Description |
---|---|
static int |
DateWritableV2.dateToDays(Date d) |
void |
DateWritableV2.set(Date d)
Set the DateWritableV2 based on the year/month/day of the date in the local timezone.
|
Constructor and Description |
---|
DateWritableV2(Date d) |
Modifier and Type | Method and Description |
---|---|
void |
LazySimpleSerializeWrite.writeDate(Date date) |
Modifier and Type | Method and Description |
---|---|
Date |
LazyDateObjectInspector.getPrimitiveJavaObject(Object o) |
Modifier and Type | Method and Description |
---|---|
void |
LazyBinarySerializeWrite.writeDate(Date date) |
Modifier and Type | Method and Description |
---|---|
Date |
JavaDateObjectInspector.get(Object o) |
static Date |
PrimitiveObjectInspectorUtils.getDate(Object o,
PrimitiveObjectInspector oi) |
Date |
DateObjectInspector.getPrimitiveJavaObject(Object o) |
Date |
JavaDateObjectInspector.getPrimitiveJavaObject(Object o) |
Date |
WritableDateObjectInspector.getPrimitiveJavaObject(Object o) |
Modifier and Type | Method and Description |
---|---|
Object |
SettableDateObjectInspector.create(Date d) |
Object |
JavaDateObjectInspector.create(Date value) |
Object |
WritableDateObjectInspector.create(Date d) |
Object |
SettableDateObjectInspector.set(Object o,
Date d) |
Object |
JavaDateObjectInspector.set(Object o,
Date value) |
Object |
WritableDateObjectInspector.set(Object o,
Date d) |
Constructor and Description |
---|
JavaConstantDateObjectInspector(Date value) |
Modifier and Type | Method and Description |
---|---|
Date |
DateParser.parseDate(String strValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
DateParser.parseDate(String strValue,
Date result) |
Modifier and Type | Method and Description |
---|---|
Date |
HCatRecord.getDate(String fieldName,
HCatSchema recordSchema) |
Modifier and Type | Method and Description |
---|---|
void |
HCatRecord.setDate(String fieldName,
HCatSchema recordSchema,
Date value)
Note that the proper way to construct a java.sql.Date for use with this object is
Date.valueOf("1999-12-31").
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.