Class FlushingPlumber

    • Constructor Detail

      • FlushingPlumber

        public FlushingPlumber​(org.joda.time.Duration flushDuration,
                               DataSchema schema,
                               RealtimeTuningConfig config,
                               FireDepartmentMetrics metrics,
                               org.apache.druid.java.util.emitter.service.ServiceEmitter emitter,
                               org.apache.druid.query.QueryRunnerFactoryConglomerate conglomerate,
                               DataSegmentAnnouncer segmentAnnouncer,
                               org.apache.druid.query.QueryProcessingPool queryProcessingPool,
                               org.apache.druid.segment.join.JoinableFactory joinableFactory,
                               org.apache.druid.segment.IndexMerger indexMerger,
                               org.apache.druid.segment.IndexIO indexIO,
                               Cache cache,
                               CacheConfig cacheConfig,
                               CachePopulatorStats cachePopulatorStats,
                               com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • startJob

        public Object startJob()
        Description copied from interface: Plumber
        Perform any initial setup. Should be called before using any other methods, and should be paired with a corresponding call to Plumber.finishJob().
        Specified by:
        startJob in interface Plumber
        Overrides:
        startJob in class RealtimePlumber
        Returns:
        the metadata of the "newest" segment that might have previously been persisted
      • flushAfterDuration

        protected void flushAfterDuration​(long truncatedTime,
                                          Sink sink)
      • finishJob

        public void finishJob()
        Description copied from interface: Plumber
        Perform any final processing and clean up after ourselves. Should be called after all data has been fed into sinks and persisted.
        Specified by:
        finishJob in interface Plumber
        Overrides:
        finishJob in class RealtimePlumber