public class FunctionOperator<OUT,FUNCTION extends Function> extends Object implements com.datatorrent.api.Operator
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionOperator.FilterFunctionOperator<IN> |
static class |
FunctionOperator.FlatMapFunctionOperator<IN,OUT> |
static class |
FunctionOperator.FoldFunctionOperator<IN,OUT> |
static class |
FunctionOperator.MapFunctionOperator<IN,OUT> |
static class |
FunctionOperator.ReduceFunctionOperator<IN> |
com.datatorrent.api.Operator.ActivationListener<CONTEXT extends com.datatorrent.api.Context>, com.datatorrent.api.Operator.CheckpointListener, com.datatorrent.api.Operator.CheckpointNotificationListener, com.datatorrent.api.Operator.DelayOperator, com.datatorrent.api.Operator.IdleTimeHandler, com.datatorrent.api.Operator.InputPort<T>, com.datatorrent.api.Operator.OutputPort<T>, com.datatorrent.api.Operator.Port, com.datatorrent.api.Operator.ProcessingMode, com.datatorrent.api.Operator.ShutdownException, com.datatorrent.api.Operator.Unifier<T>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isAnnonymous |
com.datatorrent.api.DefaultOutputPort<OUT> |
output |
protected boolean |
stateful |
protected FUNCTION |
statefulF |
protected FUNCTION |
statelessF |
| Constructor and Description |
|---|
FunctionOperator()
Default constructor to make kryo happy
|
FunctionOperator(FUNCTION f) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginWindow(long l) |
void |
endWindow() |
FUNCTION |
getFunction() |
FUNCTION |
getStatefulF() |
FUNCTION |
getStatelessF() |
boolean |
isAnnonymous() |
boolean |
isStateful() |
void |
setIsAnnonymous(boolean isAnnonymous) |
void |
setStateful(boolean stateful) |
void |
setStatefulF(FUNCTION statefulF) |
void |
setStatelessF(FUNCTION statelessF) |
void |
setup(com.datatorrent.api.Context.OperatorContext context) |
void |
teardown() |
protected boolean stateful
protected boolean isAnnonymous
public final transient com.datatorrent.api.DefaultOutputPort<OUT> output
public FunctionOperator(FUNCTION f)
public FunctionOperator()
public void beginWindow(long l)
beginWindow in interface com.datatorrent.api.Operatorpublic void endWindow()
endWindow in interface com.datatorrent.api.Operatorpublic void setup(com.datatorrent.api.Context.OperatorContext context)
setup in interface com.datatorrent.api.Component<com.datatorrent.api.Context.OperatorContext>public void teardown()
teardown in interface com.datatorrent.api.Component<com.datatorrent.api.Context.OperatorContext>public FUNCTION getFunction()
public FUNCTION getStatelessF()
public void setStatelessF(FUNCTION statelessF)
public FUNCTION getStatefulF()
public void setStatefulF(FUNCTION statefulF)
public boolean isStateful()
public void setStateful(boolean stateful)
public boolean isAnnonymous()
public void setIsAnnonymous(boolean isAnnonymous)
Copyright © 2015-2016 Apache Software Foundation. All Rights Reserved.