Class MaxComputeUtils


  • public class MaxComputeUtils
    extends Object
    common utils use for maxcompute connector.
    • Constructor Detail

      • MaxComputeUtils

        public MaxComputeUtils()
    • Method Detail

      • getOdps

        public static com.aliyun.odps.Odps getOdps​(MaxComputeOptions maxComputeOptions)
      • 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)
      • 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