@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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProjectName()
Deprecated.
|
List<Long> |
getShardList()
Deprecated.
|
HashMap<Long,StreamClient.ShardState> |
getShardStatus()
Deprecated.
查询StreamClinet对应的table拥有的shard在服务端的状态
|
TableSchema |
getStreamSchema()
Deprecated.
|
String |
getTableName()
Deprecated.
|
void |
loadShard(int shardNumber)
Deprecated.
|
void |
loadShard(long shardNumber)
Deprecated.
在ODPS hub服务上启用shard
|
com.aliyun.odps.tunnel.io.PackReader |
openPackReader(long shardId)
Deprecated.
|
com.aliyun.odps.tunnel.io.PackReader |
openPackReader(long shardId,
String packId)
Deprecated.
|
com.aliyun.odps.tunnel.io.StreamReader |
openStreamReader(long shardId)
Deprecated.
|
com.aliyun.odps.tunnel.io.StreamReader |
openStreamReader(long shardId,
String packId)
Deprecated.
|
com.aliyun.odps.tunnel.io.StreamWriter |
openStreamWriter()
Deprecated.
|
com.aliyun.odps.tunnel.io.StreamWriter |
openStreamWriter(long shardId)
Deprecated.
|
com.aliyun.odps.tunnel.io.StreamWriter |
openStreamWriter(String shardId)
Deprecated.
|
com.aliyun.odps.tunnel.io.ReplicatorStatus |
QueryReplicatorStatus(long shardId)
Deprecated.
在ODPS hub查询非分区表拷贝到离线集群的状态
|
com.aliyun.odps.tunnel.io.ReplicatorStatus |
QueryReplicatorStatus(long shardId,
PartitionSpec partitionSpec)
Deprecated.
在ODPS hub查询partiton对应的拷贝到离线集群的状态
|
void |
waitForShardLoad()
Deprecated.
同步等待 load shard 完成
默认超时时间为 60s
|
void |
waitForShardLoad(long timeout)
Deprecated.
同步等待 load shard 完成
最大超时时间为 60000ms
|
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 © 2016 Alibaba Cloud Computing. All rights reserved.