protected HistoricalTimeSeries applyOverride(final FunctionExecutionContext context, final OverrideOperation operation, final String field, final ExternalIdBundle identifiers,
final HistoricalTimeSeries value) {
final ValueRequirement requirement = createRequirement(context, field, identifiers);
s_logger.debug("Synthetic requirement {} on {}", requirement, value);
return new SimpleHistoricalTimeSeries(value.getUniqueId(), value.getTimeSeries().operate(new UnaryOperator() {
@Override
public double operate(final double a) {
return (Double) operation.apply(requirement, a);
}
}));