forked from apache/eventmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
356 additions
and
2 deletions.
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
...connector-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/Geometry.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class Geometry extends SpatialDataType { | ||
|
||
public static final Geometry INSTANCE = new Geometry(); | ||
|
||
public Geometry() { | ||
super("GEOMETRY"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "geometry"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "geometry"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/GeometryCollection.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class GeometryCollection extends SpatialDataType { | ||
|
||
public static final GeometryCollection INSTANCE = new GeometryCollection(); | ||
|
||
public GeometryCollection() { | ||
super("GEOMETRYCOLLECTION"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "geometrycollection"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "geometrycollection"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...nnector-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/LineString.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class LineString extends SpatialDataType { | ||
|
||
public static final LineString INSTANCE = new LineString(); | ||
|
||
public LineString() { | ||
super("LINESTRING"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "linestring"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "linestring"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...or-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/MultiLineString.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class MultiLineString extends SpatialDataType { | ||
|
||
public static final MultiLineString INSTANCE = new MultiLineString(); | ||
|
||
public MultiLineString() { | ||
super("MULTILINESTRING"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "multilinestring"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "multilinestring"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...tor-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/MultiPointType.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class MultiPointType extends SpatialDataType { | ||
|
||
public static final MultiPointType INSTANCE = new MultiPointType(); | ||
|
||
public MultiPointType() { | ||
super("MULTIPOINT"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "multipoint"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "multipoint"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...ector-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/MultiPolygon.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class MultiPolygon extends SpatialDataType { | ||
|
||
public static final MultiPolygon INSTANCE = new MultiPolygon(); | ||
|
||
public MultiPolygon() { | ||
super("MULTIPOLYGON"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "multipolygon"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "multipolygon"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...onnector-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/PointType.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class PointType extends SpatialDataType { | ||
|
||
public static final PointType INSTANCE = new PointType(); | ||
|
||
public PointType() { | ||
super("POINT"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "point"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "point"; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...-connector-jdbc/src/main/java/org/apache/eventmesh/connector/jdbc/type/mysql/Polygon.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,42 @@ | ||
/* | ||
* 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.eventmesh.connector.jdbc.type.mysql; | ||
|
||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.apache.eventmesh.connector.jdbc.table.catalog.Column; | ||
|
||
public class Polygon extends SpatialDataType { | ||
|
||
public static final Polygon INSTANCE = new Polygon(); | ||
|
||
public Polygon() { | ||
super("POLYGON"); | ||
} | ||
|
||
@Override | ||
public List<String> ofRegistrationKeys() { | ||
return Arrays.asList(getName(), "polygon"); | ||
} | ||
|
||
@Override | ||
public String getTypeName(Column<?> column) { | ||
return "polygon"; | ||
} | ||
} |
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