org.apache.hadoop.hive.metastore
Class ROTable

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.ROTable
Direct Known Subclasses:
RWTable

public class ROTable
extends Object


Field Summary
protected  org.apache.hadoop.conf.Configuration conf_
           
protected static org.apache.commons.logging.Log LOG
           
protected  DB parent_
           
protected  Properties schema_
           
protected  FileStore store_
           
protected  String tableName_
           
protected  org.apache.hadoop.fs.Path whPath_
           
 
Constructor Summary
protected ROTable()
           
protected ROTable(DB parent, String tableName, org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 boolean equals(Table other)
           
 ArrayList<String> getPartitions()
          getPartitions Scan the file system and find all the partitions of this table Not recursive right now - needs to be!
 org.apache.hadoop.fs.Path getPath()
           
 Properties getSchema()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableName_

protected String tableName_

schema_

protected Properties schema_

conf_

protected org.apache.hadoop.conf.Configuration conf_

whPath_

protected org.apache.hadoop.fs.Path whPath_

parent_

protected DB parent_

LOG

protected static final org.apache.commons.logging.Log LOG

store_

protected FileStore store_
Constructor Detail

ROTable

protected ROTable()

ROTable

protected ROTable(DB parent,
                  String tableName,
                  org.apache.hadoop.conf.Configuration conf)
           throws UnknownTableException,
                  MetaException
Throws:
UnknownTableException
MetaException
Method Detail

equals

public boolean equals(Table other)

getSchema

public Properties getSchema()

getPath

public org.apache.hadoop.fs.Path getPath()

getPartitions

public ArrayList<String> getPartitions()
                                throws MetaException
getPartitions Scan the file system and find all the partitions of this table Not recursive right now - needs to be!

Returns:
a list of partitions - not full paths
Throws:
MetaException - if gneneral problem or this table does not exist.


Copyright © 2009 The Apache Software Foundation