Interface QuerySegmentWalker


  • public interface QuerySegmentWalker
    An interface for query-handling entry points.
    • Method Detail

      • getQueryRunnerForIntervals

        <T> QueryRunner<T> getQueryRunnerForIntervals​(Query<T> query,
                                                      Iterable<org.joda.time.Interval> intervals)
        Gets the Queryable for a given interval, the Queryable returned can be any version(s) or partitionNumber(s) such that it represents the interval.
        Type Parameters:
        T - query result type
        Parameters:
        query - the query to find a Queryable for
        intervals - the intervals to find a Queryable for
        Returns:
        a Queryable object that represents the interval
      • getQueryRunnerForSegments

        <T> QueryRunner<T> getQueryRunnerForSegments​(Query<T> query,
                                                     Iterable<SegmentDescriptor> specs)
        Gets the Queryable for a given list of SegmentDescriptors. The descriptors are expected to apply to the base datasource involved in the query, i.e. the one returned by:
           DataSourceAnalysis.forDataSource(query.getDataSource()).getBaseDataSource()
         
        Type Parameters:
        T - the query result type
        Parameters:
        query - the query to return a Queryable for
        specs - the list of SegmentSpecs to find a Queryable for
        Returns:
        the Queryable object with the given SegmentSpecs