public class UpsertStreamImpl extends Object implements UpsertStream
Modifier and Type | Class and Description |
---|---|
static class |
UpsertStreamImpl.Builder |
UpsertStream.FlushResult, UpsertStream.Listener
Constructor and Description |
---|
UpsertStreamImpl(UpsertStreamImpl.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
close()
关闭UpsertStream, 调用后upsert/delete和flush接口均不可用
#TODO remove TunnelException
|
void |
delete(Record record)
按delete操作,写入一条
Record 对象到缓冲区 |
void |
flush()
发送缓冲区数据到服务端
|
void |
reset()
关闭UpsertStream, 调用后数据和状态将被清空重置
|
void |
upsert(Record record)
按upsert操作,写入一条
Record 对象到缓冲区 |
void |
upsert(Record record,
List<String> upsertCols) |
public UpsertStreamImpl(UpsertStreamImpl.Builder builder) throws IOException, TunnelException
IOException
TunnelException
public void upsert(Record record) throws IOException, TunnelException
UpsertStream
Record
对象到缓冲区upsert
in interface UpsertStream
record
- - record对象IOException
TunnelException
public void upsert(Record record, List<String> upsertCols) throws IOException, TunnelException
upsert
in interface UpsertStream
IOException
TunnelException
public void delete(Record record) throws IOException, TunnelException
UpsertStream
Record
对象到缓冲区delete
in interface UpsertStream
record
- - record对象IOException
TunnelException
public void flush() throws IOException, TunnelException
UpsertStream
flush
in interface UpsertStream
IOException
TunnelException
public void close() throws IOException
UpsertStream
close
in interface UpsertStream
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void reset() throws IOException
UpsertStream
reset
in interface UpsertStream
IOException
Copyright © 2025 Alibaba Cloud Computing. All rights reserved.