public class CountDistinctMetric extends Metric
| Modifier and Type | Field and Description |
|---|---|
static String |
APPROX_COUNT_DISTINCT |
static String |
COUNT_DISTINCT |
outputLong| Constructor and Description |
|---|
CountDistinctMetric(StreamExpression expression,
StreamFactory factory) |
CountDistinctMetric(String columnName) |
CountDistinctMetric(String columnName,
boolean isApproximate) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumns() |
Number |
getValue() |
Metric |
newInstance() |
StreamExpressionParameter |
toExpression(StreamFactory factory) |
void |
update(Tuple tuple) |
getFunctionName, getIdentifier, getMetricNodeId, setFunctionName, setIdentifier, setIdentifier, toExplanationpublic static final String COUNT_DISTINCT
public static final String APPROX_COUNT_DISTINCT
public CountDistinctMetric(String columnName)
public CountDistinctMetric(String columnName, boolean isApproximate)
public CountDistinctMetric(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic Metric newInstance()
newInstance in class Metricpublic String[] getColumns()
getColumns in class Metricpublic StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.