Class CountSyncPolicy

    • Constructor Detail

      • CountSyncPolicy

        public CountSyncPolicy​(int count)
    • Method Detail

      • mark

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

        public void reset()
        Description copied from interface: SyncPolicy
        Called after the HdfsBolt performs a sync.
        Specified by:
        reset in interface SyncPolicy