示例#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);
   }
 }
示例#2
0
 public TimestampWritable(byte[] bytes, int offset) {
   set(bytes, offset);
 }
示例#3
0
 public TimestampWritable(Timestamp t) {
   set(t);
 }