@Test public void testUuidToLongNull() { logger.debug("Test to converUuidToLong with null value"); Long testLongNull = PrimaryIndexBucketLocatorImpl.convertUuidToLong(null); assertTrue("null values sent is not null", testLongNull == null); }
protected static Long convertUuidToLong(UUID uuid) { if (uuid == null) { return null; } Long convertedUuid; if (uuid.version() == 1) { convertedUuid = uuid.timestamp(); } else { convertedUuid = uuid.getMostSignificantBits(); } return convertedUuid; }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertUuidToLong(UUID uuid) { if (uuid == null) { return null; } Long convertedUuid; if (uuid.version() == 1) { convertedUuid = uuid.timestamp(); } else { convertedUuid = uuid.getMostSignificantBits(); } return convertedUuid; } }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertUuidToLong(UUID uuid) { if (uuid == null) { return null; } Long convertedUuid; if (uuid.version() == 1) { convertedUuid = uuid.timestamp(); } else { convertedUuid = uuid.getMostSignificantBits(); } return convertedUuid; } private  PrimaryIndexBucketLocatorImpl(); @Deprecated  PrimaryIndexBucketLocatorImpl(List<Long> textBuckets, List<Long> dateTimeBuckets,
            List<Long> doubleBuckets, List<Long> integerBuckets, List<Long> booleanBuckets,
            List<Long> uuidBuckets, List<Long> binaryBuckets, List<Long> longBuckets, List<Long> timepointBuckets); }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertUuidToLong(UUID uuid) { if (uuid == null) { return null; } Long convertedUuid; if (uuid.version() == 1) { convertedUuid = uuid.timestamp(); } else { convertedUuid = uuid.getMostSignificantBits(); } return convertedUuid; } private  PrimaryIndexBucketLocatorImpl(); @Deprecated  PrimaryIndexBucketLocatorImpl(List<Long> textBuckets, List<Long> dateTimeBuckets,
            List<Long> doubleBuckets, List<Long> integerBuckets, List<Long> booleanBuckets,
            List<Long> uuidBuckets, List<Long> binaryBuckets, List<Long> longBuckets, List<Long> timepointBuckets); static PrimaryIndexBucketLocatorImpl getInstance(); @Override Long getBucket(Object bucketingObject, FieldDataType dataType); static Long convertObjectToBucketingToken(Object toBeConverted, FieldDataType dataType); static List<Long>[] getBUCKETS(); }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertUuidToLong(UUID uuid) { if (uuid == null) { return null; } Long convertedUuid; if (uuid.version() == 1) { convertedUuid = uuid.timestamp(); } else { convertedUuid = uuid.getMostSignificantBits(); } return convertedUuid; } private  PrimaryIndexBucketLocatorImpl(); @Deprecated  PrimaryIndexBucketLocatorImpl(List<Long> textBuckets, List<Long> dateTimeBuckets,
            List<Long> doubleBuckets, List<Long> integerBuckets, List<Long> booleanBuckets,
            List<Long> uuidBuckets, List<Long> binaryBuckets, List<Long> longBuckets, List<Long> timepointBuckets); static PrimaryIndexBucketLocatorImpl getInstance(); @Override Long getBucket(Object bucketingObject, FieldDataType dataType); static Long convertObjectToBucketingToken(Object toBeConverted, FieldDataType dataType); static List<Long>[] getBUCKETS();  }