Constructor and Description |
---|
BridgeOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) |
static OutputTransactionContext |
createContext(org.apache.hadoop.mapreduce.JobContext context,
String datasourceId)
Creates output context from Hadoop context.
|
static OutputAttemptContext |
createContext(org.apache.hadoop.mapreduce.TaskAttemptContext context,
String datasourceId)
Creates output context from Hadoop context.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<Object,Object> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static boolean |
hasOutput(org.apache.hadoop.mapreduce.JobContext context)
Returns whether this stage has an output corresponding this format.
|
static void |
set(org.apache.hadoop.mapreduce.JobContext context,
List<StageOutput> outputList)
Sets current output information into the current context.
|
public static boolean hasOutput(org.apache.hadoop.mapreduce.JobContext context)
context
- current contexttrue
if such output exists, otherwise false
IllegalArgumentException
- if some parameters were null
public static void set(org.apache.hadoop.mapreduce.JobContext context, List<StageOutput> outputList)
context
- current contextoutputList
- output information to be setIllegalArgumentException
- if some parameters were null
public static OutputTransactionContext createContext(org.apache.hadoop.mapreduce.JobContext context, String datasourceId)
context
- current context in HadoopdatasourceId
- datasource IDIllegalArgumentException
- if some parameters were null
public static OutputAttemptContext createContext(org.apache.hadoop.mapreduce.TaskAttemptContext context, String datasourceId)
context
- current context in HadoopdatasourceId
- datasource IDIllegalArgumentException
- if some parameters were null
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
checkOutputSpecs
in class org.apache.hadoop.mapreduce.OutputFormat<Object,Object>
IOException
InterruptedException
public org.apache.hadoop.mapreduce.RecordWriter<Object,Object> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter
in class org.apache.hadoop.mapreduce.OutputFormat<Object,Object>
IOException
InterruptedException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getOutputCommitter
in class org.apache.hadoop.mapreduce.OutputFormat<Object,Object>
IOException
InterruptedException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.