/** * Gets a new time uuid based on <code>time<code>. * NOTE: this algorithm does not resolve duplicates. To avoid duplicates use * {@link getTimeUUID(ClockResolution clock)} with an implementaion that provides unique timestamp resolution, like * {@link MicrosecondsSyncClockResolution} * It is useful to use in a TimeUUIDType sorted column family. * * @param clock a ClockResolution * @return the time uuid */ public static java.util.UUID getTimeUUID(long time) { return new java.util.UUID(createTime(time), UUIDGen.getClockSeqAndNode()); }
/** * Gets a new time uuid based on <code>time<code>. * NOTE: this algorithm does not resolve duplicates. To avoid duplicates use * {@link getTimeUUID(ClockResolution clock)} with an implementaion that provides unique timestamp resolution, like * {@link MicrosecondsSyncClockResolution} * It is useful to use in a TimeUUIDType sorted column family. * * @param clock a ClockResolution * @return the time uuid */ public static java.util.UUID getTimeUUID(long time) { return new java.util.UUID(createTime(time), UUIDGen.getClockSeqAndNode()); }
/** * Gets a new time uuid based on <code>time<code>. * NOTE: this algorithm does not resolve duplicates. To avoid duplicates use * {@link getTimeUUID(ClockResolution clock)} with an implementaion that provides unique timestamp resolution, like * {@link MicrosecondsSyncClockResolution} * It is useful to use in a TimeUUIDType sorted column family. * * @param clock a ClockResolution * @return the time uuid */ public static java.util.UUID getTimeUUID(long time) { return new java.util.UUID(createTime(time), UUIDGen.getClockSeqAndNode()); }