Package | Description |
---|---|
com.yahoo.bard.webservice.data.metric.mappers | |
com.yahoo.bard.webservice.druid.model.orderby | |
com.yahoo.bard.webservice.web.apirequest |
Constructor and Description |
---|
DateTimeSortMapper(SortDirection direction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SortDirection |
OrderByColumn.getDirection()
Getter for sort direction.
|
static SortDirection |
SortDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortDirection[] |
SortDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
OrderByColumn(Aggregation aggregation,
SortDirection direction)
Constructor.
|
OrderByColumn(LogicalMetric metric,
SortDirection direction)
Constructor.
|
OrderByColumn(PostAggregation postAggregation,
SortDirection direction)
Constructor.
|
OrderByColumn(String column,
SortDirection direction)
Constructor which accepts generic column with direction.
|
TopNMetric(String metricName,
SortDirection order)
Constructs a numeric sort of the given metric and explicitly specifies the order (ascending or descending).
|
TopNMetric(TopNMetric.TopNMetricType type,
String previousStop,
SortDirection order)
Constructs a sort of the given type with a starting point and explicitly specifies the order (ascending or
descending).
|
Modifier and Type | Method and Description |
---|---|
protected SortDirection |
DataApiRequestImpl.getSortDirection(List<String> columnWithDirection)
Extract valid sort direction.
|
Modifier and Type | Method and Description |
---|---|
protected LinkedHashMap<String,SortDirection> |
DataApiRequestImpl.generateSortColumns(String sorts)
Method to convert sort list to column and direction map.
|
protected Map<String,SortDirection> |
DataApiRequestImpl.removeDateTimeSortColumn(Map<String,SortDirection> sortColumns)
Method to remove the dateTime column from map of columns and its direction.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<OrderByColumn> |
DataApiRequestImpl.generateDateTimeSortColumn(LinkedHashMap<String,SortDirection> sortColumns)
Method to generate DateTime sort column from the map of columns and its direction.
|
protected LinkedHashSet<OrderByColumn> |
DataApiRequestImpl.generateSortColumns(Map<String,SortDirection> sortDirectionMap,
Set<LogicalMetric> logicalMetrics,
MetricDictionary metricDictionary)
Generates a Set of OrderByColumn.
|
protected Boolean |
DataApiRequestImpl.isDateTimeFirstSortField(LinkedHashMap<String,SortDirection> sortColumns)
To check whether dateTime column request is first one in the sort list or not.
|
protected Map<String,SortDirection> |
DataApiRequestImpl.removeDateTimeSortColumn(Map<String,SortDirection> sortColumns)
Method to remove the dateTime column from map of columns and its direction.
|
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.