org.apache.sysml.api

Class MLContextProxy



  • public class MLContextProxy
    extends Object
    The purpose of this proxy is to shield systemml internals from direct access to MLContext which would try to load spark libraries and hence fail if these are not available. This indirection is much more efficient than catching NoClassDefFoundErrors for every access to MLContext (e.g., on each recompile).
    • Constructor Detail

      • MLContextProxy

        public MLContextProxy()
    • Method Detail

      • setActive

        public static void setActive(boolean flag)
      • isActive

        public static boolean isActive()
      • setAppropriateVarsForRead

        public static void setAppropriateVarsForRead(org.apache.sysml.parser.Expression source,
                                                     String targetname)
                                              throws org.apache.sysml.parser.LanguageException
        Throws:
        org.apache.sysml.parser.LanguageException
      • getActiveMLContext

        public static Object getActiveMLContext()
      • getActiveMLContextForAPI

        public static Object getActiveMLContextForAPI()

Copyright © 2017 The Apache Software Foundation. All rights reserved.