public class SumMetric extends Metric implements Serializable
Constructor and Description |
---|
SumMetric(StreamExpression expression,
StreamFactory factory) |
SumMetric(String columnName) |
Modifier and Type | Method and Description |
---|---|
double |
getValue() |
Metric |
newInstance() |
StreamExpressionParameter |
toExpression(StreamFactory factory) |
void |
update(Tuple tuple) |
getFunctionName, getIdentifier, setFunctionName, setIdentifier, setIdentifier
public SumMetric(String columnName)
public SumMetric(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public Metric newInstance()
newInstance
in class Metric
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.