@Override public byte[] newKey() { return Longs.toByteArray(tg.getInvertedTimestamp()); } }
/** * Return an inverted timestamp accurate to nanoseconds. * Never returns the same one twice given an accurate clock. * * @return */ public long getInvertedTimestamp() { return getInvertedTimestamp(getTimestamp()); }
long l = createType == CreateType.TIMESTAMP ? TIMESTAMP_GENERATOR.getTimestamp() : TIMESTAMP_GENERATOR.getInvertedTimestamp(); row = Bytes.toBytes(l); } while (!put(row, value, 0));