public class UpsertSessionImpl extends SessionBase implements TableTunnel.UpsertSession
Modifier and Type | Class and Description |
---|---|
static class |
UpsertSessionImpl.Builder |
SessionBase.HttpResult
Constructor and Description |
---|
UpsertSessionImpl(UpsertSessionImpl.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
中止UpsertSession
|
UpsertStream.Builder |
buildUpsertStream() |
void |
close()
清理客户端本地资源
|
void |
commit(boolean async)
提交UpsertSession
|
String |
getId()
获取Session ID
|
String |
getQuotaName()
获取当前 Quota
|
TableSchema |
getSchema()
获取表结构
|
String |
getStatus()
获取Session状态
|
Record |
newRecord()
创建一个对象
|
public UpsertSessionImpl(UpsertSessionImpl.Builder builder) throws TunnelException, IOException
TunnelException
IOException
public Record newRecord()
TableTunnel.UpsertSession
newRecord
in interface TableTunnel.UpsertSession
public UpsertStream.Builder buildUpsertStream()
buildUpsertStream
in interface TableTunnel.UpsertSession
public String getId()
TableTunnel.UpsertSession
getId
in interface TableTunnel.UpsertSession
public String getQuotaName()
TableTunnel.UpsertSession
getQuotaName
in interface TableTunnel.UpsertSession
public String getStatus() throws TunnelException
TableTunnel.UpsertSession
getStatus
in interface TableTunnel.UpsertSession
TunnelException
public TableSchema getSchema()
TableTunnel.UpsertSession
getSchema
in interface TableTunnel.UpsertSession
public void commit(boolean async) throws TunnelException
TableTunnel.UpsertSession
commit
in interface TableTunnel.UpsertSession
TunnelException
public void abort() throws TunnelException
TableTunnel.UpsertSession
abort
in interface TableTunnel.UpsertSession
TunnelException
public void close()
TableTunnel.UpsertSession
close
in interface TableTunnel.UpsertSession
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.