public abstract class ByEma extends Object implements Serializable
A DB aware EMA which can compute "by" emas without grouping and then ungrouping.
Modifier and Type | Class and Description |
---|---|
static class |
ByEma.BadDataBehavior |
static class |
ByEma.Key |
Modifier | Constructor and Description |
---|---|
protected |
ByEma(ByEma.BadDataBehavior nullBehavior,
ByEma.BadDataBehavior nanBehavior) |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractMa |
createEma(ByEma.Key key) |
double |
update(DBDateTime timestamp,
double value) |
double |
update(DBDateTime timestamp,
double value,
Object... by) |
double |
update(double value) |
double |
update(double value,
Object... by) |
double |
update(long timestampNanos,
double value,
Object... by) |
protected ByEma(ByEma.BadDataBehavior nullBehavior, ByEma.BadDataBehavior nanBehavior)
public double update(double value)
public double update(double value, Object... by)
public double update(DBDateTime timestamp, double value)
public double update(DBDateTime timestamp, double value, Object... by)
public double update(long timestampNanos, double value, Object... by)
protected abstract AbstractMa createEma(ByEma.Key key)