Modifier and Type | Method and Description |
---|---|
static Having |
DruidHavingBuilder.buildHaving(LogicalMetric metric,
ApiHaving having)
Create a list of NumericHavings for the values specified and OR them together.
|
static Having |
DruidHavingBuilder.buildMetricHaving(LogicalMetric metric,
Set<ApiHaving> havings)
Build a Having for all the having queries for a single metric, ANDing them together.
|
Modifier and Type | Method and Description |
---|---|
static Having |
DruidHavingBuilder.buildHavings(Map<LogicalMetric,Set<ApiHaving>> metricMap)
Build a having model that ANDs together having queries for each of the metrics.
|
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
MetricInstance.make()
Make the Logical Metric from the information in this MetricInstance.
|
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
ConstantMaker.make(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
LogicalMetric |
MetricMaker.make(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Make the metric.
|
LogicalMetric |
MetricMaker.make(String metricName,
List<String> dependentMetrics)
Deprecated.
logical metric needs more config-richness to not just configure metric name, but also metric long
name, description, etc. Use
MetricMaker.make(LogicalMetricInfo, List) instead. |
LogicalMetric |
MetricMaker.make(String metricName,
String dependentMetric)
Make the metric.
|
protected LogicalMetric |
RawAggregationMetricMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
FilteredAggregationMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
ConstantMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
SketchSetOperationMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Deprecated.
|
protected LogicalMetric |
ThetaSketchSetOperationMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
AggregationAverageMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
CardinalityMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentDimensions) |
protected LogicalMetric |
MetricMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Delegated to for actually making the metric.
|
protected LogicalMetric |
ArithmeticMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
RowNumMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
CountMaker.makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics) |
protected LogicalMetric |
MetricMaker.makeInner(String metricName,
List<String> dependentMetrics)
Deprecated.
logical metric needs more config-richness to not just configure metric name, but also metric long
name, description, etc. Use
MetricMaker.makeInner(LogicalMetricInfo, List) instead. |
protected LogicalMetric |
RowNumMaker.makeInner(String metricName,
List<String> dependentMetrics) |
Modifier and Type | Method and Description |
---|---|
default boolean |
ApiMetricName.isValidFor(Granularity granularity,
LogicalMetric logicalMetric)
Determine if this API Metric Name is valid for the given time grain.
|
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
LogicalMetricColumn.getLogicalMetric()
Getter for a logical metric.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MetricDictionary.add(LogicalMetric logicalMetric)
Add a logical metric to the dictionary.
|
Constructor and Description |
---|
LogicalMetricColumn(LogicalMetric metric)
Constructor.
|
LogicalMetricColumn(String name,
LogicalMetric metric)
Deprecated.
because LogicalMetricColumn is really only a thing for LogicalTable, so there's no reason for there
to be an alias on the LogicalMetric inside the LogicalTableSchema.
|
Constructor and Description |
---|
OrderByColumn(LogicalMetric metric,
SortDirection direction)
Constructor.
|
Constructor and Description |
---|
DataRequest(LogicalTable table,
Set<org.joda.time.Interval> intervals,
Collection<Set<ApiFilter>> filterSuperSet,
Set<LogicalMetric> metricSet,
Set<Dimension> groupByDimensionsSet,
Set<String> dataSourceNames,
boolean readCache,
String format)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<LogicalMetric> |
LogicalTable.getLogicalMetrics() |
Modifier and Type | Method and Description |
---|---|
List<LogicalTable> |
LogicalTableDictionary.findByLogicalMetric(LogicalMetric logicalMetric)
Get the logical tables for which the given logical metric is valid.
|
Modifier and Type | Method and Description |
---|---|
Set<LogicalMetric> |
QueryPlanningConstraint.getLogicalMetrics() |
Constructor and Description |
---|
QueryPlanningConstraint(Set<Dimension> requestDimensions,
Set<Dimension> filterDimensions,
Set<Dimension> metricDimensions,
Set<String> metricNames,
ApiFilters apiFilters,
LogicalTable logicalTable,
Set<org.joda.time.Interval> intervals,
Set<LogicalMetric> logicalMetrics,
Granularity minimumGranularity,
Granularity requestGranularity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
FilteredSketchMetricsHelper.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest)
Deprecated.
|
LogicalMetric |
MetricsFilterSetBuilder.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest)
Provides filter wrapped logical metric for the given logical metric.
|
LogicalMetric |
FilteredThetaSketchMetricsHelper.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest) |
LogicalMetric |
ApiHaving.getMetric() |
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
FilteredSketchMetricsHelper.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest)
Deprecated.
|
LogicalMetric |
MetricsFilterSetBuilder.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest)
Provides filter wrapped logical metric for the given logical metric.
|
LogicalMetric |
FilteredThetaSketchMetricsHelper.getFilteredLogicalMetric(LogicalMetric logicalMetric,
com.fasterxml.jackson.databind.JsonNode metricFilterObject,
DimensionDictionary dimensionDictionary,
LogicalTable table,
DataApiRequest apiRequest) |
ApiHaving |
ApiHaving.withLogicalMetric(LogicalMetric metric) |
Constructor and Description |
---|
ApiHaving(LogicalMetric metric,
HavingOperation operation,
List<Double> values)
Constructor for an ApiHaving object whose data has already been parsed.
|
Constructor and Description |
---|
ApiHaving(String havingQuery,
Map<String,LogicalMetric> metricDictionary)
Parses the URL having Query and generates the ApiHaving object.
|
Modifier and Type | Method and Description |
---|---|
LogicalMetric |
MetricsApiRequestImpl.getMetric() |
LogicalMetric |
MetricsApiRequest.getMetric()
Returns an available metric.
|
Modifier and Type | Method and Description |
---|---|
Map<LogicalMetric,Set<ApiHaving>> |
DefaultHavingApiGenerator.apply(String havingQuery,
Set<LogicalMetric> logicalMetrics)
Generates having objects based on the having query in the api request.
|
Map<LogicalMetric,Set<ApiHaving>> |
PerRequestDictionaryHavingGenerator.apply(String havingString,
Set<LogicalMetric> logicalMetrics)
Wrap the enclosed having generator in a query scoped metric dictionary.
|
protected LinkedHashSet<LogicalMetric> |
ApiRequestImpl.generateLogicalMetrics(String apiMetricQuery,
MetricDictionary metricDictionary)
Extracts the list of metrics from the url metric query string and generates a set of LogicalMetrics.
|
protected LinkedHashSet<LogicalMetric> |
TablesApiRequestImpl.generateLogicalMetrics(String apiMetricQuery,
MetricDictionary metricDictionary)
Extracts the list of metrics from the url metric query string and generates a set of LogicalMetrics.
|
protected LinkedHashSet<LogicalMetric> |
DataApiRequestImpl.generateLogicalMetrics(String apiMetricQuery,
MetricDictionary metricDictionary,
DimensionDictionary dimensionDictionary,
LogicalTable table)
Extracts the list of metrics from the url metric query string and generates a set of LogicalMetrics.
|
protected Set<LogicalMetric> |
MetricsApiRequestImpl.generateMetrics(String metricName,
MetricDictionary metricDictionary)
Generates the set of all available metrics.
|
Map<LogicalMetric,Set<ApiHaving>> |
DataApiRequest.getHavings()
The having constraints for this request, grouped by logical metrics.
|
Map<LogicalMetric,Set<ApiHaving>> |
DataApiRequestImpl.getHavings() |
Set<LogicalMetric> |
DataApiRequest.getLogicalMetrics()
The logical metrics requested in this query.
|
Set<LogicalMetric> |
TablesApiRequest.getLogicalMetrics()
Returns the logical metrics requested in this query.
|
Set<LogicalMetric> |
DataApiRequestImpl.getLogicalMetrics() |
Set<LogicalMetric> |
TablesApiRequestImpl.getLogicalMetrics() |
Set<LogicalMetric> |
MetricsApiRequestImpl.getMetrics() |
Set<LogicalMetric> |
MetricsApiRequest.getMetrics()
Returns a set of all available metrics.
|
Modifier and Type | Method and Description |
---|---|
Map<LogicalMetric,Set<ApiHaving>> |
DefaultHavingApiGenerator.apply(String havingQuery,
Set<LogicalMetric> logicalMetrics)
Generates having objects based on the having query in the api request.
|
Map<LogicalMetric,Set<ApiHaving>> |
PerRequestDictionaryHavingGenerator.apply(String havingString,
Set<LogicalMetric> logicalMetrics)
Wrap the enclosed having generator in a query scoped metric dictionary.
|
protected LinkedHashSet<OrderByColumn> |
DataApiRequestImpl.generateSortColumns(Map<String,SortDirection> sortDirectionMap,
Set<LogicalMetric> logicalMetrics,
MetricDictionary metricDictionary)
Generates a Set of OrderByColumn.
|
protected void |
ApiRequestImpl.validateMetrics(Set<LogicalMetric> logicalMetrics,
LogicalTable table)
Validate that all metrics are part of the logical table.
|
DataApiRequestImpl |
DataApiRequest.withHavings(Map<LogicalMetric,Set<ApiHaving>> havings) |
DataApiRequestImpl |
DataApiRequestImpl.withHavings(Map<LogicalMetric,Set<ApiHaving>> havings) |
DataApiRequestImpl |
DataApiRequest.withLogicalMetrics(Set<LogicalMetric> logicalMetrics) |
DataApiRequestImpl |
DataApiRequestImpl.withLogicalMetrics(Set<LogicalMetric> logicalMetrics) |
HavingGenerator |
DefaultHavingApiGenerator.withMetricDictionary(Map<String,LogicalMetric> metricDictionary)
Rebuild this having generator with a custom metric dictionary.
|
TablesApiRequest |
TablesApiRequest.withMetrics(Set<LogicalMetric> metrics) |
TablesApiRequest |
TablesApiRequestImpl.withMetrics(Set<LogicalMetric> logicalMetrics) |
Constructor and Description |
---|
DataApiRequestImpl(ResponseFormatType format,
Optional<PaginationParameters> paginationParameters,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Response.ResponseBuilder builder,
LogicalTable table,
Granularity granularity,
Set<Dimension> dimensions,
LinkedHashMap<Dimension,LinkedHashSet<DimensionField>> perDimensionFields,
Set<LogicalMetric> logicalMetrics,
Set<org.joda.time.Interval> intervals,
ApiFilters apiFilters,
Map<LogicalMetric,Set<ApiHaving>> havings,
Having having,
LinkedHashSet<OrderByColumn> sorts,
int count,
int topN,
long asyncAfter,
org.joda.time.DateTimeZone timeZone,
DruidFilterBuilder filterBuilder,
HavingGenerator havingApiGenerator,
Optional<OrderByColumn> dateTimeSort)
All argument constructor, meant to be used for rewriting apiRequest.
|
DataApiRequestImpl(ResponseFormatType format,
Optional<PaginationParameters> paginationParameters,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Response.ResponseBuilder builder,
LogicalTable table,
Granularity granularity,
Set<Dimension> dimensions,
LinkedHashMap<Dimension,LinkedHashSet<DimensionField>> perDimensionFields,
Set<LogicalMetric> logicalMetrics,
Set<org.joda.time.Interval> intervals,
ApiFilters apiFilters,
Map<LogicalMetric,Set<ApiHaving>> havings,
Having having,
LinkedHashSet<OrderByColumn> sorts,
int count,
int topN,
long asyncAfter,
org.joda.time.DateTimeZone timeZone,
DruidFilterBuilder filterBuilder,
HavingGenerator havingApiGenerator,
Optional<OrderByColumn> dateTimeSort)
All argument constructor, meant to be used for rewriting apiRequest.
|
DefaultHavingApiGenerator(Map<String,LogicalMetric> metricDictionary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
MetricsServlet.getLogicalMetricFullView(LogicalMetric logicalMetric,
LogicalTableDictionary logicalTableDictionary,
javax.ws.rs.core.UriInfo uriInfo)
Get the full view of the logical metric.
|
static Map<String,String> |
MetricsServlet.getLogicalMetricSummaryView(LogicalMetric logicalMetric,
javax.ws.rs.core.UriInfo uriInfo)
Get the summary view of the logical metric.
|
static String |
MetricsServlet.getLogicalMetricUrl(LogicalMetric logicalMetric,
javax.ws.rs.core.UriInfo uriInfo)
Get the URL of the logical metric.
|
Modifier and Type | Method and Description |
---|---|
static Set<Map<String,String>> |
MetricsServlet.getLogicalMetricListSummaryView(Collection<LogicalMetric> logicalMetrics,
javax.ws.rs.core.UriInfo uriInfo)
Get the summary list view of the logical metrics.
|
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.