public class PartialDataResultSetMapper extends ResultSetMapper
| Constructor and Description |
|---|
PartialDataResultSetMapper(SimplifiedIntervalList missingIntervals,
Supplier<SimplifiedIntervalList> volatileIntervalSupply)
Build a mapper to filter results over missing intervals from a result set, retaining any that are also volatile.
|
| 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() |
Result |
map(Result result,
ResultSetSchema schema)
Remove result records which are missing and not marked as volatile.
|
protected ResultSetSchema |
map(ResultSetSchema schema)
Returns a transformed schema.
|
mappublic PartialDataResultSetMapper(SimplifiedIntervalList missingIntervals, Supplier<SimplifiedIntervalList> volatileIntervalSupply)
missingIntervals - A list of intervals which represent gaps in the complete data setvolatileIntervalSupply - A supplier for intervals which should not be removed, even if incompletepublic Result map(Result result, ResultSetSchema schema)
map in class ResultSetMapperresult - The result row being transformedschema - The schema for that resultprotected ResultSetSchema map(ResultSetSchema schema)
ResultSetMappermap in class ResultSetMapperschema - The schema being mappedpublic boolean equals(Object o)
ResultSetMapperequals in class ResultSetMappero - The object this is being compared topublic int hashCode()
hashCode in class ResultSetMapperCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.