forked from apache/seatunnel
-
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.
Support catalog in MaxCompute Source
- Loading branch information
1 parent
843d203
commit 930102e
Showing
16 changed files
with
631 additions
and
328 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
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
52 changes: 0 additions & 52 deletions
52
...ctors-v2/connector-maxcompute/src/main/java/com/aliyun/odps/type/SimpleArrayTypeInfo.java
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
...nectors-v2/connector-maxcompute/src/main/java/com/aliyun/odps/type/SimpleMapTypeInfo.java
This file was deleted.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
...tors-v2/connector-maxcompute/src/main/java/com/aliyun/odps/type/SimpleStructTypeInfo.java
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...onnectors-v2/connector-maxcompute/src/main/java/com/aliyun/odps/type/TypeInfoFactory.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,51 @@ | ||
/* | ||
* 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 com.aliyun.odps.type; | ||
|
||
import com.aliyun.odps.OdpsType; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* This class is used to create TypeInfo objects, since TypeInfo constructors are only visitable | ||
* under {@link com.aliyun.odps.type}. | ||
*/ | ||
public class TypeInfoFactory { | ||
|
||
public static DecimalTypeInfo newDecimalTypeInfo(int precision, int scale) { | ||
return new DecimalTypeInfo(precision, scale); | ||
} | ||
|
||
public static SimpleArrayTypeInfo newSimpleArrayTypeInfo(TypeInfo valueTypeInfo) { | ||
return new SimpleArrayTypeInfo(valueTypeInfo); | ||
} | ||
|
||
public static SimpleMapTypeInfo newSimpleMapTypeInfo( | ||
TypeInfo keyTypeInfo, TypeInfo valueTypeInfo) { | ||
return new SimpleMapTypeInfo(keyTypeInfo, valueTypeInfo); | ||
} | ||
|
||
public static SimplePrimitiveTypeInfo newSimplePrimitiveTypeInfo(OdpsType odpsType) { | ||
return new SimplePrimitiveTypeInfo(odpsType); | ||
} | ||
|
||
public static SimpleStructTypeInfo newSimpleStructTypeInfo( | ||
List<String> names, List<TypeInfo> typeInfos) { | ||
return new SimpleStructTypeInfo(names, typeInfos); | ||
} | ||
} |
Oops, something went wrong.