public class AssertEqualTypes extends CompositeOperator
The expected
input port is optional. If it is not connected, the
type of the actual
input port will be compared to the expected type
set by the setExpectedType(RecordTokenType)
method.
Constructor and Description |
---|
AssertEqualTypes()
Default constructor
|
AssertEqualTypes(RecordTokenType expectedType)
Construct with an expected type for the actual data input port.
|
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
RecordPort |
getActualInput()
Get the actual value input port.
|
RecordPort |
getExpectedInput()
Get the optional expected value input port.
|
TokenType |
getExpectedType()
Get the expected type value.
|
void |
setExpectedType(RecordTokenType expectedType)
Set the expected type of the actual value input port.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public AssertEqualTypes()
public AssertEqualTypes(RecordTokenType expectedType)
expectedType
- expected typepublic TokenType getExpectedType()
public void setExpectedType(RecordTokenType expectedType)
expectedType
- expected type of the actual portpublic RecordPort getExpectedInput()
setExpectedType(RecordTokenType)
method.public RecordPort getActualInput()
protected void compose(CompositionContext ctx)
CompositeOperator
OperatorComposable.add(O)
OperatorComposable.connect(P, P)
. This includes
connections from the composite's input ports to sub-operators, connections between sub-operators, and
connections from sub-operators output ports to the composite's output portscompose
in class CompositeOperator
ctx
- the contextCopyright © 2019 Actian Corporation. All rights reserved.