public class DateTimeSortMapper extends ResultSetMapper
Constructor and Description |
---|
DateTimeSortMapper(SortDirection direction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Result |
map(Result result,
ResultSetSchema schema)
Returns a transformed result row, or null if the row is removed.
|
ResultSet |
map(ResultSet resultSet)
Sorting the resultSet based on dateTime column sort direction.
|
protected ResultSetSchema |
map(ResultSetSchema schema)
Returns a transformed schema.
|
equals, hashCode
public DateTimeSortMapper(SortDirection direction)
direction
- Sort directionpublic ResultSet map(ResultSet resultSet)
map
in class ResultSetMapper
resultSet
- The result set need to be sorted in ascending or descending orderprotected Result map(Result result, ResultSetSchema schema)
ResultSetMapper
map
in class ResultSetMapper
result
- The result row being transformedschema
- The schema for that resultprotected ResultSetSchema map(ResultSetSchema schema)
ResultSetMapper
map
in class ResultSetMapper
schema
- The schema being mappedCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.