public boolean isCurrentPartition() {
return this.currentPartition;
}
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);
}
}