You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2022/10/11 15:01:49 UTC

[griffin] branch griffin-1.0.0-dev updated: Griffin 1.0.0 dev (#611)

This is an automated email from the ASF dual-hosted git repository.

guoyp pushed a commit to branch griffin-1.0.0-dev
in repository https://gitbox.apache.org/repos/asf/griffin.git


The following commit(s) were added to refs/heads/griffin-1.0.0-dev by this push:
     new 7bf72d71 Griffin 1.0.0 dev (#611)
7bf72d71 is described below

commit 7bf72d71f4ee698f5a2d43575f28ca38b1d469f2
Author: William Guo <gu...@apache.org>
AuthorDate: Tue Oct 11 23:01:44 2022 +0800

    Griffin 1.0.0 dev (#611)
    
    * init griffin new workflow
    
    * model data quality request
    
    Co-authored-by: guoyp <gu...@guoypdeMacBook-Pro.local>
---
 .../org/apache/griffin/core/dqreq/AlertingReq.java | 22 +++++++++
 .../org/apache/griffin/core/dqreq/CheckingReq.java | 22 +++++++++
 .../org/apache/griffin/core/dqreq/DQRequest.java   | 57 ++++++++++++++++++++++
 .../apache/griffin/core/dqreq/RecordingReq.java    | 22 +++++++++
 4 files changed, 123 insertions(+)

diff --git a/core/src/main/java/org/apache/griffin/core/dqreq/AlertingReq.java b/core/src/main/java/org/apache/griffin/core/dqreq/AlertingReq.java
new file mode 100644
index 00000000..dbcaf8c9
--- /dev/null
+++ b/core/src/main/java/org/apache/griffin/core/dqreq/AlertingReq.java
@@ -0,0 +1,22 @@
+/*
+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.griffin.core.dqreq;
+
+public class AlertingReq {
+}
diff --git a/core/src/main/java/org/apache/griffin/core/dqreq/CheckingReq.java b/core/src/main/java/org/apache/griffin/core/dqreq/CheckingReq.java
new file mode 100644
index 00000000..2bdb39a5
--- /dev/null
+++ b/core/src/main/java/org/apache/griffin/core/dqreq/CheckingReq.java
@@ -0,0 +1,22 @@
+/*
+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.griffin.core.dqreq;
+
+public class CheckingReq {
+}
diff --git a/core/src/main/java/org/apache/griffin/core/dqreq/DQRequest.java b/core/src/main/java/org/apache/griffin/core/dqreq/DQRequest.java
new file mode 100644
index 00000000..62cc3cf8
--- /dev/null
+++ b/core/src/main/java/org/apache/griffin/core/dqreq/DQRequest.java
@@ -0,0 +1,57 @@
+/*
+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.griffin.core.dqreq;
+
+import java.util.Optional;
+
+public class DQRequest {
+    RecordingReq recording;
+    CheckingReq checking;
+    AlertingReq alerting;
+
+    public DQRequest(RecordingReq recording, CheckingReq checking, AlertingReq alerting){
+        this.recording = recording;
+        this.checking = checking;
+        this.alerting =  alerting;
+    }
+
+    public RecordingReq getRecording() {
+        return recording;
+    }
+
+    public void setRecording(RecordingReq recording) {
+        this.recording = recording;
+    }
+
+    public Optional<CheckingReq> getChecking() {
+        return Optional.ofNullable(checking);
+    }
+
+    public void setChecking(CheckingReq checking) {
+        this.checking = checking;
+    }
+
+    public Optional<AlertingReq> getAlerting() {
+        return Optional.ofNullable(alerting);
+    }
+
+    public void setAlerting(AlertingReq alerting) {
+        this.alerting = alerting;
+    }
+}
diff --git a/core/src/main/java/org/apache/griffin/core/dqreq/RecordingReq.java b/core/src/main/java/org/apache/griffin/core/dqreq/RecordingReq.java
new file mode 100644
index 00000000..21a84782
--- /dev/null
+++ b/core/src/main/java/org/apache/griffin/core/dqreq/RecordingReq.java
@@ -0,0 +1,22 @@
+/*
+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.griffin.core.dqreq;
+
+public class RecordingReq {
+}