org.apache.hadoop.hive.common
Class FileUtils

java.lang.Object
  extended by org.apache.hadoop.hive.common.FileUtils

public class FileUtils
extends Object

Collection of file manipulation utilities common across Hive


Constructor Summary
FileUtils()
           
 
Method Summary
static org.apache.hadoop.fs.Path makeQualified(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
          Variant of Path.makeQualified that qualifies the input path against the default file system indicated by the configuration This does not require a FileSystem handle in most cases - only requires the Filesystem URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

makeQualified

public static org.apache.hadoop.fs.Path makeQualified(org.apache.hadoop.fs.Path path,
                                                      org.apache.hadoop.conf.Configuration conf)
                                               throws IOException
Variant of Path.makeQualified that qualifies the input path against the default file system indicated by the configuration This does not require a FileSystem handle in most cases - only requires the Filesystem URI. This saves the cost of opening the Filesystem - which can involve RPCs - as well as cause errors

Parameters:
path - path to be fully qualified
conf - Configuration file
Returns:
path qualified relative to default file system
Throws:
IOException


Copyright © 2009 The Apache Software Foundation