TimeDatum extends Datum { public String toString() { return asChars(); } TimeDatum(long time); TimeMeta toTimeMeta(); int getHourOfDay(); int getMinuteOfHour(); int getSecondOfMinute(); int getMillisOfSecond(); String toString(); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override String asChars(); String asChars(TimeZone timeZone, boolean includeTimeZone); String toString(TimeZone timeZone, boolean includeTimeZone); @Override int size(); @Override byte [] asByteArray(); @Override Datum plus(Datum datum); @Override Datum minus(Datum datum); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum); @Override boolean equals(Object obj); @Override int hashCode(); static final int SIZE; }
@Test public final void testAsTextBytes() { Datum d = DatumFactory.createTime(TIME); assertArrayEquals(d.toString().getBytes(), d.asTextBytes()); }