public abstract class InitializeWorkerBase<ExecState> extends ExecutableOperator
Modifier and Type | Field and Description |
---|---|
protected int |
endPortRange |
protected static org.apache.commons.logging.Log |
logger |
protected int |
retryCount |
protected int |
startPortRange |
protected String |
table |
protected List<String> |
targetColumns |
protected int |
traceLevel |
protected int |
workerParallelism |
Constructor and Description |
---|
InitializeWorkerBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
cancel(ExecState state) |
protected abstract void |
checkRetryState(ExecState invokerRef) |
protected void |
computeMetadata(StreamingMetadataContext ctx)
Implementations must adhere to the following contracts
|
protected abstract ExecState |
createInvoker(ExecutionContext ctx,
String invokerId) |
protected void |
execute(ExecutionContext ctx)
Executes the operator.
|
int |
getEndPortRange() |
int |
getRetryCount() |
List<com.pervasive.datarush.operators.io.paraccel.SliceIdentifier> |
getSliceIdentifiers() |
SimpleModelPort<com.pervasive.datarush.operators.io.paraccel.SliceInfo> |
getSliceOutput() |
int |
getStartPortRange() |
String |
getTable() |
List<String> |
getTargetColumns() |
int |
getTimeoutInterval() |
int |
getTraceLevel() |
int |
getWorkerParallelism() |
protected abstract void |
initializeProtocol(String invokerId,
ExecState invoker,
InetAddress inetAddr,
int port,
com.pervasive.datarush.operators.io.paraccel.SliceInfo sliceInfo,
int partitionCount) |
void |
setEndPortRange(int endPortRange) |
void |
setRetryCount(int retryCount) |
void |
setSliceIdentifiers(List<com.pervasive.datarush.operators.io.paraccel.SliceIdentifier> sliceIdentifiers) |
void |
setStartPortRange(int startPortRange) |
void |
setTable(String table) |
void |
setTargetColumns(List<String> targetColumns) |
void |
setTimeoutInterval(int timeoutInterval) |
void |
setTraceLevel(int traceLevel) |
void |
setWorkerParallelism(int workerParallelism) |
cloneForExecution, getNumInputCopies, getPortSettings, handleInactiveOutput
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
protected static final org.apache.commons.logging.Log logger
protected int workerParallelism
protected int traceLevel
protected int retryCount
protected String table
protected int startPortRange
protected int endPortRange
public SimpleModelPort<com.pervasive.datarush.operators.io.paraccel.SliceInfo> getSliceOutput()
public List<com.pervasive.datarush.operators.io.paraccel.SliceIdentifier> getSliceIdentifiers()
public void setSliceIdentifiers(List<com.pervasive.datarush.operators.io.paraccel.SliceIdentifier> sliceIdentifiers)
public int getWorkerParallelism()
public void setWorkerParallelism(int workerParallelism)
public int getTraceLevel()
public void setTraceLevel(int traceLevel)
public int getRetryCount()
public void setRetryCount(int retryCount)
public int getTimeoutInterval()
public void setTimeoutInterval(int timeoutInterval)
public String getTable()
public void setTable(String table)
public int getStartPortRange()
public void setStartPortRange(int startPortRange)
public int getEndPortRange()
public void setEndPortRange(int endPortRange)
protected void computeMetadata(StreamingMetadataContext ctx)
StreamingOperator
StreamingMetadataContext.parallelize(ParallelismStrategy)
.
RecordPort#setRequiredDataOrdering
, otherwise data may arrive in any order.
RecordPort#setRequiredDataDistribution
, otherwise data will arrive in an unspecified partial distribution
.
RecordPort#getSourceDataDistribution
and RecordPort#getSourceDataOrdering
. These should be
viewed as a hints to help chose a more efficient algorithm. In such cases, though, operators must
still declare data ordering and data distribution requirements; otherwise there is no guarantee that
data will arrive sorted/distributed as required.
RecordPort#setType
.RecordPort#setOutputDataOrdering
RecordPort#setOutputDataDistribution
AbstractModelPort#setMergeHandler
.MergeModel
is a convenient, re-usable model reducer, parameterized with
a merge-handler.
SimpleModelPort
's have no associated metadata and therefore there is
never any output metadata to declare. PMMLPort
's, on the other hand,
do have associated metadata. For all PMMLPorts, implementations must declare
the following:
PMMLPort.setPMMLModelSpec
.
computeMetadata
in class StreamingOperator
ctx
- the contextprotected void execute(ExecutionContext ctx)
ExecutableOperator
execute
in class ExecutableOperator
ctx
- context in which to lookup physical ports bound to logical portsprotected abstract void cancel(ExecState state)
protected abstract ExecState createInvoker(ExecutionContext ctx, String invokerId)
protected abstract void initializeProtocol(String invokerId, ExecState invoker, InetAddress inetAddr, int port, com.pervasive.datarush.operators.io.paraccel.SliceInfo sliceInfo, int partitionCount)
protected abstract void checkRetryState(ExecState invokerRef)
Copyright © 2020 Actian Corporation. All rights reserved.