Class TimedRotationPolicy

    • Constructor Detail

      • TimedRotationPolicy

        protected TimedRotationPolicy​(long interval)
    • Method Detail

      • mark

        public boolean mark​(Tuple tuple,
                            long offset)
        Called for every tuple the HdfsBolt executes.
        Specified by:
        mark in interface FileRotationPolicy
        Parameters:
        tuple - The tuple executed.
        offset - current offset of file being written
        Returns:
        true if a file rotation should be performed
      • reset

        public void reset()
        Called after the HdfsBolt rotates a file.
        Specified by:
        reset in interface FileRotationPolicy
      • getInterval

        public long getInterval()