Class DBQueryResultImportReader
- java.lang.Object
- 
- org.openrefine.extension.database.DBQueryResultImportReader
 
- 
- All Implemented Interfaces:
- AutoCloseable,- TabularParserHelper.TableDataReader
 
 public class DBQueryResultImportReader extends Object implements TabularParserHelper.TableDataReader 
- 
- 
Constructor SummaryConstructors Constructor Description DBQueryResultImportReader(ImportingJob job, DatabaseService databaseService, String querySource, List<DatabaseColumn> columns, DatabaseQueryInfo dbQueryInfo, int batchSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetBatchRowStart()intgetBatchSize()List<DatabaseColumn>getColumns()ImportingJobgetJob()intgetNextRow()List<Object>getNextRowOfCells()StringgetQuerySource()List<List<Object>>getRowsOfCells()booleanisEnd()booleanisUsedHeaders()voidsetBatchRowStart(int batchRowStart)voidsetColumns(List<DatabaseColumn> columns)voidsetEnd(boolean end)voidsetNextRow(int nextRow)voidsetRowsOfCells(List<List<Object>> rowsOfCells)voidsetUsedHeaders(boolean usedHeaders)
 
- 
- 
- 
Constructor Detail- 
DBQueryResultImportReaderpublic DBQueryResultImportReader(ImportingJob job, DatabaseService databaseService, String querySource, List<DatabaseColumn> columns, DatabaseQueryInfo dbQueryInfo, int batchSize) 
 
- 
 - 
Method Detail- 
getNextRowOfCellspublic List<Object> getNextRowOfCells() throws IOException - Specified by:
- getNextRowOfCellsin interface- TabularParserHelper.TableDataReader
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- TabularParserHelper.TableDataReader
- Throws:
- IOException
 
 - 
getColumnspublic List<DatabaseColumn> getColumns() 
 - 
setColumnspublic void setColumns(List<DatabaseColumn> columns) 
 - 
getNextRowpublic int getNextRow() 
 - 
setNextRowpublic void setNextRow(int nextRow) 
 - 
getBatchRowStartpublic int getBatchRowStart() 
 - 
setBatchRowStartpublic void setBatchRowStart(int batchRowStart) 
 - 
isEndpublic boolean isEnd() 
 - 
setEndpublic void setEnd(boolean end) 
 - 
isUsedHeaderspublic boolean isUsedHeaders() 
 - 
setUsedHeaderspublic void setUsedHeaders(boolean usedHeaders) 
 - 
getJobpublic ImportingJob getJob() 
 - 
getQuerySourcepublic String getQuerySource() 
 - 
getBatchSizepublic int getBatchSize() 
 
- 
 
-