Class WeightedSumMetric
- java.lang.Object
-
- org.apache.solr.client.solrj.io.stream.metrics.Metric
-
- org.apache.solr.client.solrj.io.stream.metrics.WeightedSumMetric
-
- All Implemented Interfaces:
Expressible
public class WeightedSumMetric extends Metric
-
-
Field Summary
Fields Modifier and Type Field Description static StringFUNC-
Fields inherited from class org.apache.solr.client.solrj.io.stream.metrics.Metric
outputLong
-
-
Constructor Summary
Constructors Constructor Description WeightedSumMetric(String valueCol, String countCol)WeightedSumMetric(String valueCol, String countCol, boolean outputLong)WeightedSumMetric(StreamExpression expression, StreamFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getColumns()NumbergetValue()MetricnewInstance()StreamExpressionParametertoExpression(StreamFactory factory)voidupdate(Tuple tuple)-
Methods inherited from class org.apache.solr.client.solrj.io.stream.metrics.Metric
getFunctionName, getIdentifier, getMetricNodeId, setFunctionName, setIdentifier, setIdentifier, toExplanation
-
-
-
-
Field Detail
-
FUNC
public static final String FUNC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WeightedSumMetric
public WeightedSumMetric(StreamExpression expression, StreamFactory factory) throws IOException
- Throws:
IOException
-
-
Method Detail
-
newInstance
public Metric newInstance()
- Specified by:
newInstancein classMetric
-
getColumns
public String[] getColumns()
- Specified by:
getColumnsin classMetric
-
toExpression
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
- Throws:
IOException
-
-