Skip to content

Commit

Permalink
Merge pull request #24 from StrongestNumber9/clean_clean
Browse files Browse the repository at this point in the history
remove interpreters and configurations that are not part of the teragrep core
  • Loading branch information
kortemik authored Nov 14, 2024
2 parents b2f0526 + a9356ba commit 51f36ea
Show file tree
Hide file tree
Showing 233 changed files with 1,960 additions and 20,559 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,11 @@ tramp

# Git properties
**/git.properties

# Should not be necessary, temporary hack
conf_*Test/
interpreter_*Test/
notebook_*Test/
zeppelin-server/conf/
notebook_ConfigurationsRestApi/
notebook_HeliumRestApi/
28 changes: 13 additions & 15 deletions spark/scala-2.10/pom.xml → angular/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,42 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>zeppelin-interpreter-parent</artifactId>
<groupId>org.apache.zeppelin</groupId>
<artifactId>spark-scala-parent</artifactId>
<version>0.10.1</version>
<relativePath>../spark-scala-parent/pom.xml</relativePath>
<relativePath>../zeppelin-interpreter-parent/pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spark-scala-2.10</artifactId>
<artifactId>zeppelin-angular</artifactId>
<packaging>jar</packaging>
<name>Zeppelin: Spark Interpreter Scala_2.10</name>
<name>Zeppelin: Angular interpreter</name>

<properties>
<spark.version>2.2.3</spark.version>
<spark.scala.version>2.10.5</spark.scala.version>
<spark.scala.binary.version>2.10</spark.scala.binary.version>
<spark.scala.compile.version>${spark.scala.version}</spark.scala.compile.version>
<interpreter.name>angular</interpreter.name>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* 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.zeppelin.angular;

import java.util.LinkedList;
import java.util.List;
import java.util.Properties;

import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterContext;
import org.apache.zeppelin.interpreter.InterpreterResult;
import org.apache.zeppelin.interpreter.InterpreterResult.Code;
import org.apache.zeppelin.interpreter.InterpreterResult.Type;
import org.apache.zeppelin.interpreter.thrift.InterpreterCompletion;
import org.apache.zeppelin.scheduler.Scheduler;
import org.apache.zeppelin.scheduler.SchedulerFactory;

/**
*
*/
public class AngularInterpreter extends Interpreter {

public AngularInterpreter(Properties property) {
super(property);
}

@Override
public void open() {
}

@Override
public void close() {
}

@Override
public InterpreterResult interpret(String st, InterpreterContext context) {
return new InterpreterResult(Code.SUCCESS, Type.ANGULAR, st);
}

@Override
public void cancel(InterpreterContext context) {
}

@Override
public FormType getFormType() {
return FormType.NATIVE;
}

@Override
public int getProgress(InterpreterContext context) {
return 0;
}

@Override
public List<InterpreterCompletion> completion(String buf, int cursor,
InterpreterContext interpreterContext) {
return new LinkedList<>();
}

@Override
public Scheduler getScheduler() {
return SchedulerFactory.singleton().createOrGetFIFOScheduler(
AngularInterpreter.class.getName() + this.hashCode());
}
}
24 changes: 24 additions & 0 deletions angular/src/main/resources/interpreter-setting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"group": "angular",
"name": "angular",
"className": "org.apache.zeppelin.angular.AngularInterpreter",
"properties": {
},
"editor": {
"editOnDblClick": true,
"completionSupport": false
}
},
{
"group": "angular",
"name": "ng",
"className": "org.apache.zeppelin.angular.AngularInterpreter",
"properties": {
},
"editor": {
"editOnDblClick": true,
"completionSupport": false
}
}
]
97 changes: 0 additions & 97 deletions bin/common.cmd

This file was deleted.

38 changes: 0 additions & 38 deletions bin/functions.cmd

This file was deleted.

Loading

0 comments on commit 51f36ea

Please sign in to comment.