Class MaxComputeUtils
- java.lang.Object
-
- org.apache.flink.cdc.connectors.maxcompute.utils.MaxComputeUtils
-
public class MaxComputeUtils extends Object
common utils use for maxcompute connector.
-
-
Constructor Summary
Constructors Constructor Description MaxComputeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.aliyun.odps.tunnel.io.CompressOptioncompressOptionOf(String compressAlgo)static voidcreatePartitionIfAbsent(MaxComputeOptions options, String schema, String table, String partitionName)static com.aliyun.odps.OdpsgetOdps(MaxComputeOptions maxComputeOptions)static StringgetSchema(MaxComputeOptions options, TableId tableId)static com.aliyun.odps.TablegetTable(MaxComputeOptions maxComputeOptions, TableId tableId)static com.aliyun.odps.TableSchemagetTableSchema(MaxComputeOptions options, TableId tableId)static com.aliyun.odps.tunnel.TableTunnelgetTunnel(MaxComputeOptions maxComputeOptions, MaxComputeWriteOptions writeOptions)static booleanisTableExist(MaxComputeOptions maxComputeOptions, TableId tableId)static booleanisTransactionalTable(MaxComputeOptions options, SessionIdentifier sessionIdentifier)static booleanschemaEquals(com.aliyun.odps.TableSchema currentSchema, com.aliyun.odps.TableSchema expectSchema)static booleansupportSchema(MaxComputeOptions maxComputeOptions)
-
-
-
Method Detail
-
getOdps
public static com.aliyun.odps.Odps getOdps(MaxComputeOptions maxComputeOptions)
-
getTunnel
public static com.aliyun.odps.tunnel.TableTunnel getTunnel(MaxComputeOptions maxComputeOptions, MaxComputeWriteOptions writeOptions)
-
getTable
public static com.aliyun.odps.Table getTable(MaxComputeOptions maxComputeOptions, TableId tableId)
-
getTableSchema
public static com.aliyun.odps.TableSchema getTableSchema(MaxComputeOptions options, TableId tableId)
-
supportSchema
public static boolean supportSchema(MaxComputeOptions maxComputeOptions)
-
compressOptionOf
public static com.aliyun.odps.tunnel.io.CompressOption compressOptionOf(String compressAlgo)
-
isTableExist
public static boolean isTableExist(MaxComputeOptions maxComputeOptions, TableId tableId)
-
schemaEquals
public static boolean schemaEquals(com.aliyun.odps.TableSchema currentSchema, com.aliyun.odps.TableSchema expectSchema)
-
createPartitionIfAbsent
public static void createPartitionIfAbsent(MaxComputeOptions options, String schema, String table, String partitionName) throws com.aliyun.odps.OdpsException
- Throws:
com.aliyun.odps.OdpsException
-
getSchema
public static String getSchema(MaxComputeOptions options, TableId tableId)
-
isTransactionalTable
public static boolean isTransactionalTable(MaxComputeOptions options, SessionIdentifier sessionIdentifier)
-
-