Code example for Timestamp

Methods: getTime

0
  public Timestamp get(Object o) {
    return (Timestamp) o;
  } 
 
  public Object set(Object o, Timestamp value) {
    ((Timestamp) o).setTime(value.getTime());
    return o;
  } 
 
  public Object set(Object o, byte[] bytes, int offset) {
    TimestampWritable.setTimestamp((Timestamp) o, bytes, offset);
    return o;
  } 
 
  public Object set(Object o, TimestampWritable tw) {
    Timestamp t = (Timestamp) o;
    t.setTime(tw.getTimestamp().getTime());
    t.setNanos(tw.getTimestamp().getNanos());
    return t;
  }