org.apache.hadoop.hive.metastore.model
Class MTable

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.model.MTable

public class MTable
extends Object


Constructor Summary
MTable()
           
MTable(String tableName, MDatabase database, MStorageDescriptor sd, String owner, int createTime, int lastAccessTime, int retention, List<MFieldSchema> partitionKeys, Map<String,String> parameters)
           
 
Method Summary
 int getCreateTime()
           
 MDatabase getDatabase()
           
 int getLastAccessTime()
           
 String getOwner()
           
 Map<String,String> getParameters()
           
 List<MFieldSchema> getPartitionKeys()
           
 int getRetention()
           
 MStorageDescriptor getSd()
           
 String getTableName()
           
 void setCreateTime(int createTime)
           
 void setDatabase(MDatabase database)
           
 void setLastAccessTime(int lastAccessTime)
           
 void setOwner(String owner)
           
 void setParameters(Map<String,String> parameters)
           
 void setPartitionKeys(List<MFieldSchema> partKeys)
           
 void setRetention(int retention)
           
 void setSd(MStorageDescriptor sd)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTable

public MTable()

MTable

public MTable(String tableName,
              MDatabase database,
              MStorageDescriptor sd,
              String owner,
              int createTime,
              int lastAccessTime,
              int retention,
              List<MFieldSchema> partitionKeys,
              Map<String,String> parameters)
Parameters:
tableName -
database -
sd -
owner -
createTime -
lastAccessTime -
retention -
partitionKeys -
parameters -
Method Detail

getTableName

public String getTableName()
Returns:
the tableName

setTableName

public void setTableName(String tableName)
Parameters:
tableName - the tableName to set

getSd

public MStorageDescriptor getSd()
Returns:
the sd

setSd

public void setSd(MStorageDescriptor sd)
Parameters:
sd - the sd to set

getPartitionKeys

public List<MFieldSchema> getPartitionKeys()
Returns:
the partKeys

setPartitionKeys

public void setPartitionKeys(List<MFieldSchema> partKeys)
Parameters:
partKeys - the partKeys to set

getParameters

public Map<String,String> getParameters()
Returns:
the parameters

setParameters

public void setParameters(Map<String,String> parameters)
Parameters:
parameters - the parameters to set

getOwner

public String getOwner()
Returns:
the owner

setOwner

public void setOwner(String owner)
Parameters:
owner - the owner to set

getCreateTime

public int getCreateTime()
Returns:
the createTime

setCreateTime

public void setCreateTime(int createTime)
Parameters:
createTime - the createTime to set

getDatabase

public MDatabase getDatabase()
Returns:
the database

setDatabase

public void setDatabase(MDatabase database)
Parameters:
database - the database to set

getRetention

public int getRetention()
Returns:
the retention

setRetention

public void setRetention(int retention)
Parameters:
retention - the retention to set

setLastAccessTime

public void setLastAccessTime(int lastAccessTime)
Parameters:
lastAccessTime - the lastAccessTime to set

getLastAccessTime

public int getLastAccessTime()
Returns:
the lastAccessTime


Copyright © 2009 The Apache Software Foundation