开发者社区> 问答> 正文

UploadSession接口怎么定义

UploadSession接口怎么定义

展开
收起
Puppet 2020-03-19 22:39:47 2842 0
1 条回答
写回答
取消 提交回答
  • UploadSession接口定义 UploadSession接口定义如下。

    
    public class UploadSession {
        UploadSession(Configuration conf, String projectName, String tableName,
                      String partitionSpec) throws TunnelException;
        UploadSession(Configuration conf, String projectName, String tableName, 
                      String partitionSpec, String uploadId) throws TunnelException;
        public void commit(Long[] blocks);
        public Long[] getBlockList();
        public String getId();
        public TableSchema getSchema();
        public UploadSession.Status getStatus();
        public Record newRecord();
        public RecordWriter openRecordWriter(long blockId);
        public RecordWriter openRecordWriter(long blockId, boolean compress);
        public RecordWriter openBufferedWriter();
        public RecordWriter openBufferedWriter(boolean compress);
    }
    
    2020-03-19 22:40:21
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
继承与功能组合 立即下载
建立联系方法之一 立即下载
低代码开发师(初级)实战教程 立即下载