public class AssertPredicate extends ExecutableOperator
| Constructor and Description |
|---|
AssertPredicate()
Create the assertion operator.
|
AssertPredicate(ScalarValuedFunction predicate)
Create the assertion operator with the given predicate.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeMetadata(StreamingMetadataContext ctx)
Implementations must adhere to the following contracts
|
protected void |
execute(ExecutionContext context)
Executes the operator.
|
RecordPort |
getInput()
Get the input port of this operator.
|
ScalarValuedFunction |
getPredicate()
Get the predicate function.
|
void |
setPredicate(ScalarValuedFunction predicate)
Set the predicate function to assert.
|
void |
setPredicate(String predicateExpression)
Sets the predicate(s) to use for assertion based on an expression similar to a where clause of a SQL query.
|
cloneForExecution, getNumInputCopies, getPortSettings, handleInactiveOutputdisableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorpublic AssertPredicate()
public AssertPredicate(ScalarValuedFunction predicate)
predicate - predicate function to assertpublic ScalarValuedFunction getPredicate()
public void setPredicate(ScalarValuedFunction predicate)
boolean type.predicate - predicate function to assertcom.pervasive.datarush.graphs.physical.InvalidPropertyValueException - thrown if the predicate function does not return a boolean typepublic void setPredicate(String predicateExpression)
predicateExpression - predicate expression to applypublic RecordPort getInput()
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#setOutputDataOrderingRecordPort#setOutputDataDistributionAbstractModelPort#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 StreamingOperatorctx - the contextprotected void execute(ExecutionContext context)
ExecutableOperatorexecute in class ExecutableOperatorcontext - context in which to lookup physical ports bound to logical portsCopyright © 2021 Actian Corporation. All rights reserved.