Interface TimelineServerView

    • Method Detail

      • getTimeline

        Optional<? extends org.apache.druid.timeline.TimelineLookup<String,​ServerSelector>> getTimeline​(org.apache.druid.query.planning.DataSourceAnalysis analysis)
        Returns the timeline for a datasource, if it exists. The analysis object passed in must represent a scan-based datasource of a single table.
        Parameters:
        analysis - data source analysis information
        Returns:
        timeline, if it exists
        Throws:
        IllegalStateException - if 'analysis' does not represent a scan-based datasource of a single table
      • getQueryRunner

        <T> org.apache.druid.query.QueryRunner<T> getQueryRunner​(DruidServer server)
      • registerTimelineCallback

        void registerTimelineCallback​(Executor exec,
                                      TimelineServerView.TimelineCallback callback)
        Register a callback for state changes in the timeline managed by this TimelineServerView. The callback will be called after the relevant change is made to this TimelineServerView's timeline.
        Parameters:
        exec - executor in which to run the callback
        callback - the callback