@InterfaceAudience.Private @InterfaceStability.Evolving public class TableSnapshotInputFormatImpl extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TableSnapshotInputFormatImpl.InputSplit
Implementation class for InputSplit logic common between mapred and mapreduce. 
 | 
static class  | 
TableSnapshotInputFormatImpl.RecordReader
Implementation class for RecordReader logic common between mapred and mapreduce. 
 | 
| Constructor and Description | 
|---|
TableSnapshotInputFormatImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
static List<String> | 
getBestLocations(org.apache.hadoop.conf.Configuration conf,
                HDFSBlocksDistribution blockDistribution)
This computes the locations to be passed from the InputSplit. 
 | 
static List<TableSnapshotInputFormatImpl.InputSplit> | 
getSplits(org.apache.hadoop.conf.Configuration conf)  | 
static void | 
setInput(org.apache.hadoop.conf.Configuration conf,
        String snapshotName,
        org.apache.hadoop.fs.Path restoreDir)
Configures the job to use TableSnapshotInputFormat to read from a snapshot. 
 | 
public static List<TableSnapshotInputFormatImpl.InputSplit> getSplits(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static List<String> getBestLocations(org.apache.hadoop.conf.Configuration conf, HDFSBlocksDistribution blockDistribution)
public static void setInput(org.apache.hadoop.conf.Configuration conf,
            String snapshotName,
            org.apache.hadoop.fs.Path restoreDir)
                     throws IOException
conf - the job to configuresnapshotName - the name of the snapshot to read fromrestoreDir - a temporary directory to restore the snapshot into. Current user should
 have write permissions to this directory, and this should not be a subdirectory of rootdir.
 After the job is finished, restoreDir can be deleted.IOException - if an error occursCopyright © 2014 The Apache Software Foundation. All rights reserved.