@Immutable public abstract class View extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
View.AggregationWindow
The time window for a
View. |
static class |
View.Name
The name of a
View. |
| Modifier and Type | Method and Description |
|---|---|
static View |
create(View.Name name,
String description,
Measure measure,
Aggregation aggregation,
List<TagKey> columns,
View.AggregationWindow window)
Constructs a new
View. |
abstract Aggregation |
getAggregation()
The
Aggregation associated with this View. |
abstract List<TagKey> |
getColumns()
Columns (a.k.a Tag Keys) to match with the associated
Measure. |
abstract String |
getDescription()
More detailed description, for documentation purposes.
|
abstract Measure |
getMeasure()
Measure type of this view.
|
abstract View.Name |
getName()
Name of view.
|
abstract View.AggregationWindow |
getWindow()
Returns the time
View.AggregationWindow for this View. |
public abstract View.Name getName()
public abstract String getDescription()
public abstract Measure getMeasure()
public abstract Aggregation getAggregation()
Aggregation associated with this View.public abstract List<TagKey> getColumns()
Measure.
Measure will be recorded in a "greedy" way. That is, every view aggregates every
measure. This is similar to doing a GROUPBY on view’s columns. Columns must be unique.
public abstract View.AggregationWindow getWindow()
View.AggregationWindow for this View.View.AggregationWindow.public static View create(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns, View.AggregationWindow window)
View.name - the View.Name of view. Must be unique.description - the description of view.measure - the Measure to be aggregated by this view.aggregation - the basic Aggregation that this view will support.columns - the TagKeys that this view will aggregate on. Columns should not contain
duplicates.window - the View.AggregationWindow of view.View.