public interface Dimension
ApiName must be unique to corresponding domain.
NOTE: To override the default serialization, use the @JsonSerialize on the implementing class. Using @JsonSerialize with no parameters will provide default Jackson behavior (so things such as @JsonValue will work properly) or else you can provide your own custom serializers using the same approach.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CATEGORY |
Modifier and Type | Method and Description |
---|---|
void |
addAllDimensionRows(Set<DimensionRow> dimensionRows)
Add all dimension rows to the dimension's set of rows.
|
void |
addDimensionRow(DimensionRow dimensionRow)
Add a dimension row to the dimension's set of rows.
|
DimensionRow |
createEmptyDimensionRow(String keyFieldValue)
Create an empty DimensionRow for this dimension.
|
DimensionRow |
findDimensionRowByKeyValue(String value)
Get a dimension row given an id.
|
String |
getApiName()
Getter for api name.
|
int |
getCardinality()
Get the cardinality of the dimension.
|
String |
getCategory()
Get the category of the dimension.
|
LinkedHashSet<DimensionField> |
getDefaultDimensionFields()
Getter for default dimension fields.
|
String |
getDescription()
Getter for description.
|
LinkedHashSet<DimensionField> |
getDimensionFields()
Getter for dimension fields.
|
DimensionField |
getFieldByName(String name)
Find dimension field by name.
|
DimensionField |
getKey()
Get primary key field for this dimension.
|
org.joda.time.DateTime |
getLastUpdated()
Getter for lastUpdated.
|
String |
getLongName()
Get the long name of the dimension.
|
SearchProvider |
getSearchProvider()
Getter for search provider.
|
StorageStrategy |
getStorageStrategy()
Returns the
StorageStrategy of the dimension. |
boolean |
isAggregatable()
Return whether this dimension can be aggregated.
|
DimensionRow |
parseDimensionRow(Map<String,String> fieldNameValueMap)
Generate a DimensionRow for this dimension from a field name / value map.
|
void |
setLastUpdated(org.joda.time.DateTime lastUpdated)
Setter for lastUpdated.
|
static final String DEFAULT_CATEGORY
void setLastUpdated(org.joda.time.DateTime lastUpdated)
lastUpdated
- The date and time at which this Dimension was last updatedString getApiName()
String getDescription()
org.joda.time.DateTime getLastUpdated()
LinkedHashSet<DimensionField> getDimensionFields()
LinkedHashSet<DimensionField> getDefaultDimensionFields()
DimensionField getFieldByName(String name)
name
- field nameIllegalArgumentException
- if this dimension does not have a field with the specified nameSearchProvider getSearchProvider()
void addDimensionRow(DimensionRow dimensionRow)
dimensionRow
- DimensionRow to addvoid addAllDimensionRows(Set<DimensionRow> dimensionRows)
dimensionRows
- Set of DimensionRows to addDimensionRow findDimensionRowByKeyValue(String value)
value
- key valueDimensionField getKey()
DimensionRow parseDimensionRow(Map<String,String> fieldNameValueMap)
fieldNameValueMap
- Map of field names to valuesDimensionRow createEmptyDimensionRow(String keyFieldValue)
keyFieldValue
- String value of the key fieldString getCategory()
String getLongName()
StorageStrategy getStorageStrategy()
StorageStrategy
of the dimension.int getCardinality()
boolean isAggregatable()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.