@Deprecated public class StreamClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
StreamClient.ShardState
已过时。
shard的状态
|
| 构造器和说明 |
|---|
StreamClient(com.aliyun.odps.tunnel.Configuration conf,
String projectName,
String tableName)
已过时。
|
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
public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter(long shardId) throws TunnelException, IOException
public com.aliyun.odps.tunnel.io.StreamWriter openStreamWriter() throws TunnelException, IOException
public com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId) throws TunnelException, IOException
public com.aliyun.odps.tunnel.io.StreamReader openStreamReader(long shardId, String packId) throws TunnelException, IOException
public com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId) throws TunnelException, IOException
public com.aliyun.odps.tunnel.io.PackReader openPackReader(long shardId, String packId) throws TunnelException, IOException
Copyright © 2015 Alibaba Cloud Computing. All rights reserved.