@Deprecated public class StreamClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamClient.ShardState
Deprecated.
shard的状态
|
Constructor and Description |
---|
StreamClient(com.aliyun.odps.tunnel.Configuration conf,
String projectName,
String tableName)
Deprecated.
|
public StreamClient(com.aliyun.odps.tunnel.Configuration conf, String projectName, String tableName) throws TunnelException
TunnelException
public String getProjectName()
public String getTableName()
public void loadShard(long shardNumber) throws TunnelException
shardNumber
- 需要启用的shard数量TunnelException
@Deprecated public void loadShard(int shardNumber) throws TunnelException
TunnelException
public void waitForShardLoad() throws TunnelException
TunnelException
public void waitForShardLoad(long timeout) throws TunnelException
timeout
- 超时时间,单位是毫秒
若该值超过 60000ms,将等待 60000msTunnelException
public HashMap<Long,StreamClient.ShardState> getShardStatus() throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.ReplicatorStatus QueryReplicatorStatus(long shardId, PartitionSpec partitionSpec) throws TunnelException
shardId
- 需要查询的shardIdpartitionSpec
- 查询的分区,分区表必选, 非分区表可以为nullTunnelException
public com.aliyun.odps.tunnel.io.ReplicatorStatus QueryReplicatorStatus(long shardId) throws TunnelException
shardId
- 需要查询的shardIdTunnelException
public TableSchema getStreamSchema()
@Deprecated public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter(String shardId) throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter(long shardId) throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter() throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId) throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId, String packId) throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId) throws TunnelException, IOException
TunnelException
IOException
public com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId, String packId) throws TunnelException, IOException
TunnelException
IOException
Copyright © 2020 Alibaba Cloud Computing. All rights reserved.