This commit is contained in:
2020-04-05 09:50:26 +02:00
parent 1ae4677799
commit 45f9e36a88

View File

@@ -108,22 +108,6 @@ public class LongToDateBucket {
return result; return result;
} }
// public String toDateIndexPrefix(final long epochMilli) {
//
// final Entry<Long, DatePrefixAndRange> value = datePrefixCache.floorEntry(epochMilli);
//
// String result;
// if (value == null || !value.getValue().contains(epochMilli)) {
// final DatePrefixAndRange newValue = toDatePrefixAndRange(epochMilli);
// datePrefixCache.put(newValue.getMinEpochMilli(), newValue);
// result = newValue.getDatePrefix();
// } else {
// result = value.getValue().getDatePrefix();
// }
//
// return result;
// }
/** /**
* only for tests, use toPartitionIds(final DateTimeRange dateRange,final * only for tests, use toPartitionIds(final DateTimeRange dateRange,final
* Collection<? extends PartitionId> availablePartitionIds) instead * Collection<? extends PartitionId> availablePartitionIds) instead