src/Entrypoint.scala
1package dacp.ecoflow
2object Op_rainfall_data_culling {
3 def main(args:Array[String]):Unit={
4 val op=new org.apache.spark.sql.dacp.EcoFlowOperator("cn.piflow.bundle.flux.exceptionValueHandling.RainfallDataCulling",Map("left"->"fluxCbsPort","right"->"metroCbsPort"),Set("fields","rainFallField","flagValue")){}
5 val protocol=System.out;System.setOut(System.err)
6 try {if(args.headOption.exists(v=>v=="infer" || v=="infer-worker"))
7 xstream.operator.OperatorRunner.infer(args,protocol,op.previewOutputs)(op.inferOutputs)
8 else xstream.operator.OperatorRunner.run(args,protocol)(op.process)}
9 finally System.setOut(protocol)
10 }
11}