public class MatrixSinkDataWorker extends ExecutableOperator
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MatrixSinkDataWorker(com.pervasive.datarush.operators.io.paraccel.TableInfo tableInfo,
List<String> columns,
Map<String,String> columnMap,
int logFrequency,
int retryCount,
int startPortRange,
int endPortRange) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelQuery(int queryPID) |
protected void |
computeMetadata(StreamingMetadataContext ctx)
Implementations must adhere to the following contracts
|
protected void |
execute(ExecutionContext ctx)
Executes the operator.
|
Map<String,String> |
getColumnMap() |
List<String> |
getColumns() |
RecordPort |
getDataInput() |
DoneSignalPort |
getDoneSignalPort() |
int |
getLogFrequency() |
int |
getRetryCount() |
SimpleModelPort<com.pervasive.datarush.operators.io.paraccel.SliceInfo> |
getSliceInput() |
com.pervasive.datarush.operators.io.paraccel.TableInfo |
getTableInfo() |
cloneForExecution, getNumInputCopies, getPortSettings, handleInactiveOutput
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
protected void cancelQuery(int queryPID)
public RecordPort getDataInput()
public SimpleModelPort<com.pervasive.datarush.operators.io.paraccel.SliceInfo> getSliceInput()
public DoneSignalPort getDoneSignalPort()
public com.pervasive.datarush.operators.io.paraccel.TableInfo getTableInfo()
public int getLogFrequency()
public int getRetryCount()
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 portsCopyright © 2020 Actian Corporation. All rights reserved.