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()
InputSplitInfo
getTaskLocationHints
in interface InputSplitInfo
public org.apache.hadoop.fs.Path getSplitsMetaInfoFile()
InputSplitInfo
getSplitsMetaInfoFile
in interface InputSplitInfo
public org.apache.hadoop.fs.Path getSplitsFile()
InputSplitInfo
getSplitsFile
in interface InputSplitInfo
public int getNumTasks()
InputSplitInfo
getNumTasks
in interface InputSplitInfo
public InputSplitInfo.Type getType()
InputSplitInfo
InputSplitInfo.Type
of the InputSplitInfogetType
in interface InputSplitInfo
public MRRuntimeProtos.MRSplitsProto getSplitsProto()
InputSplitInfo
getSplitsProto
in interface InputSplitInfo
public org.apache.hadoop.security.Credentials getCredentials()
InputSplitInfo
Credentials
which may be required to access the splits.getCredentials
in interface InputSplitInfo
Credentials
which may be required to access the splits.public boolean holdsNewFormatSplits()
InputSplitInfo
holdsNewFormatSplits
in interface InputSplitInfo
public org.apache.hadoop.mapreduce.InputSplit[] getNewFormatSplits()
InputSplitInfo
getNewFormatSplits
in interface InputSplitInfo
public org.apache.hadoop.mapred.InputSplit[] getOldFormatSplits()
InputSplitInfo
getOldFormatSplits
in interface InputSplitInfo
Copyright © 2016 Apache Software Foundation. All rights reserved.