public class SketchRoundUpMapper extends ResultSetMapper implements ColumnMapper
Constructor and Description |
---|
SketchRoundUpMapper(FieldName columnName)
The column name to round.
|
SketchRoundUpMapper(String columnName)
The column name to round.
|
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 Result |
map(Result result,
ResultSetSchema schema)
Returns a transformed result row, or null if the row is removed.
|
protected ResultSetSchema |
map(ResultSetSchema schema)
Returns a transformed schema.
|
ResultSetMapper |
withColumnName(String newColumnName)
Deprecated.
|
map
public SketchRoundUpMapper(FieldName columnName)
columnName
- The column namepublic SketchRoundUpMapper(String columnName)
columnName
- The column nameprotected 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 mapped@Deprecated public ResultSetMapper withColumnName(String newColumnName)
ColumnMapper
withColumnName
in interface ColumnMapper
newColumnName
- The name of column used to construct the mapperpublic boolean equals(Object o)
ResultSetMapper
equals
in class ResultSetMapper
o
- The object this is being compared topublic int hashCode()
hashCode
in class ResultSetMapper
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.