forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
194 additions
and
3 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...c/main/java/org/apache/flink/table/gateway/workflow/dolphinscheduler/entity/DataType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* 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.flink.table.gateway.workflow.dolphinscheduler.entity; | ||
|
||
/** data types in user define parameter. */ | ||
public enum DataType { | ||
/** | ||
* 0 string 1 integer 2 long 3 float 4 double 5 date, "YYYY-MM-DD" 6 time, "HH:MM:SS" 7 time | ||
* stamp 8 Boolean 9 list. | ||
*/ | ||
VARCHAR, | ||
INTEGER, | ||
LONG, | ||
FLOAT, | ||
DOUBLE, | ||
DATE, | ||
TIME, | ||
TIMESTAMP, | ||
BOOLEAN, | ||
LIST, | ||
FILE | ||
} |
27 changes: 27 additions & 0 deletions
27
...src/main/java/org/apache/flink/table/gateway/workflow/dolphinscheduler/entity/Direct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* 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.flink.table.gateway.workflow.dolphinscheduler.entity; | ||
|
||
/** parameter of stored procedure. */ | ||
public enum Direct { | ||
|
||
/** 0 in,1 out. */ | ||
IN, | ||
OUT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
...c/main/java/org/apache/flink/table/gateway/workflow/dolphinscheduler/entity/Property.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/* | ||
* 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.flink.table.gateway.workflow.dolphinscheduler.entity; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
/** Property info. */ | ||
public class Property implements Serializable { | ||
|
||
private static final long serialVersionUID = -4045513703397452451L; | ||
/** key */ | ||
private String prop; | ||
|
||
/** input/output */ | ||
private Direct direct; | ||
|
||
/** data type */ | ||
private DataType type; | ||
|
||
/** value */ | ||
private String value; | ||
|
||
public Property() {} | ||
|
||
public Property(String prop, Direct direct, DataType type, String value) { | ||
this.prop = prop; | ||
this.direct = direct; | ||
this.type = type; | ||
this.value = value; | ||
} | ||
|
||
public String getProp() { | ||
return prop; | ||
} | ||
|
||
public void setProp(String prop) { | ||
this.prop = prop; | ||
} | ||
|
||
public Direct getDirect() { | ||
return direct; | ||
} | ||
|
||
public void setDirect(Direct direct) { | ||
this.direct = direct; | ||
} | ||
|
||
public DataType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(DataType type) { | ||
this.type = type; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Property property = (Property) o; | ||
return Objects.equals(prop, property.prop) && Objects.equals(value, property.value); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(prop, value); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Property{" | ||
+ "prop='" | ||
+ prop | ||
+ '\'' | ||
+ ", direct=" | ||
+ direct | ||
+ ", type=" | ||
+ type | ||
+ ", value='" | ||
+ value | ||
+ '\'' | ||
+ '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters