Class SliceAssigners.TumblingSliceAssigner

    • Method Detail

      • assignSliceEnd

        public long assignSliceEnd​(long timestamp)
      • getLastWindowEnd

        public long getLastWindowEnd​(long sliceEnd)
        Description copied from interface: SliceAssigner
        Returns the last window which the slice belongs to. The window and slices are both identified by the end timestamp.
        Specified by:
        getLastWindowEnd in interface SliceAssigner
      • getWindowStart

        public long getWindowStart​(long windowEnd)
        Description copied from interface: SliceAssigner
        Returns the corresponding window start timestamp of the given window end timestamp.
        Specified by:
        getWindowStart in interface SliceAssigner
      • expiredSlices

        public Iterable<Long> expiredSlices​(long windowEnd)
        Description copied from interface: SliceAssigner
        Returns an iterator of slices to expire when the given window is emitted. The window and slices are both identified by the end timestamp.
        Specified by:
        expiredSlices in interface SliceAssigner
        Parameters:
        windowEnd - the end timestamp of window emitted.
      • getSliceEndInterval

        public long getSliceEndInterval()
        Description copied from interface: SliceAssigner
        Returns the interval of slice ends, i.e. the step size to advance of the slice end when a new slice assigned.
        Specified by:
        getSliceEndInterval in interface SliceAssigner