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, String viewOriginalText, String viewExpandedText, String tableType)
           
 
Method Summary
 int getCreateTime()
           
 MDatabase getDatabase()
           
 int getLastAccessTime()
           
 String getOwner()
           
 Map<String,String> getParameters()
           
 List<MFieldSchema> getPartitionKeys()
           
 int getRetention()
           
 MStorageDescriptor getSd()
           
 String getTableName()
           
 String getTableType()
           
 String getViewExpandedText()
           
 String getViewOriginalText()
           
 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)
           
 void setTableType(String tableType)
           
 void setViewExpandedText(String viewExpandedText)
           
 void setViewOriginalText(String viewOriginalText)
           
 
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,
              String viewOriginalText,
              String viewExpandedText,
              String tableType)
Parameters:
tableName -
database -
sd -
owner -
createTime -
lastAccessTime -
retention -
partitionKeys -
parameters -
viewOriginalText -
viewExpandedText -
tableType -
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

getViewOriginalText

public String getViewOriginalText()
Returns:
the original view text, or null if this table is not a view

setViewOriginalText

public void setViewOriginalText(String viewOriginalText)
Parameters:
viewOriginalText - the original view text to set

getViewExpandedText

public String getViewExpandedText()
Returns:
the expanded view text, or null if this table is not a view

setViewExpandedText

public void setViewExpandedText(String viewExpandedText)
Parameters:
viewExpandedText - the expanded view text 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

setTableType

public void setTableType(String tableType)
Parameters:
tableType - the tableType to set

getTableType

public String getTableType()
Returns:
the tableType


Copyright © 2012 The Apache Software Foundation