public class RecipePageRequest extends PageRequest<Recipe>
| Modifier and Type | Class and Description |
|---|---|
static class |
RecipePageRequest.Builder
Creates a
RecipePageRequest object |
| Modifier and Type | Field and Description |
|---|---|
static String |
SORT_BY_NAME |
static String |
SORT_BY_UPDATE_TIME |
PAGE_SIZE_DEFAULT, pageSize, pageToken, SORT_ORDER_ASC, SORT_ORDER_DESC, sortBy, sortOrder| Modifier | Constructor and Description |
|---|---|
protected |
RecipePageRequest(Integer pageSize,
String pageToken,
String sortBy,
String sortOrder,
NamespaceSummary namespace) |
| Modifier and Type | Method and Description |
|---|---|
static RecipePageRequest.Builder |
builder(NamespaceSummary namespace) |
protected String |
getDefaultSortBy()
Get the default table column name using which results will be sorted.
|
NamespaceSummary |
getNamespace() |
String |
getNextPageToken(Recipe recipe)
Get the nextPageToken returned as part of response to request.
|
io.cdap.cdap.spi.data.table.field.Range |
getScanRange()
Constructs the range used to query the storage table.
|
protected String |
getSortByColumnName(String sortBy)
Get the table column name mapped to given sortBy value.
|
void |
validateSortBy(String sortBy)
Checks whether given sortBy value has a respective table column mapping.
|
getPageSize, getPageToken, getSortBy, getSortOrder, validatePageSize, validateSortOrderpublic static final String SORT_BY_NAME
public static final String SORT_BY_UPDATE_TIME
protected RecipePageRequest(Integer pageSize, String pageToken, String sortBy, String sortOrder, NamespaceSummary namespace)
public NamespaceSummary getNamespace()
public void validateSortBy(String sortBy)
PageRequestvalidateSortBy in class PageRequest<Recipe>sortBy - field based on which results should be sortedprotected String getDefaultSortBy()
PageRequestgetDefaultSortBy in class PageRequest<Recipe>protected String getSortByColumnName(String sortBy)
PageRequestgetSortByColumnName in class PageRequest<Recipe>public io.cdap.cdap.spi.data.table.field.Range getScanRange()
PageRequestgetScanRange in class PageRequest<Recipe>Range corresponding to page query parameters.public String getNextPageToken(Recipe recipe)
PageRequestgetNextPageToken in class PageRequest<Recipe>recipe - resource returned by the requestpublic static RecipePageRequest.Builder builder(NamespaceSummary namespace)
Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.