Examples of JythonComputation


Examples of org.apache.giraph.jython.JythonComputation

    Object computeObj = pyComputationObj.__tojava__(JythonComputation.class);
    if (!(computeObj instanceof JythonComputation)) {
      throw new IllegalStateException("getComputation: Jython object " +
          computationName(conf) + " is not a JythonComputation");
    }
    JythonComputation jythonCompute = (JythonComputation) computeObj;
    conf.configureIfPossible(jythonCompute);

    JythonGiraphComputation giraphCompute =
        new JythonGiraphComputation(jythonCompute);
    giraphCompute.setConf(conf);

    jythonCompute.setGiraphCompute(giraphCompute);

    return giraphCompute;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.