public Text evaluate(DateWritable d) { if (d == null) { return null; } else { t.set(d.toString()); return t; } }
private static String convertToString(org.apache.hadoop.hive.metastore.api.Date val) { if (val == null) { return ""; } DateWritable writableValue = new DateWritable((int) val.getDaysSinceEpoch()); return writableValue.toString(); }
writer.value(new DateWritable( (int) ((LongColumnVector) vector).vector[row]) .toString()); break; case TIMESTAMP:
public Text evaluate(DateWritable d) { if (d == null) { return null; } else { t.set(d.toString()); return t; } }
/** * Writes a Date in SQL date format to the output stream. * @param out * The output stream * @param i * The Date to write * @throws IOException */ public static void writeUTF8(OutputStream out, DateWritable d) throws IOException { ByteBuffer b = Text.encode(d.toString()); out.write(b.array(), 0, b.limit()); }
/** * Writes a Date in SQL date format to the output stream. * @param out * The output stream * @param i * The Date to write * @throws IOException */ public static void writeUTF8(OutputStream out, DateWritable d) throws IOException { ByteBuffer b = Text.encode(d.toString()); out.write(b.array(), 0, b.limit()); }
/** * Writes a Date in SQL date format to the output stream. * @param out * The output stream * @param i * The Date to write * @throws IOException */ public static void writeUTF8(OutputStream out, DateWritable d) throws IOException { ByteBuffer b = Text.encode(d.toString()); out.write(b.array(), 0, b.limit()); }
private static String convertToString(org.apache.hadoop.hive.metastore.api.Date val) { if (val == null) { return ""; } DateWritable writableValue = new DateWritable((int) val.getDaysSinceEpoch()); return writableValue.toString(); }
t.set(((DateObjectInspector) inputOI).getPrimitiveWritableObject(input).toString()); return t; case TIMESTAMP:
t.set(((DateObjectInspector) inputOI).getPrimitiveWritableObject(input).toString()); return t; case TIMESTAMP:
t.set(((DateObjectInspector) inputOI).getPrimitiveWritableObject(input).toString()); return t; case TIMESTAMP:
t.set(((DateObjectInspector) inputOI).getPrimitiveWritableObject(input).toString()); return t; case TIMESTAMP:
t.set(((DateObjectInspector) inputOI).getPrimitiveWritableObject(input).toString()); return t; case TIMESTAMP:
break; case DATE: result = ((DateObjectInspector) oi).getPrimitiveWritableObject(o).toString(); break; case TIMESTAMP:
break; case DATE: result = ((DateObjectInspector) oi).getPrimitiveWritableObject(o).toString(); break; case TIMESTAMP:
break; case DATE: result = ((DateObjectInspector) oi).getPrimitiveWritableObject(o).toString(); break; case TIMESTAMP:
case DATE: writer.value(new DateWritable( (int) ((LongColumnVector) vector).vector[row]).toString()); break; case TIMESTAMP: