Modifier and Type | Method and Description |
---|---|
protected ResponseData |
HttpResponseMaker.buildResponseData(ResultSet resultSet,
LinkedHashSet<String> apiMetricColumnNames,
LinkedHashMap<Dimension,LinkedHashSet<DimensionField>> requestedApiDimensionFields,
SimplifiedIntervalList partialIntervals,
SimplifiedIntervalList volatileIntervals,
Pagination pagination,
Map<String,URI> paginationLinks)
Builds a ResponseData object.
|
Modifier and Type | Method and Description |
---|---|
Pagination<DimensionRow> |
SearchProvider.findAllDimensionRowsPaged(PaginationParameters paginationParameters)
Return the desired page of dimension rows.
|
Pagination<DimensionRow> |
SearchProvider.findFilteredDimensionRowsPaged(Set<ApiFilter> filters,
PaginationParameters paginationParameters)
Return the desired page of dimension rows that match the specified filters.
|
Modifier and Type | Method and Description |
---|---|
Pagination<DimensionRow> |
NoOpSearchProvider.findAllDimensionRowsPaged(PaginationParameters paginationParameters) |
Pagination<DimensionRow> |
LuceneSearchProvider.findAllDimensionRowsPaged(PaginationParameters paginationParameters) |
Pagination<DimensionRow> |
ScanSearchProvider.findAllDimensionRowsPaged(PaginationParameters paginationParameters) |
Pagination<DimensionRow> |
NoOpSearchProvider.findFilteredDimensionRowsPaged(Set<ApiFilter> filters,
PaginationParameters paginationParameters) |
Pagination<DimensionRow> |
LuceneSearchProvider.findFilteredDimensionRowsPaged(Set<ApiFilter> filters,
PaginationParameters paginationParameters) |
Pagination<DimensionRow> |
ScanSearchProvider.findFilteredDimensionRowsPaged(Set<ApiFilter> filters,
PaginationParameters paginationParameters) |
Modifier and Type | Class and Description |
---|---|
class |
AllPagesPagination<T>
Pagination class that contains all matching results of a query.
|
class |
SinglePagePagination<T>
Pagination class that contains only one page of data.
|
Modifier and Type | Field and Description |
---|---|
protected Pagination<?> |
AbstractResponse.pages |
protected Pagination |
ResponseData.pagination |
Modifier and Type | Method and Description |
---|---|
Pagination |
ResponseData.getPagination() |
Modifier and Type | Method and Description |
---|---|
static void |
AbstractResponse.addLink(PaginationLink link,
Pagination<?> pages,
javax.ws.rs.core.UriBuilder uriBuilder,
Map<String,URI> bodyLinks)
Adds the specified link to the headers and body of the response.
|
static void |
AbstractResponse.addLink(PaginationLink link,
Pagination<?> pages,
javax.ws.rs.core.UriBuilder uriBuilder,
MappingResponseProcessor responseProcessor,
Map<String,URI> bodyLinks)
Adds the specified link to the headers and body of the response.
|
static Map<String,Object> |
AbstractResponse.addLinks(Pagination<?> pages,
javax.ws.rs.core.UriBuilder uriBuilder)
Returns all required pagination links.
|
static void |
AbstractResponse.addLinks(Pagination<?> pages,
javax.ws.rs.core.UriBuilder uriBuilder,
MappingResponseProcessor responseProcessor)
Adds all the required pagination links to the headers and body of the response.
|
Constructor and Description |
---|
AbstractResponse(Stream<T> entries,
Pagination<?> pages,
javax.ws.rs.core.UriInfo uriInfo,
ObjectMappersSuite objectMappers)
Constructor.
|
CsvResponse(Stream<T> entries,
Pagination<?> pages,
javax.ws.rs.core.UriInfo uriInfo,
List<String> columnNames,
ObjectMappersSuite objectMappers)
Constructor.
|
JsonResponse(Stream<T> entries,
Pagination<?> pages,
javax.ws.rs.core.UriInfo uriInfo,
String responseName,
ObjectMappersSuite objectMappers)
Constructor.
|
ResponseData(ResultSet resultSet,
DataApiRequest apiRequest,
SimplifiedIntervalList missingIntervals,
SimplifiedIntervalList volatileIntervals,
Pagination pagination,
Map<String,URI> paginationLinks)
Deprecated.
All the values needed to build a Response should be passed explicitly instead of relying on the
DataApiRequest
|
ResponseData(ResultSet resultSet,
LinkedHashSet<String> apiMetricColumnNames,
LinkedHashMap<Dimension,LinkedHashSet<DimensionField>> requestedApiDimensionFields,
SimplifiedIntervalList missingIntervals,
SimplifiedIntervalList volatileIntervals,
Pagination pagination,
Map<String,URI> paginationLinks)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
protected Pagination<?> |
ApiRequestImpl.pagination |
Modifier and Type | Method and Description |
---|---|
Pagination<?> |
ApiRequest.getPagination()
Get the pagination object associated with this request.
|
Pagination<?> |
ApiRequestImpl.getPagination() |
Modifier and Type | Method and Description |
---|---|
protected void |
ApiRequestImpl.addPageLink(PaginationLink link,
Pagination<?> pages)
Add page links to the header of the response builder.
|
<T> Stream<T> |
ApiRequest.getPage(Pagination<T> pagination)
Add links to the response builder and return a stream with the requested page from the raw data.
|
<T> Stream<T> |
ApiRequestImpl.getPage(Pagination<T> pagination)
Add links to the response builder and return a stream with the requested page from the raw data.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseContext |
JobsServlet.addPaginationInfoToResponseContext(ResponseContext responseContext,
javax.ws.rs.core.UriInfo uriInfo,
Pagination<Result> pages)
Add pagination details to ResponseContext.
|
Modifier and Type | Method and Description |
---|---|
abstract OptionalInt |
PaginationLink.getPage(Pagination<?> page)
Get the page number if the specified page exists relative to the current page.
|
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.