@Test public void testConvertDateToBucketingLong() throws Exception { Date result = ParseUtils.parseStringAsDate("Sun, 15 Jun 2014 22:31:42 GMT"); long time1 = PrimaryIndexBucketLocatorImpl.convertDateToBucketingLong(result); long time2 = PrimaryIndexBucketLocatorImpl.convertDateToBucketingLong(new SimpleDateFormat("MM/dd/yyyy HH:mm:ss z").parse("06/15/2014 22:31:42 GMT")); assertTrue("the times are not equal", time1 == time2); }
protected static Long convertDateToBucketingLong(Date dateToBeConverted) { if (dateToBeConverted == null) { return null; } return dateToBeConverted.getTime(); }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertDateToBucketingLong(Date dateToBeConverted) { if (dateToBeConverted == null) { return null; } return dateToBeConverted.getTime(); } }
PrimaryIndexBucketLocatorImpl implements BucketLocator { protected static Long convertDateToBucketingLong(Date dateToBeConverted) { if (dateToBeConverted == null) { return null; } return dateToBeConverted.getTime(); } 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 convertDateToBucketingLong(Date dateToBeConverted) { if (dateToBeConverted == null) { return null; } return dateToBeConverted.getTime(); } 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 convertDateToBucketingLong(Date dateToBeConverted) { if (dateToBeConverted == null) { return null; } return dateToBeConverted.getTime(); } 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();  }