public class StreamRecordPackImpl extends Object implements TableTunnel.StreamRecordPack
Constructor and Description |
---|
StreamRecordPackImpl(StreamUploadSessionImpl session,
CompressOption option) |
Modifier and Type | Method and Description |
---|---|
void |
append(Record record)
append一条记录
|
String |
flush()
数据发送到server端
pack对象在flush成功以后可以复用
|
long |
getDataSize() |
long |
getRecordCount() |
void |
reset()
pack对象在reset以后可以复用
|
public StreamRecordPackImpl(StreamUploadSessionImpl session, CompressOption option) throws IOException
IOException
public void append(Record record) throws IOException
TableTunnel.StreamRecordPack
append
in interface TableTunnel.StreamRecordPack
IOException
public long getRecordCount()
getRecordCount
in interface TableTunnel.StreamRecordPack
public long getDataSize()
getDataSize
in interface TableTunnel.StreamRecordPack
public String flush() throws IOException
TableTunnel.StreamRecordPack
flush
in interface TableTunnel.StreamRecordPack
IOException
public void reset() throws IOException
TableTunnel.StreamRecordPack
reset
in interface TableTunnel.StreamRecordPack
IOException
Copyright © 2020 Alibaba Cloud Computing. All rights reserved.