public class DefaultRecordReader extends Object implements RecordReader
RecordReader 的实现,用于读取 Record| Constructor and Description |
|---|
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 in interface RecordReaderRecord对象, 读取完成返回nullIOException - 读取过程发生异常, 发生异常后不可重试public List<String> readRaw() throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2016 Alibaba Cloud Computing. All rights reserved.