public interface UpsertStream
Modifier and Type | Interface and Description |
---|---|
static interface |
UpsertStream.Builder |
static class |
UpsertStream.FlushResult |
static interface |
UpsertStream.Listener |
Modifier and Type | Method and Description |
---|---|
void |
close()
关闭UpsertStream, 调用后upsert/delete和flush接口均不可用
|
void |
delete(Record record)
按delete操作,写入一条
Record 对象到缓冲区 |
void |
flush()
发送缓冲区数据到服务端
|
void |
upsert(Record record)
按upsert操作,写入一条
Record 对象到缓冲区 |
void upsert(Record record) throws IOException, TunnelException
Record
对象到缓冲区record
- - record对象IOException
TunnelException
void delete(Record record) throws IOException, TunnelException
Record
对象到缓冲区record
- - record对象IOException
TunnelException
void flush() throws IOException, TunnelException
IOException
TunnelException
void close() throws IOException, TunnelException
IOException
TunnelException
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.