public void updateTimestamp(String feedID, long startTime, long endTime) {
PartitionTimestamps ts = timestamps.get(feedID);
if (ts == null) {
timestamps.put(feedID, new PartitionTimestamps(startTime,endTime));
} else {
ts.merge(startTime,endTime);
}
}
public void updateTimestamp(String feedID, PartitionTimestamps originalTs) {
PartitionTimestamps ts = timestamps.get(feedID);