selector = MasterKindOperatorAnalyzer.findSelector(context.environment, context);
} catch (ResolveException e) {
a.error(e.getMessage());
}
MasterJoinUpdate annotation = context.element.getAnnotation(MasterJoinUpdate.class);
if (annotation == null) {
a.error("注釈の解釈に失敗しました");
return null;
}
OperatorProcessorUtil.checkPortName(a, new String[] {
annotation.updatedPort(),
annotation.missedPort(),
});
if (a.hasError()) {
return null;
}
Builder builder = new Builder(getTargetAnnotationType(), context);
builder.addAttribute(a.getObservationCount());
builder.addAttribute(FlowBoundary.SHUFFLE);
if (selector != null) {
builder.addOperatorHelper(selector);
}
builder.setDocumentation(a.getExecutableDocument());
builder.addInput(
a.getParameterDocument(0),
a.getParameterName(0),
a.getParameterType(0).getType(),
0,
masterKey);
builder.addInput(
a.getParameterDocument(1),
a.getParameterName(1),
a.getParameterType(1).getType(),
1,
transactionKey);
builder.addOutput(
"引き当ておよび更新が成功したデータ",
annotation.updatedPort(),
a.getParameterType(1).getType(),
a.getParameterName(1),
null);
builder.addOutput(
"引き当てに失敗したデータ",
annotation.missedPort(),
a.getParameterType(1).getType(),
a.getParameterName(1),
null);
for (int i = 2, n = a.countParameters(); i < n; i++) {
builder.addParameter(