@Override
protected TimePartition getPartition(StreamEvent event) {
long eventPartitionStart = StreamUtils.getPartitionStartTime(event.getTimestamp(), partitionDuration);
if (eventPartitionStart != timePartition.getStartTimestamp()) {
timePartition = new TimePartition(eventPartitionStart);
}
return timePartition;
}