public class DefaultDataApiRequestFactory extends Object implements DataApiRequestFactory
Constructor and Description |
---|
DefaultDataApiRequestFactory() |
Modifier and Type | Method and Description |
---|---|
DataApiRequest |
buildApiRequest(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)
Factory method for building
DataApiRequest objects. |
public DataApiRequest buildApiRequest(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)
DataApiRequestFactory
DataApiRequest
objects.buildApiRequest
in interface DataApiRequestFactory
tableName
- logical table corresponding to the table name specified in the URLgranularity
- string time granularity in URLdimensions
- single dimension or multiple dimensions separated by '/' in URLlogicalMetrics
- URL logical metric query string in the format:
single metric or multiple logical metrics separated by ','
intervals
- URL intervals query string in the format:
single interval in ISO 8601 format, multiple values separated by ','
apiFilters
- URL filter query Stringhavings
- URL having query Stringsorts
- string of sort columns along with sort directioncount
- count of number of records to be returned in the responsetopN
- number of first records per time bucket to be returned in the responseformat
- response data formattimeZoneId
- a joda time zone idasyncAfter
- How long the user is willing to wait for a synchronous request in millisecondsperPage
- number of rows to display per page of results. If present in the original request,
must be a positive integer. If not present, must be the empty string.page
- desired page of results. If present in the original request, must be a positive
integer. If not present, must be the empty string.uriInfo
- The URI of the request object.bardConfigResources
- The configuration resources used to build this api requestCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.