All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.warp10.script.ext.zeppelin.ZeppelinWarpScriptExtension Maven / Gradle / Ivy

There is a newer version: 2.0.0-uberjar
Show newest version
//
//   Copyright 2018  SenX S.A.S.
//
//   Licensed 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 io.warp10.script.ext.zeppelin;

import java.util.HashMap;
import java.util.Map;

import io.warp10.warp.sdk.WarpScriptExtension;

public class ZeppelinWarpScriptExtension extends WarpScriptExtension {
  
  private static final Map functions;
  
  public static final String ATTRIBUTE_ZEPPELIN_RESOURCE_POOL = "zeppelin.resource.pool";
  public static final String ATTRIBUTE_ZEPPELIN_INTERPRETER_CONTEXT = "zeppelin.interpreter.context";
  public static final String ATTRIBUTE_ZEPPELIN_ANGULAR_REGISTRY = "zeppelin.angular.registry";
  public static final String ATTRIBUTE_ZEPPELIN_LEVELS = "zeppelin.levels";
  
  static {
    functions = new HashMap();
    
    functions.put("ZLOAD", new ZLOAD("ZLOAD", false, false));
    functions.put("ZSTORE", new ZSTORE("ZSTORE", false, false));
    functions.put("ZNLOAD", new ZLOAD("ZNLOAD", true, false));
    functions.put("ZNSTORE", new ZSTORE("ZNSTORE", true, false));
    functions.put("ZPLOAD", new ZLOAD("ZPLOAD", true, true));
    functions.put("ZPSTORE", new ZSTORE("ZPSTORE", true, true));
    functions.put("ZALOAD", new ZALOAD("ZALOAD", false, false));
    functions.put("ZASTORE", new ZASTORE("ZASTORE", false, false));
    functions.put("ZANLOAD", new ZALOAD("ZANLOAD", true, false));
    functions.put("ZANSTORE", new ZASTORE("ZANSTORE", true, false));
    functions.put("ZAPLOAD", new ZALOAD("ZAPLOAD", true, true));
    functions.put("ZAPSTORE", new ZASTORE("ZAPSTORE", true, true));
    functions.put("ZNOTEID", new ZNOTEID("ZNOTEID"));
    functions.put("ZPARAGRAPHID", new ZPARAGRAPHID("ZPARAGRAPHID"));
    functions.put("ZLEVELS", new ZLEVELS("ZLEVELS"));
  }
  
  @Override
  public Map getFunctions() {
    return functions;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy