@Beta public class CubeFact extends Object
Cube
.
See also Cube.add(CubeFact)
.Constructor and Description |
---|
CubeFact(long timestamp)
Creates an instance of
CubeFact with no dimensionValues and no measurements. |
Modifier and Type | Method and Description |
---|---|
CubeFact |
addDimensionValue(String name,
String value)
Adds dimension value to this
CubeFact . |
CubeFact |
addDimensionValues(Map<String,String> dimensionValues)
Adds multiple dimensionValues to this
CubeFact . |
CubeFact |
addMeasurement(Measurement measurement)
Adds a
Measurement to this CubeFact . |
CubeFact |
addMeasurement(String name,
MeasureType type,
long value)
Adds a
Measurement to this CubeFact . |
CubeFact |
addMeasurements(Collection<Measurement> measurements)
Adds multiple
Measurement s to this CubeFact |
Map<String,String> |
getDimensionValues() |
Collection<Measurement> |
getMeasurements() |
long |
getTimestamp() |
public CubeFact(long timestamp)
CubeFact
with no dimensionValues and no measurements.
After creation, you can add dimensionValues e.g. via addDimensionValue(String, String)
and add measurements e.g. via addMeasurement(String, MeasureType, long)
.timestamp
- timestamp (epoch in sec) of the measurementspublic CubeFact addDimensionValue(String name, String value)
CubeFact
.name
- name of the dimensionvalue
- value of the dimensionCubeFact
public CubeFact addDimensionValues(Map<String,String> dimensionValues)
CubeFact
.dimensionValues
- dimensionValues to addCubeFact
public CubeFact addMeasurement(String name, MeasureType type, long value)
Measurement
to this CubeFact
.name
- name of the measurement to addtype
- type of the measurement to addvalue
- value of the measurement to addCubeFact
public CubeFact addMeasurement(Measurement measurement)
Measurement
to this CubeFact
.measurement
- a Measurement
to addCubeFact
public CubeFact addMeasurements(Collection<Measurement> measurements)
Measurement
s to this CubeFact
measurements
- Measurement
s to addCubeFact
public long getTimestamp()
CubeFact
public Map<String,String> getDimensionValues()
CubeFact
public Collection<Measurement> getMeasurements()
Measurement
s of this CubeFact
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.