Package co.cask.cdap.data.stream.TimePartitionedStreamFileWriter

Examples of co.cask.cdap.data.stream.TimePartitionedStreamFileWriter.TimePartition


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


      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }

      TimePartition other = (TimePartition) o;
      return startTimestamp == other.startTimestamp;
    }
View Full Code Here

TOP

Related Classes of co.cask.cdap.data.stream.TimePartitionedStreamFileWriter.TimePartition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.