congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Table.createPartition
Code IndexAdd Tabnine to your IDE (free)

How to use
createPartition
method
in
com.aliyun.odps.Table

Best Java code snippets using com.aliyun.odps.Table.createPartition (Showing top 3 results out of 315)

origin: aliyun/aliyun-odps-java-sdk

/**
 * 增加分区
 *
 * @param spec
 *     分区定义 {@link PartitionSpec}
 * @throws OdpsException
 */
public void createPartition(PartitionSpec spec) throws OdpsException {
 createPartition(spec, false);
}
origin: aliyun/aliyun-maxcompute-data-collectors

  public static void addPart(Table table, String partition) {
    try {
      table.createPartition(new PartitionSpec(partition), true);
    } catch (Exception e) {
      throw new RuntimeException(String
        .format("添加 MaxCompute 目的表的分区失败. 错误发生在添加 MaxCompute 的项目:%s 的表:%s 的分区:%s.",
          table.getProject(), table.getName(), partition), e);
    }
  }
}
origin: aliyun/aliyun-odps-console

if (!t.hasPartition(ps)) {
 System.err.println("Create partition " + ps.toString());
 t.createPartition(ps);
com.aliyun.odpsTablecreatePartition

Javadoc

增加分区

Popular methods of Table

  • getName
  • getSchema
  • getProject
  • isVirtualView
  • getPartitions
  • reload
  • getComment
    获取注释
  • getPartition
  • getPartitionIterator
    获取分区迭代器
  • deletePartition
    删除指定分区
  • getClusterInfo
    返回 cluster range 表的 cluster 信息
  • getSize
  • getClusterInfo,
  • getSize,
  • getTableLabel,
  • getViewText,
  • hasPartition,
  • isPartitioned,
  • read,
  • <init>,
  • calculateMaxLabel

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • Menu (java.awt)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now