public class HdfsUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HdfsUtils.Pair<K,V> |
Constructor and Description |
---|
HdfsUtils() |
Modifier and Type | Method and Description |
---|---|
static ArrayList<org.apache.hadoop.fs.Path> |
listFilesByModificationTime(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path directory,
long olderThan)
list files sorted by modification time that have not been modified since 'olderThan'.
|
static org.apache.hadoop.fs.FSDataOutputStream |
tryCreateFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file)
Returns null if file already exists.
|
public static ArrayList<org.apache.hadoop.fs.Path> listFilesByModificationTime(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path directory, long olderThan) throws IOException
IOException
public static org.apache.hadoop.fs.FSDataOutputStream tryCreateFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) throws IOException
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.