@Deprecated public class StreamUploadWriter extends Object
Constructor and Description |
---|
StreamUploadWriter(com.aliyun.odps.rest.RestClient tunnelServiceClient,
String path)
Deprecated.
|
StreamUploadWriter(com.aliyun.odps.rest.RestClient tunnelServiceClient,
String path,
HashMap<String,String> params,
HashMap<String,String> headers,
com.aliyun.odps.tunnel.TunnelTableSchema schema)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.aliyun.odps.tunnel.TunnelTableSchema |
getSchema()
Deprecated.
|
void |
write(DatahubRecordPack recordPack)
Deprecated.
向ODPS非分区表写入数据,第一次写入会自动load shard
|
void |
write(PartitionSpec partitionSpec,
DatahubRecordPack recordPack)
Deprecated.
向ODPS分区表写入数据,第一次写入会自动load shard
|
public StreamUploadWriter(com.aliyun.odps.rest.RestClient tunnelServiceClient, String path) throws TunnelException
TunnelException
public StreamUploadWriter(com.aliyun.odps.rest.RestClient tunnelServiceClient, String path, HashMap<String,String> params, HashMap<String,String> headers, com.aliyun.odps.tunnel.TunnelTableSchema schema)
public void write(DatahubRecordPack recordPack) throws TunnelException, IOException
recordPack
- StreamRecordPack
对象TunnelException,
- IOExceptionTunnelException
IOException
public void write(PartitionSpec partitionSpec, DatahubRecordPack recordPack) throws TunnelException, IOException
partitionSpec
- PartitionSpec
对象recordPack
- StreamRecordPack
对象TunnelException,
- IOExceptionTunnelException
IOException
public com.aliyun.odps.tunnel.TunnelTableSchema getSchema()
Copyright © 2020 Alibaba Cloud Computing. All rights reserved.