Package | Description |
---|---|
com.yahoo.bard.webservice.config | |
com.yahoo.bard.webservice.web | |
com.yahoo.bard.webservice.web.apirequest |
Modifier and Type | Method and Description |
---|---|
FeatureFlag |
FeatureFlagRegistry.forName(String name)
Get a registered FeatureFlag by name.
|
Modifier and Type | Method and Description |
---|---|
void |
MetricsFilterSetBuilder.validateDuplicateMetrics(com.fasterxml.jackson.databind.node.ArrayNode metricsJsonArray)
This method checks if the metric query contains duplicate metrics and throws a BadApiRequestException in case
it does find duplicate 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.
|
protected ResponseFormatType |
ApiRequestImpl.generateAcceptFormat(String format)
Generates the format in which the response data is expected.
|
protected long |
ApiRequestImpl.generateAsyncAfter(String asyncAfterString)
Parses the asyncAfter parameter into a long describing how long the user is willing to wait for the results of a
synchronous request before the request should become asynchronous.
|
protected LinkedHashSet<Dimension> |
ApiRequestImpl.generateDimensions(List<javax.ws.rs.core.PathSegment> apiDimensions,
DimensionDictionary dimensionDictionary)
Extracts the list of dimension names from the url dimension path segments and generates a set of dimension
objects based on it.
|
protected LinkedHashSet<Dimension> |
DimensionsApiRequestImpl.generateDimensions(String apiDimension,
DimensionDictionary dimensionDictionary)
Returns a set of dimension names that contains either the requested dimension or all the available ones.
|
protected LinkedHashSet<ApiFilter> |
DimensionsApiRequestImpl.generateFilters(String filterQuery,
DimensionDictionary dimensionDictionary)
Generates filter objects based on the filter query in the api request.
|
ApiFilters |
ApiRequestImpl.generateFilters(String filterQuery,
LogicalTable table,
DimensionDictionary dimensionDictionary)
Generates filter objects on the based on the filter query in the api request.
|
protected Granularity |
ApiRequestImpl.generateGranularity(String granularity,
org.joda.time.DateTimeZone dateTimeZone,
GranularityParser granularityParser)
Generate a Granularity instance based on a path element.
|
protected Granularity |
ApiRequestImpl.generateGranularity(String granularity,
GranularityParser granularityParser)
Generate a Granularity instance based on a path element.
|
protected int |
DataApiRequestImpl.generateInteger(String value,
String parameterName)
Parses the requested input String by converting it to an integer, while treating null as zero.
|
protected static Set<org.joda.time.Interval> |
ApiRequestImpl.generateIntervals(org.joda.time.DateTime now,
String apiIntervalQuery,
Granularity granularity,
org.joda.time.format.DateTimeFormatter dateTimeFormatter)
Extracts the set of intervals from the api request.
|
protected static Set<org.joda.time.Interval> |
ApiRequestImpl.generateIntervals(String apiIntervalQuery,
Granularity granularity,
org.joda.time.format.DateTimeFormatter dateTimeFormatter)
Extracts the set of intervals from the api request.
|
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.
|
protected Optional<PaginationParameters> |
ApiRequestImpl.generatePaginationParameters(String perPage,
String page)
Builds the paginationParameters object, if the request provides both a perPage and page field.
|
protected Map<String,Object> |
SlicesApiRequestImpl.generateSlice(String sliceName,
PhysicalTableDictionary tableDictionary,
DataSourceMetadataService dataSourceMetadataService,
javax.ws.rs.core.UriInfo uriInfo)
Generates a slice object for a given slice name.
|
protected Set<Map<String,String>> |
SlicesApiRequestImpl.generateSlices(PhysicalTableDictionary tableDictionary,
javax.ws.rs.core.UriInfo uriInfo)
Generates the set of all available slices.
|
protected LinkedHashSet<OrderByColumn> |
DataApiRequestImpl.generateSortColumns(Map<String,SortDirection> sortDirectionMap,
Set<LogicalMetric> logicalMetrics,
MetricDictionary metricDictionary)
Generates a Set of OrderByColumn.
|
protected LogicalTable |
ApiRequestImpl.generateTable(String tableName,
Granularity granularity,
LogicalTableDictionary logicalTableDictionary)
Extracts a specific logical table object given a valid table name and a valid granularity.
|
protected Set<LogicalTable> |
TablesApiRequestImpl.generateTables(String tableName,
LogicalTableDictionary tableDictionary)
Extracts the list of logical table names from the url table path segment and generates a set of logical table
objects based on it.
|
static org.joda.time.DateTime |
ApiRequestImpl.getAsDateTime(org.joda.time.DateTime now,
Granularity granularity,
String dateText,
org.joda.time.format.DateTimeFormatter timeFormatter)
Get datetime from the given input text based on granularity.
|
protected void |
DataApiRequestImpl.validateAggregatability(Set<Dimension> apiDimensions,
Map<Dimension,Set<ApiFilter>> apiFilters)
Validate that the request references any non-aggregatable dimensions in a valid way.
|
protected void |
ApiRequestImpl.validateMetrics(Set<LogicalMetric> logicalMetrics,
LogicalTable table)
Validate that all metrics are part of the logical table.
|
protected void |
ApiRequestImpl.validateRequestDimensions(Set<Dimension> requestDimensions,
LogicalTable table)
Ensure all request dimensions are part of the logical table.
|
protected static void |
ApiRequestImpl.validateTimeAlignment(Granularity granularity,
Set<org.joda.time.Interval> intervals)
Throw an exception if any of the intervals are not accepted by this granularity.
|
Constructor and Description |
---|
ApiRequestImpl(String format,
String asyncAfter,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo)
Parses the API request URL and generates the API request object.
|
ApiRequestImpl(String format,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo)
Parses the API request URL and generates the API request object.
|
DataApiRequestImpl(String tableName,
String granularity,
List<javax.ws.rs.core.PathSegment> dimensions,
String logicalMetrics,
String intervals,
String apiFilters,
String havings,
String sorts,
String count,
String topN,
String format,
String timeZoneId,
String asyncAfter,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo,
BardConfigResources bardConfigResources)
Parses the API request URL and generates the Api Request object.
|
DataApiRequestImpl(String tableName,
String granularity,
List<javax.ws.rs.core.PathSegment> dimensions,
String logicalMetrics,
String intervals,
String apiFilters,
String havings,
String sorts,
String count,
String topN,
String format,
String timeZoneId,
String asyncAfter,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo,
DimensionDictionary dimensionDictionary,
MetricDictionary metricDictionary,
LogicalTableDictionary logicalTableDictionary,
org.joda.time.DateTimeZone systemTimeZone,
GranularityParser granularityParser,
DruidFilterBuilder druidFilterBuilder,
HavingGenerator havingGenerator)
Parses the API request URL and generates the Api Request object.
|
DimensionsApiRequestImpl(String dimension,
String filters,
String format,
String perPage,
String page,
DimensionDictionary dimensionDictionary,
javax.ws.rs.core.UriInfo uriInfo)
Parses the API request URL and generates the Api Request object.
|
MetricsApiRequestImpl(String metricName,
String format,
String perPage,
String page,
MetricDictionary metricDictionary,
javax.ws.rs.core.UriInfo uriInfo)
Parses the API request URL and generates the Api Request object.
|
SlicesApiRequestImpl(String sliceName,
String format,
String perPage,
String page,
PhysicalTableDictionary tableDictionary,
DataSourceMetadataService dataSourceMetadataService,
javax.ws.rs.core.UriInfo uriInfo)
Parses the API request URL and generates the Api Request object.
|
TablesApiRequestImpl(String tableName,
String granularity,
String format,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo,
BardConfigResources bardConfigResources)
Parses the API request URL and generates the Api Request object.
|
TablesApiRequestImpl(String tableName,
String granularity,
String format,
String perPage,
String page,
javax.ws.rs.core.UriInfo uriInfo,
BardConfigResources bardConfigResources,
List<javax.ws.rs.core.PathSegment> dimensions,
String metrics,
String intervals,
String filters,
String timeZoneId)
Parses the API request URL and generates the API Request object with specified query constraints, i.e.
|
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.