public class InputSplitInfoDisk extends Object implements InputSplitInfo
InputSplitInfo.Type| Constructor and Description |
|---|
InputSplitInfoDisk(org.apache.hadoop.fs.Path splitsFile,
org.apache.hadoop.fs.Path splitsMetaInfoFile,
int numTasks,
List<org.apache.tez.dag.api.TaskLocationHint> taskLocationHints,
org.apache.hadoop.security.Credentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.Credentials |
getCredentials()
Get
Credentials which may be required to access the splits. |
org.apache.hadoop.mapreduce.InputSplit[] |
getNewFormatSplits()
Get new format splits.
|
int |
getNumTasks()
Get the number of splits that were generated.
|
org.apache.hadoop.mapred.InputSplit[] |
getOldFormatSplits()
Get old format splits.
|
org.apache.hadoop.fs.Path |
getSplitsFile()
Get the path to the splits file
|
org.apache.hadoop.fs.Path |
getSplitsMetaInfoFile()
Get the path to the splits meta info file
|
MRRuntimeProtos.MRSplitsProto |
getSplitsProto()
Get the splits proto
|
List<org.apache.tez.dag.api.TaskLocationHint> |
getTaskLocationHints()
Get the TaskLocationHints for each task
|
InputSplitInfo.Type |
getType()
Get the
InputSplitInfo.Type of the InputSplitInfo |
boolean |
holdsNewFormatSplits()
Check whether the current instance is using old / new format splits
|
public InputSplitInfoDisk(org.apache.hadoop.fs.Path splitsFile,
org.apache.hadoop.fs.Path splitsMetaInfoFile,
int numTasks,
List<org.apache.tez.dag.api.TaskLocationHint> taskLocationHints,
org.apache.hadoop.security.Credentials credentials)
public List<org.apache.tez.dag.api.TaskLocationHint> getTaskLocationHints()
InputSplitInfogetTaskLocationHints in interface InputSplitInfopublic org.apache.hadoop.fs.Path getSplitsMetaInfoFile()
InputSplitInfogetSplitsMetaInfoFile in interface InputSplitInfopublic org.apache.hadoop.fs.Path getSplitsFile()
InputSplitInfogetSplitsFile in interface InputSplitInfopublic int getNumTasks()
InputSplitInfogetNumTasks in interface InputSplitInfopublic InputSplitInfo.Type getType()
InputSplitInfoInputSplitInfo.Type of the InputSplitInfogetType in interface InputSplitInfopublic MRRuntimeProtos.MRSplitsProto getSplitsProto()
InputSplitInfogetSplitsProto in interface InputSplitInfopublic org.apache.hadoop.security.Credentials getCredentials()
InputSplitInfoCredentials which may be required to access the splits.getCredentials in interface InputSplitInfoCredentials which may be required to access the splits.public boolean holdsNewFormatSplits()
InputSplitInfoholdsNewFormatSplits in interface InputSplitInfopublic org.apache.hadoop.mapreduce.InputSplit[] getNewFormatSplits()
InputSplitInfogetNewFormatSplits in interface InputSplitInfopublic org.apache.hadoop.mapred.InputSplit[] getOldFormatSplits()
InputSplitInfogetOldFormatSplits in interface InputSplitInfoCopyright © 2017 Apache Software Foundation. All rights reserved.