public abstract static class Polator.Abstract extends Object implements Polator
Polator.Abstract
Constructor and Description |
---|
Abstract() |
Modifier and Type | Method and Description |
---|---|
protected static Double |
decode(PointValue pointValue)
Decodes the value from a point value.
|
protected abstract PointValue |
extrapolate(StoreValuesQuery polatedQuery,
DateTime stamp,
PointValue[] pointValuesBefore)
Extrapolates a value.
|
protected abstract int |
extrapolationNeedsBefore()
Returns the number of values extrapolation needs before.
|
protected abstract PointValue |
interpolate(StoreValuesQuery polatedQuery,
DateTime stamp,
PointValue[] pointValuesBefore,
PointValue[] pointValuesAfter)
Interpolates a value.
|
protected abstract int |
interpolationNeedsAfter()
Returns the number of values interpolation needs after.
|
protected abstract int |
interpolationNeedsBefore()
Returns the number of values interpolation needs before.
|
StoreValues |
polate(StoreValuesQuery polatedQuery,
StoreCursor storeCursor,
Identity identity)
Inter/extra-polates values for a store query.
|
public final StoreValues polate(StoreValuesQuery polatedQuery, StoreCursor storeCursor, Identity identity)
@Nullable @CheckReturnValue protected static final Double decode(@Nonnull PointValue pointValue)
pointValue
- The point value.@Nonnull @CheckReturnValue protected abstract PointValue extrapolate(@Nonnull StoreValuesQuery polatedQuery, @Nonnull DateTime stamp, PointValue[] pointValuesBefore)
polatedQuery
- The polated query.stamp
- The stamp for the synthesized value.pointValuesBefore
- The needed point values before.protected abstract int extrapolationNeedsBefore()
@Nonnull @CheckReturnValue protected abstract PointValue interpolate(@Nonnull StoreValuesQuery polatedQuery, @Nonnull DateTime stamp, PointValue[] pointValuesBefore, PointValue[] pointValuesAfter)
polatedQuery
- The polated query.stamp
- The stamp for the synthesized value.pointValuesBefore
- The needed point values before.pointValuesAfter
- The needed point values after.protected abstract int interpolationNeedsAfter()
protected abstract int interpolationNeedsBefore()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.