/** * Sets {@link Query#getIntervals()} of the given query as dimension. */ @PublicApi void interval(QueryType query);
public CuratorDruidLeaderSelector(CuratorFramework curator, @Self DruidNode self, String latchPath) { this.curator = curator; this.self = self; this.latchPath = latchPath; }
@ExtensionPoint public interface GenericColumnSerializer extends Serializer { void open() throws IOException; void serialize(Object obj) throws IOException; }
/** * Sets the number of metrics of the given timeseries query as dimension. */ @PublicApi void numMetrics(TimeseriesQuery query);
/** */ @ExtensionPoint public interface ComplexMetricExtractor { Class<?> extractedClass(); Object extractValue(InputRow inputRow, String metricName); }
/** */ @PublicApi public interface MetricManipulationFn { Object manipulate(AggregatorFactory factory, Object object); }
@ExtensionPoint public interface QueryRunner<T> { /** * Runs the given query and returns results in a time-ordered sequence. */ Sequence<T> run(QueryPlus<T> queryPlus, Map<String, Object> responseContext); }
@PublicApi public interface Provisioner { boolean doTerminate(); boolean doProvision(); ScalingStats getStats(); }
/** * Sets {@link TopNQuery#getThreshold()} of the given query as dimension. */ @PublicApi void threshold(TopNQuery query);
/** * Sets {@link TopNQuery#getDimensionSpec()}.{@link io.druid.query.dimension.DimensionSpec#getDimension() * getDimension()} of the given query as dimension. */ @PublicApi void dimension(TopNQuery query);
/** * Sets the number of metrics of the given topN query as dimension. */ @PublicApi void numMetrics(TopNQuery query);
/** * Sets the granularity of {@link TopNQuery#getGranularity()} of the given query as dimension. */ @PublicApi void granularity(TopNQuery query);
/** * This method is called exactly once with each cursor, processed for the query. */ @PublicApi void cursor(Cursor cursor);
/** * Sets {@link Query#getDataSource()} of the given query as dimension. */ @PublicApi void dataSource(QueryType query);
/** * Sets {@link Query#hasFilters()} of the given query as dimension. */ @PublicApi void hasFilters(QueryType query);
/** * Sets the number of "complex" metrics of the given timeseries query as dimension. By default it is assumed that * "complex" metric is a metric of not long or double type, but it could be redefined in the implementation of this * method. */ @PublicApi void numComplexMetrics(TimeseriesQuery query);
/** * Sets {@link Query#getDuration()} of the given query as dimension. */ @PublicApi void duration(QueryType query);
/** */ @PublicApi public interface BySegmentResultValue<T> { List<T> getResults(); String getSegmentId(); Interval getInterval(); }
/** * This method is called exactly once with the columnValueSelector object of each cursor, processed for the query. */ @PublicApi void columnValueSelector(ColumnValueSelector columnValueSelector);
/** * Sets the number of "complex" metrics of the given groupBy query as dimension. By default it is assumed that * "complex" metric is a metric of not long or double type, but it could be redefined in the implementation of this * method. */ @PublicApi void numComplexMetrics(GroupByQuery query);