org.apache.mahout.common
Class HadoopUtil

java.lang.Object
  extended by org.apache.mahout.common.HadoopUtil

public final class HadoopUtil
extends java.lang.Object


Method Summary
static void deletePath(java.lang.String output, org.apache.hadoop.fs.FileSystem fs)
           
static void deletePaths(java.lang.Iterable<org.apache.hadoop.fs.Path> paths, org.apache.hadoop.fs.FileSystem fs)
           
static void overwriteOutput(java.lang.String output)
           
static void rename(org.apache.hadoop.fs.Path from, org.apache.hadoop.fs.Path to, org.apache.hadoop.fs.FileSystem fs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

overwriteOutput

public static void overwriteOutput(java.lang.String output)
                            throws java.io.IOException
Throws:
java.io.IOException

deletePath

public static void deletePath(java.lang.String output,
                              org.apache.hadoop.fs.FileSystem fs)
                       throws java.io.IOException
Throws:
java.io.IOException

deletePaths

public static void deletePaths(java.lang.Iterable<org.apache.hadoop.fs.Path> paths,
                               org.apache.hadoop.fs.FileSystem fs)
                        throws java.io.IOException
Throws:
java.io.IOException

rename

public static void rename(org.apache.hadoop.fs.Path from,
                          org.apache.hadoop.fs.Path to,
                          org.apache.hadoop.fs.FileSystem fs)
                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.