org.apache.hadoop.hive.metastore
Class Warehouse

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.Warehouse

public class Warehouse
extends Object

This class represents a warehouse where data of Hive tables is stored


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
Warehouse(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 boolean deleteDir(org.apache.hadoop.fs.Path f, boolean recursive)
           
 org.apache.hadoop.fs.Path getDefaultDatabasePath(String dbName)
           
 org.apache.hadoop.fs.Path getDefaultTablePath(String dbName, String tableName)
           
 org.apache.hadoop.fs.FileSystem getFs()
           
 org.apache.hadoop.fs.Path getPartitionPath(org.apache.hadoop.fs.Path tblPath, LinkedHashMap<String,String> pm)
           
 org.apache.hadoop.fs.Path getPartitionPath(String dbName, String tableName, LinkedHashMap<String,String> pm)
           
 boolean isDir(org.apache.hadoop.fs.Path f)
           
static String makePartName(List<FieldSchema> partCols, List<String> vals)
           
static String makePartName(Map<String,String> spec)
           
 boolean mkdirs(org.apache.hadoop.fs.Path f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

Warehouse

public Warehouse(org.apache.hadoop.conf.Configuration conf)
          throws MetaException
Throws:
MetaException
Method Detail

getFs

public org.apache.hadoop.fs.FileSystem getFs()

getDefaultDatabasePath

public org.apache.hadoop.fs.Path getDefaultDatabasePath(String dbName)

getDefaultTablePath

public org.apache.hadoop.fs.Path getDefaultTablePath(String dbName,
                                                     String tableName)

mkdirs

public boolean mkdirs(org.apache.hadoop.fs.Path f)
               throws MetaException
Throws:
MetaException

deleteDir

public boolean deleteDir(org.apache.hadoop.fs.Path f,
                         boolean recursive)
                  throws MetaException
Throws:
MetaException

makePartName

public static String makePartName(Map<String,String> spec)
                           throws MetaException
Throws:
MetaException

getPartitionPath

public org.apache.hadoop.fs.Path getPartitionPath(String dbName,
                                                  String tableName,
                                                  LinkedHashMap<String,String> pm)
                                           throws MetaException
Throws:
MetaException

getPartitionPath

public org.apache.hadoop.fs.Path getPartitionPath(org.apache.hadoop.fs.Path tblPath,
                                                  LinkedHashMap<String,String> pm)
                                           throws MetaException
Throws:
MetaException

isDir

public boolean isDir(org.apache.hadoop.fs.Path f)
              throws MetaException
Throws:
MetaException

makePartName

public static String makePartName(List<FieldSchema> partCols,
                                  List<String> vals)
                           throws MetaException
Throws:
MetaException


Copyright © 2009 The Apache Software Foundation