@Internal public class DualInputSemanticProperties extends Object implements SemanticProperties
SemanticProperties.EmptySemanticProperties, SemanticProperties.InvalidSemanticAnnotationException
Constructor and Description |
---|
DualInputSemanticProperties() |
Modifier and Type | Method and Description |
---|---|
void |
addForwardedField(int input,
int sourceField,
int targetField)
Adds, to the existing information, a field that is forwarded directly from the source
record(s) in the first input to the destination record(s).
|
void |
addReadFields(int input,
FieldSet readFields)
Adds, to the existing information, field(s) that are read in the source record(s) from the
first input.
|
int |
getForwardingSourceField(int input,
int targetField)
Returns the index of the source field on the given input from which the target field has been
unmodified copied by a function.
|
FieldSet |
getForwardingTargetFields(int input,
int sourceField)
Returns the indexes of all target fields to which a source field has been unmodified copied
by a function.
|
FieldSet |
getReadFields(int input)
Returns the position indexes of all fields of an input that are accessed by a function.
|
String |
toString() |
public FieldSet getForwardingTargetFields(int input, int sourceField)
SemanticProperties
getForwardingTargetFields
in interface SemanticProperties
input
- The input id for the requested source field (0 for first input, 1 for second
input)sourceField
- The index of the field for which the target position index is requested.public int getForwardingSourceField(int input, int targetField)
SemanticProperties
getForwardingSourceField
in interface SemanticProperties
input
- The input id for the requested source field (0 for first input, 1 for second
input)targetField
- The index of the target field to which the source field has been copied.public FieldSet getReadFields(int input)
SemanticProperties
getReadFields
in interface SemanticProperties
input
- The input id for which accessed fields are requested.public void addForwardedField(int input, int sourceField, int targetField)
input
- the input of the source fieldsourceField
- the position in the source recordtargetField
- the position in the destination recordpublic void addReadFields(int input, FieldSet readFields)
input
- the input of the read fieldsreadFields
- the position(s) in the source record(s)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.