org.apache.lens.cube.metadata
Class AbstractCubeTable

java.lang.Object
  extended by org.apache.lens.cube.metadata.AbstractCubeTable
All Implemented Interfaces:
Named
Direct Known Subclasses:
AbstractBaseTable, CubeDimensionTable, CubeFactTable, DerivedCube, Storage

public abstract class AbstractCubeTable
extends Object
implements Named


Field Summary
static org.apache.log4j.Logger LOG
           
 
Method Summary
 void addProperties(Map<String,String> props)
          Add more table properties
 void alterWeight(double weight)
          Alters the weight of table
 boolean equals(Object obj)
           
 Set<String> getAllFieldNames()
           
 List<org.apache.hadoop.hive.metastore.api.FieldSchema> getColumns()
           
 String getName()
           
 Map<String,String> getProperties()
           
abstract  Set<String> getStorages()
           
abstract  CubeTableType getTableType()
           
static double getWeight(Map<String,String> properties, String name)
           
 int hashCode()
           
 void removeProperty(String propKey)
          Remove property specified by the key
 String toString()
           
 double weight()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Method Detail

getTableType

public abstract CubeTableType getTableType()

getStorages

public abstract Set<String> getStorages()

getProperties

public Map<String,String> getProperties()

getWeight

public static double getWeight(Map<String,String> properties,
                               String name)

getName

public String getName()
Specified by:
getName in interface Named

getColumns

public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getColumns()

weight

public double weight()

alterWeight

public void alterWeight(double weight)
Alters the weight of table

Parameters:
weight -

addProperties

public void addProperties(Map<String,String> props)
Add more table properties

Parameters:
properties -

removeProperty

public void removeProperty(String propKey)
Remove property specified by the key

Parameters:
propKey -

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getAllFieldNames

public Set<String> getAllFieldNames()


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.