|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.yarn.util.InputSplitUtils
public final class InputSplitUtils
Helper class to get input splits.
| 方法摘要 | |
|---|---|
static String |
expandInputFolder(org.apache.hadoop.conf.Configuration conf)
Expand folder to all files to support all files in that folder |
static int |
getBlockIndex(org.apache.hadoop.fs.BlockLocation[] blkLocations,
long offset)
|
static List<List<org.apache.hadoop.mapreduce.InputSplit>> |
getCombineGuaguaSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
long maxCombinedSplitSize)
|
static List<org.apache.hadoop.mapreduce.InputSplit> |
getFileSplits(org.apache.hadoop.conf.Configuration conf,
long splitSize)
Generate the list of files and make them into FileSplits. |
static List<org.apache.hadoop.mapreduce.InputSplit> |
getFinalCombineGuaguaSplits(List<org.apache.hadoop.mapreduce.InputSplit> newSplits,
long combineSize)
Copy from pig implementation, need to check this code logic. |
static List<org.apache.hadoop.mapreduce.InputSplit> |
getGuaguaSplits(org.apache.hadoop.conf.Configuration conf,
long splitSize)
Generate the list of files and make them into FileSplits. |
static org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.conf.Configuration conf)
List all the inputs files. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static List<org.apache.hadoop.mapreduce.InputSplit> getFinalCombineGuaguaSplits(List<org.apache.hadoop.mapreduce.InputSplit> newSplits,
long combineSize)
throws IOException
IOException
public static org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOException
public static String expandInputFolder(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOException
public static List<org.apache.hadoop.mapreduce.InputSplit> getFileSplits(org.apache.hadoop.conf.Configuration conf,
long splitSize)
throws IOException
IOException
public static List<org.apache.hadoop.mapreduce.InputSplit> getGuaguaSplits(org.apache.hadoop.conf.Configuration conf,
long splitSize)
throws IOException
IOException
public static int getBlockIndex(org.apache.hadoop.fs.BlockLocation[] blkLocations,
long offset)
public static List<List<org.apache.hadoop.mapreduce.InputSplit>> getCombineGuaguaSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
long maxCombinedSplitSize)
throws IOException,
InterruptedException
IOException
InterruptedException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||