|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bmr.model.StepConfig
com.baidubce.services.bmr.model.StreamingStepConfig
public class StreamingStepConfig
Represent configuration for a streaming step. A streaming step can be configured with name, actionOnFailure, mapper, reducer, input, output and arguments. The essential options are mapper, input, output and actionOnFailure, and the optional ones are name, reducer and arguments.
Constructor Summary | |
---|---|
StreamingStepConfig()
|
Method Summary | |
---|---|
StreamingStepConfig |
withActionOnFailure(String actionOnFailure)
Configure the action on failure for the streaming step. |
StreamingStepConfig |
withAdditionalFile(String remote,
String local)
Configure the additional file for the step. |
StreamingStepConfig |
withArguments(String arguments)
Configure the arguments for the step. |
StreamingStepConfig |
withInput(String input)
Configure the input for the step. |
StreamingStepConfig |
withMapper(String mapper)
Configure the mapper program for the step. |
StreamingStepConfig |
withName(String name)
Configure the name for the step. |
StreamingStepConfig |
withOutput(String output)
Configure the output for the step. |
StreamingStepConfig |
withReducer(String reducer)
Configure the reducer program for the step. |
Methods inherited from class com.baidubce.services.bmr.model.StepConfig |
---|
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamingStepConfig()
Method Detail |
---|
public StreamingStepConfig withInput(String input)
input
- The input path for the step.
public StreamingStepConfig withMapper(String mapper)
mapper
- The mapper program for the step.
public StreamingStepConfig withOutput(String output)
output
- The output path for the step.
public StreamingStepConfig withArguments(String arguments)
arguments
- The arguments for the step.
public StreamingStepConfig withReducer(String reducer)
reducer
- The reducer program for the step.
public StreamingStepConfig withName(String name)
name
- The name for the step.
public StreamingStepConfig withActionOnFailure(String actionOnFailure)
actionOnFailure
- The action on step's failure.
public StreamingStepConfig withAdditionalFile(String remote, String local)
remote
- The remote file of the additional file.local
- The local file of the additional file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |