@DataFlowOpParameter
private String propertyNameFile;
public DataFlowSourceOperator create() {
AdapterInputSource inputSource;
if (adapterInputSource != null) {
inputSource = adapterInputSource;
}
else if (file != null) {
if (classpathFile) {
inputSource = new AdapterInputSource(file);
}
else {
inputSource = new AdapterInputSource(new File(file));
}
}
else {
throw new EPException("Failed to find required parameter, either the file or the adapterInputSource parameter is required");
}