public final class ColumnMetric extends Object
Measurements for each column.| Constructor and Description |
|---|
ColumnMetric() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getColumns() |
void |
increment(String column,
String measure)
Increments a measure counter for a column.
|
List<Pair<String,Double>> |
percentage(String column,
Double sum)
Computes percentages for each measure for a given column.
|
void |
set(String column,
String measure,
double value)
Sets the measure value for a column.
|
public void increment(String column, String measure)
column - name of the columnmeasure - to be incremented for a column.public void set(String column, String measure, double value)
column - name of the column.measure - name of the measure that needs to be set for the column.value - to be set for the measure.Copyright © 2021 CDAP Licensed under the Apache License, Version 2.0.