public class TunnelRecordWriter extends com.aliyun.odps.commons.proto.ProtobufRecordStreamWriter
| Constructor and Description |
|---|
TunnelRecordWriter(TableSchema schema,
com.aliyun.odps.commons.transport.Connection conn)
构造此类对象
|
TunnelRecordWriter(TableSchema schema,
com.aliyun.odps.commons.transport.Connection conn,
CompressOption option) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(Record r)
写入一条记录
|
flush, getCheckSum, getTotalBytes, setCheckSum, setTransform, writepublic TunnelRecordWriter(TableSchema schema, com.aliyun.odps.commons.transport.Connection conn) throws IOException
schema - TableSchemaconn - ConnectionIOException - Signals that an I/O exception has occurred.public TunnelRecordWriter(TableSchema schema, com.aliyun.odps.commons.transport.Connection conn, CompressOption option) throws IOException
IOExceptionpublic void write(Record r) throws IOException
RecordWriterwrite in interface RecordWriterwrite in class com.aliyun.odps.commons.proto.ProtobufRecordStreamWriterr - Record对象IOException - 写入过程发生异常,不可重试public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.aliyun.odps.commons.proto.ProtobufRecordStreamWriterIOExceptionCopyright © 2019 Alibaba Cloud Computing. All rights reserved.