Object converted_o0 = timestampConverter.convert(o0); if (converted_o0 == null) { return null;
case TIMESTAMP: Timestamp ts = ((TimestampWritable) timestampConverter.convert(arguments[0].get())).getTimestamp(); date = ts; break;
case TIMESTAMP: Timestamp ts = ((TimestampWritableV2) timestampConverter.convert(arguments[0].get())).getTimestamp(); d = Date.ofEpochMilli(ts.toEpochMilli()); break;
Timestamp ts = ((TimestampWritable) timestampConverter.convert(arguments[0].get())) .getTimestamp(); date = ts;
break; case TIMESTAMP: Timestamp ts = ((TimestampWritable) timestampConverter.convert(arguments[0].get())) .getTimestamp(); output.set(formatter.format(ts));
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Object o0 = arguments[0].get(); if (o0 == null) { return null; } Object o1 = arguments[1].get(); if (o1 == null) { return null; } String tzStr = textConverter.convert(o1).toString(); TimeZone timezone = TimeZone.getTimeZone(tzStr); Timestamp timestamp = ((TimestampWritable) timestampConverter.convert(o0)) .getTimestamp(); int offset = timezone.getOffset(timestamp.getTime()); if (invert()) { offset = -offset; } return applyOffset(offset, timestamp); }
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Object o0 = arguments[0].get(); if (o0 == null) { return null; } return tc.convert(o0); }
Timestamp ts = ((TimestampWritable) timestampConverter.convert(arguments[0].get())) .getTimestamp(); output.set(DateWritable.millisToDays(ts.getTime()));
Object converted_o0 = timestampConverter.convert(o0); if (converted_o0 == null) { return null;
Timestamp ts = ((TimestampWritableV2) timestampConverter.convert(arguments[0].get())) .getTimestamp(); output.set(DateWritableV2.millisToDays(ts.toEpochMilli()));
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Object o0 = arguments[0].get(); if (o0 == null) { return null; } return tc.convert(o0); }
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Object o0 = arguments[0].get(); if (o0 == null) { return null; } return tc.convert(o0); }