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.
|
map
public 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 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 mappedpublic 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.