public class TopNResultSetMapper extends ResultSetMapper
| Constructor and Description | 
|---|
TopNResultSetMapper(int topN)
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)
Take a complete result set and replace it with one altered according to the rules of the concrete mapper. 
 | 
protected ResultSetSchema | 
map(ResultSetSchema schema)
Returns a transformed schema. 
 | 
equals, hashCodepublic TopNResultSetMapper(int topN)
topN - The N to use when truncating to the top N in a bucketpublic ResultSet map(ResultSet resultSet)
ResultSetMappermap in class ResultSetMapperresultSet - The unmapped result setprotected 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.