DATA
- The input data type. The input of this type will be passed to the
extractor which will transform into a TO-object. The delta
function then runs on this TO-object.TO
- The type on which the delta function runs. (The type of the delta
function)@PublicEvolving public abstract class ExtractionAwareDeltaFunction<DATA,TO> extends Object implements DeltaFunction<DATA>
Constructor and Description |
---|
ExtractionAwareDeltaFunction(Extractor<DATA,TO> converter) |
Modifier and Type | Method and Description |
---|---|
double |
getDelta(DATA oldDataPoint,
DATA newDataPoint)
This method takes the two data point and runs the set extractor on it.
|
abstract double |
getNestedDelta(TO oldDataPoint,
TO newDataPoint)
This method is exactly the same as
DeltaFunction.getDelta(Object, Object) except that it gets the
result of the previously done extractions as input. |
public double getDelta(DATA oldDataPoint, DATA newDataPoint)
getNestedDelta(TO, TO)
is then called
with the extracted data. In case no extractor is set the input data gets
passes to getNestedDelta(TO, TO)
as-is. The return value is just
forwarded from getNestedDelta(TO, TO)
.getDelta
in interface DeltaFunction<DATA>
oldDataPoint
- the older data point as raw data (before extraction).newDataPoint
- the new data point as raw data (before extraction).public abstract double getNestedDelta(TO oldDataPoint, TO newDataPoint)
DeltaFunction.getDelta(Object, Object)
except that it gets the
result of the previously done extractions as input. Therefore, this
method only does the actual calculation of the delta but no data
extraction or conversion.oldDataPoint
- the older data point.newDataPoint
- the new data point.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.