public class CubeVirtualFactTable extends AbstractCubeTable implements FactTable
Constructor and Description |
---|
CubeVirtualFactTable(String cubeName,
String virtualFactName,
com.google.common.base.Optional<Double> weight,
Map<String,String> properties,
FactTable sourceFact) |
CubeVirtualFactTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable,
FactTable sourceCubeFactTable) |
Modifier and Type | Method and Description |
---|---|
void |
alterWeight(double weight)
Alters the weight of table
|
Date |
getAbsoluteEndTime()
Absolute end time of the fact
|
Date |
getAbsoluteStartTime()
Absolute start time of the fact
|
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getColumns()
List of columns of the fact
|
String |
getCubeName()
Cube to which this fact belongs to
|
String |
getDataCompletenessTag()
tag for checking data completeness
|
Date |
getEndTime()
End time of the fact
|
Date |
getRelativeEndTime()
Relative End time of the Fact
|
Date |
getRelativeStartTime()
Relative start time of the fact
|
FactTable |
getSourceCubeFactTable() |
String |
getSourceFactName()
Storage name of the fact
|
Date |
getStartTime()
Start time of the fact
|
Set<String> |
getStorages()
The set of Storage names
|
CubeTableType |
getTableType()
The type of the fact
|
Map<String,Set<UpdatePeriod>> |
getUpdatePeriods()
Get map of storage to update period mapping
|
Set<String> |
getValidColumns()
Valid columns of the fact
|
com.google.common.base.Optional<Double> |
getVirtualFactWeight() |
boolean |
isAggregated()
Is Aggregated Fact
|
boolean |
isVirtualFact()
Is Virtual Fact
|
void |
setSourceCubeFactTable(FactTable sourceCubeFactTable) |
double |
weight()
Weight of the fact
|
addProperties, equals, getAllFieldNames, getName, getProperties, getWeight, hashCode, now, removeProperty, toString
getAllFieldNames, getProperties
public CubeVirtualFactTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable, FactTable sourceCubeFactTable)
public void alterWeight(double weight)
alterWeight
in class AbstractCubeTable
weight
- Weight of the table.public CubeTableType getTableType()
FactTable
getTableType
in interface FactTable
getTableType
in class AbstractCubeTable
CubeTableType
public Set<String> getValidColumns()
FactTable
getValidColumns
in interface FactTable
public Set<String> getStorages()
FactTable
getStorages
in interface FactTable
getStorages
in class AbstractCubeTable
public Map<String,Set<UpdatePeriod>> getUpdatePeriods()
FactTable
getUpdatePeriods
in interface FactTable
public String getCubeName()
FactTable
getCubeName
in interface FactTable
public String getDataCompletenessTag()
FactTable
getDataCompletenessTag
in interface FactTable
public boolean isAggregated()
FactTable
isAggregated
in interface FactTable
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getColumns()
FactTable
getColumns
in interface FactTable
getColumns
in class AbstractCubeTable
FieldSchema
public double weight()
FactTable
weight
in interface FactTable
weight
in class AbstractCubeTable
public Date getAbsoluteStartTime()
FactTable
getAbsoluteStartTime
in interface FactTable
Date
public Date getRelativeStartTime()
FactTable
getRelativeStartTime
in interface FactTable
Date
public Date getStartTime()
FactTable
getStartTime
in interface FactTable
Date
public Date getAbsoluteEndTime()
FactTable
getAbsoluteEndTime
in interface FactTable
Date
public Date getRelativeEndTime()
FactTable
getRelativeEndTime
in interface FactTable
Date
public Date getEndTime()
FactTable
getEndTime
in interface FactTable
Date
public boolean isVirtualFact()
FactTable
isVirtualFact
in interface FactTable
public String getSourceFactName()
FactTable
getSourceFactName
in interface FactTable
@Generated(value="lombok") public FactTable getSourceCubeFactTable()
@Generated(value="lombok") public void setSourceCubeFactTable(FactTable sourceCubeFactTable)
@Generated(value="lombok") public com.google.common.base.Optional<Double> getVirtualFactWeight()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.