public class DefaultRecordReader extends Object implements RecordReader
RecordReader 的实现,用于读取 Record| 构造器和说明 |
|---|
DefaultRecordReader(InputStream is,
TableSchema tableSchema)
构造一个 DefaultRecordReader
|
public DefaultRecordReader(InputStream is, TableSchema tableSchema)
is - 输入流tableSchema - TableSchemapublic InputStream getRawStream()
public Column[] getSchema() throws IOException
IOExceptionpublic Record read() throws IOException
read 在接口中 RecordReaderRecord对象, 读取完成返回nullIOException - 读取过程发生异常, 发生异常后不可重试public List<String> readRaw() throws IOException
IOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2015 Alibaba Cloud Computing. All rights reserved.