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, hashCodepublic DateTimeSortMapper(SortDirection direction)
direction - Sort directionpublic ResultSet map(ResultSet resultSet)
map in class ResultSetMapperresultSet - The result set need to be sorted in ascending or descending orderprotected Result map(Result result, ResultSetSchema schema)
ResultSetMappermap in class ResultSetMapperresult - The result row being transformedschema - The schema for that resultprotected ResultSetSchema map(ResultSetSchema schema)
ResultSetMappermap in class ResultSetMapperschema - The schema being mappedCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.