Class MeanMetric
- java.lang.Object
-
- org.apache.solr.client.solrj.io.stream.metrics.Metric
-
- org.apache.solr.client.solrj.io.stream.metrics.MeanMetric
-
- All Implemented Interfaces:
Expressible
public class MeanMetric extends Metric
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.io.stream.metrics.Metric
outputLong
-
-
Constructor Summary
Constructors Constructor Description MeanMetric(String columnName)
MeanMetric(String columnName, boolean outputLong)
MeanMetric(StreamExpression expression, StreamFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getColumns()
Number
getValue()
Metric
newInstance()
StreamExpressionParameter
toExpression(StreamFactory factory)
void
update(Tuple tuple)
-
Methods inherited from class org.apache.solr.client.solrj.io.stream.metrics.Metric
getFunctionName, getIdentifier, getMetricNodeId, setFunctionName, setIdentifier, setIdentifier, toExplanation
-
-
-
-
Constructor Detail
-
MeanMetric
public MeanMetric(String columnName)
-
MeanMetric
public MeanMetric(String columnName, boolean outputLong)
-
MeanMetric
public MeanMetric(StreamExpression expression, StreamFactory factory) throws IOException
- Throws:
IOException
-
-
Method Detail
-
newInstance
public Metric newInstance()
- Specified by:
newInstance
in classMetric
-
getColumns
public String[] getColumns()
- Specified by:
getColumns
in classMetric
-
toExpression
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
- Throws:
IOException
-
-