public abstract class LocalTaskContext extends Object implements TaskContext
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
LocalTaskContext(BridgeJobConf conf,
TaskId taskid,
com.aliyun.odps.counter.Counters counters) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputVolumeFileSystem, getInputVolumeFileSystem, getInputVolumeInfo, getInputVolumeInfo, getOutputVolumeFileSystem, getOutputVolumeFileSystem, getOutputVolumeInfo, getOutputVolumeInfo, write, write, writepublic LocalTaskContext(BridgeJobConf conf, TaskId taskid, com.aliyun.odps.counter.Counters counters) throws IOException
IOExceptionpublic Mapper createMapper()
public Reducer createReducer()
public Reducer createCombiner()
public void closeWriters()
throws IOException
IOExceptionpublic String[] getGroupingColumns()
getGroupingColumns in interface JobContextpublic Column[] getMapOutputKeySchema()
getMapOutputKeySchema in interface JobContextpublic Column[] getMapOutputValueSchema()
getMapOutputValueSchema in interface JobContextpublic Class<? extends Mapper> getMapperClass()
getMapperClass in interface JobContextpublic int getNumReduceTasks()
getNumReduceTasks in interface JobContextpublic Class<? extends Reducer> getReducerClass()
getReducerClass in interface JobContextpublic Class<? extends Reducer> getCombinerClass()
getCombinerClass in interface JobContextpublic Record createOutputRecord() throws IOException
createOutputRecord in interface TaskContextIOExceptionpublic Record createOutputRecord(String label) throws IOException
createOutputRecord in interface TaskContextIOExceptionpublic com.aliyun.odps.counter.Counter getCounter(Enum<?> key)
getCounter in interface TaskContextpublic com.aliyun.odps.counter.Counter getCounter(String groupName, String counterName)
getCounter in interface TaskContextpublic TaskId getTaskID()
getTaskID in interface TaskContextpublic void progress()
progress in interface TaskContextpublic BufferedInputStream readResourceFileAsStream(String name) throws IOException
readResourceFileAsStream in interface TaskContextIOExceptionpublic Iterable<BufferedInputStream> readResourceArchiveAsStream(String resourceName) throws IOException
readResourceArchiveAsStream in interface TaskContextIOExceptionpublic Iterable<BufferedInputStream> readResourceArchiveAsStream(String resourceName, String relativePath) throws IOException
readResourceArchiveAsStream in interface TaskContextIOExceptionpublic Iterator<Record> readResourceTable(String tbl) throws IOException
readResourceTable in interface TaskContextIOExceptionpublic JobConf getJobConf()
getJobConf in interface JobContextpublic Record createMapOutputKeyRecord()
createMapOutputKeyRecord in interface TaskContextpublic Record createMapOutputValueRecord()
createMapOutputValueRecord in interface TaskContextpublic TableInfo[] getOutputTableInfo()
getOutputTableInfo in interface TaskContextpublic Record createOutputKeyRecord() throws IOException
createOutputKeyRecord in interface TaskContextIOExceptionpublic Record createOutputValueRecord() throws IOException
createOutputValueRecord in interface TaskContextIOExceptionpublic boolean isPipelineMode()
public Pipeline getPipeline()
public Pipeline.TransformNode getCurrentNode()
Copyright © 2020 Alibaba Cloud Computing. All rights reserved.