@Immutable public abstract class View extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
View.AggregationWindow
Deprecated.
since 0.13. In the future all
Views will be cumulative. |
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)
Constructs a new
View. |
static View |
create(View.Name name,
String description,
Measure measure,
Aggregation aggregation,
List<TagKey> columns,
View.AggregationWindow window)
Deprecated.
in favor of
create(Name, String, Measure, Aggregation, List). |
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()
Deprecated.
since 0.13. In the future all
Views will be cumulative. |
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.
@Deprecated public abstract View.AggregationWindow getWindow()
Views will be cumulative.View.AggregationWindow for this View.View.AggregationWindow.@Deprecated public static View create(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns, View.AggregationWindow window)
create(Name, String, Measure, Aggregation, List).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.public static View create(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns)
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.View.