From 8f1497a04316790e101d210715f556e7e9553e2b Mon Sep 17 00:00:00 2001 From: liulu Date: Wed, 3 Aug 2022 17:45:04 +0800 Subject: [PATCH] omnicache demo --- omnicache/omnicache-spark-extension/README.md | 1 + omnicache/omnicache-spark-extension/build.sh | 2 ++ .../omnicache-spark-extension/plugin/pom.xml | 19 ++++++++++++++ .../src/main/scala/demo/HelloWorld.scala | 25 +++++++++++++++++++ omnicache/omnicache-spark-extension/pom.xml | 15 +++++++++++ 5 files changed, 62 insertions(+) create mode 100644 omnicache/omnicache-spark-extension/README.md create mode 100644 omnicache/omnicache-spark-extension/build.sh create mode 100644 omnicache/omnicache-spark-extension/plugin/pom.xml create mode 100644 omnicache/omnicache-spark-extension/plugin/src/main/scala/demo/HelloWorld.scala create mode 100644 omnicache/omnicache-spark-extension/pom.xml diff --git a/omnicache/omnicache-spark-extension/README.md b/omnicache/omnicache-spark-extension/README.md new file mode 100644 index 000000000..049dee1e4 --- /dev/null +++ b/omnicache/omnicache-spark-extension/README.md @@ -0,0 +1 @@ +# omnicache-spark-extension \ No newline at end of file diff --git a/omnicache/omnicache-spark-extension/build.sh b/omnicache/omnicache-spark-extension/build.sh new file mode 100644 index 000000000..ad436cddd --- /dev/null +++ b/omnicache/omnicache-spark-extension/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +mvn clean package \ No newline at end of file diff --git a/omnicache/omnicache-spark-extension/plugin/pom.xml b/omnicache/omnicache-spark-extension/plugin/pom.xml new file mode 100644 index 000000000..bd3cd9f79 --- /dev/null +++ b/omnicache/omnicache-spark-extension/plugin/pom.xml @@ -0,0 +1,19 @@ + + + + + com.huawei.kunpeng + boostkit-omnicache-spark-parent + 3.1.1-1.0.0 + + 4.0.0 + + boostkit-omnicache-spark + pom + 3.1.1-1.0.0 + + BoostKit Spark MaterializedView Sql Engine Extension Parent Pom + + \ No newline at end of file diff --git a/omnicache/omnicache-spark-extension/plugin/src/main/scala/demo/HelloWorld.scala b/omnicache/omnicache-spark-extension/plugin/src/main/scala/demo/HelloWorld.scala new file mode 100644 index 000000000..9f1e0f15a --- /dev/null +++ b/omnicache/omnicache-spark-extension/plugin/src/main/scala/demo/HelloWorld.scala @@ -0,0 +1,25 @@ +/* + * 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 demo + +object HelloWorld { + def main(args: Array[String]): Unit = { + // scalastyle:off println + println("HelloWorld") + } +} diff --git a/omnicache/omnicache-spark-extension/pom.xml b/omnicache/omnicache-spark-extension/pom.xml new file mode 100644 index 000000000..75a88ca41 --- /dev/null +++ b/omnicache/omnicache-spark-extension/pom.xml @@ -0,0 +1,15 @@ + + + + 4.0.0 + + com.huawei.kunpeng + boostkit-omnicache-spark-parent + pom + 3.1.1-1.0.0 + + BoostKit Spark MaterializedView Sql Engine Extension Parent Pom + + \ No newline at end of file -- Gitee