Class DBQueryResultPreviewReader
- java.lang.Object
-
- org.openrefine.extension.database.DBQueryResultPreviewReader
-
- All Implemented Interfaces:
AutoCloseable
,TabularParserHelper.TableDataReader
public class DBQueryResultPreviewReader extends Object implements TabularParserHelper.TableDataReader
-
-
Constructor Summary
Constructors Constructor Description DBQueryResultPreviewReader(ImportingJob job, DatabaseService databaseService, String querySource, List<DatabaseColumn> columns, DatabaseQueryInfo dbQueryInfo, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getBatchRowStart()
int
getBatchSize()
List<DatabaseColumn>
getColumns()
ImportingJob
getJob()
int
getNextRow()
List<Object>
getNextRowOfCells()
String
getQuerySource()
List<List<Object>>
getRowsOfCells()
boolean
isEnd()
boolean
isUsedHeaders()
void
setBatchRowStart(int batchRowStart)
void
setColumns(List<DatabaseColumn> columns)
void
setEnd(boolean end)
void
setNextRow(int nextRow)
void
setRowsOfCells(List<List<Object>> rowsOfCells)
void
setUsedHeaders(boolean usedHeaders)
-
-
-
Constructor Detail
-
DBQueryResultPreviewReader
public DBQueryResultPreviewReader(ImportingJob job, DatabaseService databaseService, String querySource, List<DatabaseColumn> columns, DatabaseQueryInfo dbQueryInfo, int batchSize)
-
-
Method Detail
-
getNextRowOfCells
public List<Object> getNextRowOfCells() throws IOException
- Specified by:
getNextRowOfCells
in interfaceTabularParserHelper.TableDataReader
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTabularParserHelper.TableDataReader
- Throws:
IOException
-
getColumns
public List<DatabaseColumn> getColumns()
-
setColumns
public void setColumns(List<DatabaseColumn> columns)
-
getNextRow
public int getNextRow()
-
setNextRow
public void setNextRow(int nextRow)
-
getBatchRowStart
public int getBatchRowStart()
-
setBatchRowStart
public void setBatchRowStart(int batchRowStart)
-
isEnd
public boolean isEnd()
-
setEnd
public void setEnd(boolean end)
-
isUsedHeaders
public boolean isUsedHeaders()
-
setUsedHeaders
public void setUsedHeaders(boolean usedHeaders)
-
getJob
public ImportingJob getJob()
-
getQuerySource
public String getQuerySource()
-
getBatchSize
public int getBatchSize()
-
-