Ejemplo n.º 1
0
 public void set(TimestampWritable t) {
   if (t.bytesEmpty) {
     set(t.getTimestamp());
     return;
   }
   if (t.currentBytes == t.externalBytes) {
     set(t.currentBytes, t.offset);
   } else {
     set(t.currentBytes, 0);
   }
 }
Ejemplo n.º 2
0
 public TimestampWritable(byte[] bytes, int offset) {
   set(bytes, offset);
 }
Ejemplo n.º 3
0
 public TimestampWritable(Timestamp t) {
   set(t);
 }