T
- 待读取数据的数据类型public class DbReader<T> extends Object
构造器和说明 |
---|
DbReader(Class<T> type,
File dbfile)
构造一个从avro文件中读取指定类型数据的Reader
|
DbReader(Class<T> type,
String dbpath)
构造一个从avro文件中读取指定类型数据的Reader
|
public DbReader(Class<T> type, File dbfile) throws IOException
type
- 指定的数据类型dbfile
- 待读取的avro文件IOException
public DbReader(Class<T> type, String dbpath) throws IOException
type
- 指定的数据类型dbpath
- 待读取的avro文件的路径IOException
public T readNext()
public boolean hasNext()
public void close() throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2014. All Rights Reserved.