public abstract class ResultSetMapper extends Object
Constructor and Description |
---|
ResultSetMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Since a ResultSetMapper has no state associated with it, we consider two ResultSetMappers to be the same iff
they are of the same class.
|
int |
hashCode() |
protected abstract 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 abstract ResultSetSchema |
map(ResultSetSchema schema)
Returns a transformed schema.
|
public ResultSet map(ResultSet resultSet)
resultSet
- The unmapped result setprotected abstract Result map(Result result, ResultSetSchema schema)
result
- The result row being transformedschema
- The schema for that resultprotected abstract ResultSetSchema map(ResultSetSchema schema)
schema
- The schema being mappedpublic boolean equals(Object o)
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.