public class SequenceFileUtils extends Object
SequenceFiles.| Modifier and Type | Method and Description |
|---|---|
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readDirectory(org.apache.hadoop.fs.Path path) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readDirectory(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs,
int max)
Reads key-value pairs from a directory containing SequenceFiles.
|
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFile(org.apache.hadoop.fs.Path path) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFile(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFile(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs,
int max)
Reads key-value pairs from a SequenceFile, up to a maximum number.
|
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFile(org.apache.hadoop.fs.Path path,
int max) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFileIntoMap(org.apache.hadoop.fs.Path path) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFileIntoMap(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFileIntoMap(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs,
int max) |
static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
readFileIntoMap(org.apache.hadoop.fs.Path path,
int max) |
static <K extends org.apache.hadoop.io.Writable> |
readKeys(org.apache.hadoop.fs.Path path) |
static <K extends org.apache.hadoop.io.Writable> |
readKeys(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs) |
static <K extends org.apache.hadoop.io.Writable> |
readKeys(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs,
int max) |
static <K extends org.apache.hadoop.io.Writable> |
readKeys(org.apache.hadoop.fs.Path path,
int max) |
static <V extends org.apache.hadoop.io.Writable> |
readValues(org.apache.hadoop.fs.Path path) |
static <V extends org.apache.hadoop.io.Writable> |
readValues(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs) |
static <V extends org.apache.hadoop.io.Writable> |
readValues(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs,
int max) |
static <V extends org.apache.hadoop.io.Writable> |
readValues(org.apache.hadoop.fs.Path path,
int max) |
public static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readFile(org.apache.hadoop.fs.Path path) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readFile(org.apache.hadoop.fs.Path path, int max) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readFile(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readFile(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, int max) throws IOException
path - path to filemax - maximum of key-value pairs to readIOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> SortedMap<K,V> readFileIntoMap(org.apache.hadoop.fs.Path path) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> SortedMap<K,V> readFileIntoMap(org.apache.hadoop.fs.Path path, int max) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> SortedMap<K,V> readFileIntoMap(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> SortedMap<K,V> readFileIntoMap(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, int max) throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readDirectory(org.apache.hadoop.fs.Path path)
public static <K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> List<PairOfWritables<K,V>> readDirectory(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, int max)
path - path to directorymax - maximum of key-value pairs to read per filepublic static <K extends org.apache.hadoop.io.Writable> List<K> readKeys(org.apache.hadoop.fs.Path path)
public static <K extends org.apache.hadoop.io.Writable> List<K> readKeys(org.apache.hadoop.fs.Path path, int max)
public static <K extends org.apache.hadoop.io.Writable> List<K> readKeys(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs)
public static <K extends org.apache.hadoop.io.Writable> List<K> readKeys(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, int max)
public static <V extends org.apache.hadoop.io.Writable> List<V> readValues(org.apache.hadoop.fs.Path path)
public static <V extends org.apache.hadoop.io.Writable> List<V> readValues(org.apache.hadoop.fs.Path path, int max)
public static <V extends org.apache.hadoop.io.Writable> List<V> readValues(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs)
public static <V extends org.apache.hadoop.io.Writable> List<V> readValues(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, int max)
Copyright © 2014. All rights reserved.