pulasthi commented on a change in pull request #10888: URL: https://github.com/apache/beam/pull/10888#discussion_r428399477
########## File path: runners/twister2/src/main/java/org/apache/beam/runners/twister2/BeamBatchWorker.java ########## @@ -0,0 +1,162 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.beam.runners.twister2; + +import edu.iu.dsc.tws.api.config.Config; +import edu.iu.dsc.tws.api.tset.TBase; +import edu.iu.dsc.tws.api.tset.sets.TSet; +import edu.iu.dsc.tws.api.tset.sets.batch.BatchTSet; +import edu.iu.dsc.tws.tset.TBaseGraph; +import edu.iu.dsc.tws.tset.env.BatchTSetEnvironment; +import edu.iu.dsc.tws.tset.links.BaseTLink; +import edu.iu.dsc.tws.tset.sets.BaseTSet; +import edu.iu.dsc.tws.tset.sets.BuildableTSet; +import edu.iu.dsc.tws.tset.sets.batch.CachedTSet; +import edu.iu.dsc.tws.tset.sets.batch.ComputeTSet; +import edu.iu.dsc.tws.tset.sets.batch.SinkTSet; +import edu.iu.dsc.tws.tset.worker.BatchTSetIWorker; +import java.io.Serializable; +import java.util.ArrayDeque; +import java.util.Deque; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Set; +import org.apache.beam.runners.twister2.translators.functions.DoFnFunction; +import org.apache.beam.runners.twister2.translators.functions.Twister2SinkFunction; + +/** + * The Twister2 worker that will execute the job logic once the job is submitted from the run + * method. + */ +public class BeamBatchWorker implements Serializable, BatchTSetIWorker { + + private static final String SIDEINPUTS = "sideInputs"; + private static final String LEAVES = "leaves"; + private static final String GRAPH = "graph"; + private HashMap<String, BatchTSet<?>> sideInputDataSets; + private Set<TSet> leaves; Review comment: I might have to take a little time on this and make sure i get the type information correct. Would it be OK to create improvement issue for this for now, so i can get back to it later after the code is merged? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
