Class LastGroupByPerEventOutputRateLimiter

  • All Implemented Interfaces:
    PartitionCreationListener

    public class LastGroupByPerEventOutputRateLimiter
    extends OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>
    Implementation of OutputRateLimiter which will collect pre-defined number of events and the emit only the last event. This implementation specifically handle queries with group by.
    • Constructor Detail

      • LastGroupByPerEventOutputRateLimiter

        public LastGroupByPerEventOutputRateLimiter​(String id,
                                                    Integer value)
    • Method Detail

      • init

        protected StateFactory<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState> init()
        Specified by:
        init in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>
      • process

        public void process​(ComplexEventChunk complexEventChunk)
        Specified by:
        process in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>
      • partitionCreated

        public void partitionCreated()
        Description copied from interface: PartitionCreationListener
        Get called when partition is created