|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.metastore.ROTable
org.apache.hadoop.hive.metastore.RWTable
public class RWTable
Field Summary | |
---|---|
protected boolean |
o_rdonly_
|
Fields inherited from class org.apache.hadoop.hive.metastore.ROTable |
---|
conf_, LOG, parent_, schema_, store_, tableName_, whPath_ |
Constructor Summary | |
---|---|
protected |
RWTable()
|
protected |
RWTable(DB parent,
String tableName,
org.apache.hadoop.conf.Configuration conf,
boolean o_rdonly)
|
Method Summary | |
---|---|
void |
alter(Properties schema)
alter Add column names to a column set ser de table. |
static Table |
create(DB parent,
String tableName,
Properties schema,
org.apache.hadoop.conf.Configuration conf)
create |
void |
createPartition(String name)
|
void |
drop()
drop delete the schema for this table and optionally delete the data. |
void |
drop(boolean deleteData)
drop delete the schema for this table and optionally delete the data. |
protected void |
save(boolean overwrite)
save Save the schema. |
void |
truncate()
truncate delete the data, but not the schema Can be applied on a partition by partition basis |
void |
truncate(String partition)
|
Methods inherited from class org.apache.hadoop.hive.metastore.ROTable |
---|
equals, getPartitions, getPath, getSchema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean o_rdonly_
Constructor Detail |
---|
protected RWTable()
protected RWTable(DB parent, String tableName, org.apache.hadoop.conf.Configuration conf, boolean o_rdonly) throws UnknownTableException, MetaException
UnknownTableException
MetaException
Method Detail |
---|
public void createPartition(String name) throws IOException
IOException
public void drop(boolean deleteData) throws MetaException
deleteData
- should we delete the underlying data or just the schema?
MetaException
- if any problems instantiating this objectpublic void drop() throws MetaException
MetaException
- if any problems instantiating this objectpublic void truncate() throws MetaException
MetaException
- if any problems instantiating this objectpublic void truncate(String partition) throws MetaException
MetaException
public void alter(Properties schema) throws MetaException
schema
- the property value pairs for the table
MetaException
- if any problems altering the tablepublic static Table create(DB parent, String tableName, Properties schema, org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaException
- if any problems encountered during the creationprotected void save(boolean overwrite) throws MetaException
overwrite
- - should this be a create or an alter basically
MetaException
- if any problems saving the schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |