@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
TunnelExceptionpublic String getProjectName()
public String getTableName()
public void loadShard(long shardNumber)
throws TunnelException
shardNumber - 需要启用的shard数量TunnelException@Deprecated public void loadShard(int shardNumber) throws TunnelException
TunnelExceptionpublic void waitForShardLoad()
throws TunnelException
TunnelExceptionpublic void waitForShardLoad(long timeout)
throws TunnelException
timeout - 超时时间,单位是毫秒
若该值超过 60000ms,将等待 60000msTunnelExceptionpublic HashMap<Long,StreamClient.ShardState> getShardStatus() throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.ReplicatorStatus QueryReplicatorStatus(long shardId, PartitionSpec partitionSpec) throws TunnelException
shardId - 需要查询的shardIdpartitionSpec - 查询的分区,分区表必选, 非分区表可以为nullTunnelExceptionpublic com.aliyun.odps.tunnel.io.ReplicatorStatus QueryReplicatorStatus(long shardId) throws TunnelException
shardId - 需要查询的shardIdTunnelExceptionpublic TableSchema getStreamSchema()
@Deprecated public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter(String shardId) throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter(long shardId) throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter() throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId) throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId, String packId) throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId) throws TunnelException, IOException
TunnelExceptionIOExceptionpublic com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId, String packId) throws TunnelException, IOException
TunnelExceptionIOExceptionCopyright © 2019 Alibaba Cloud Computing. All rights reserved.