Package step.datapool
Class DataSet<T extends DataPoolConfiguration>
java.lang.Object
step.datapool.DataSet<T>
- Direct Known Subclasses:
ExcelDataPoolImpl
,FileDataPoolImpl
,FileReaderDataPool
,GoogleSheetv4DataPool
,IntSequenceDataPoolImpl
,JsonArrayDataPoolImpl
,JsonStringDataPoolImpl
,SQLTableDataPool
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected final T
protected ExecutionContext
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
void
close()
void
enableRowCommit
(boolean rowCommit) void
init()
protected boolean
final DataPoolRow
next()
abstract Object
next_()
abstract void
reset()
void
save()
protected void
setContext
(ExecutionContext context) void
writeRow
(DataPoolRow row)
-
Field Details
-
configuration
-
context
-
isRowCommitEnabled
protected boolean isRowCommitEnabled -
closing
protected volatile boolean closing
-
-
Constructor Details
-
DataSet
-
-
Method Details
-
enableRowCommit
public void enableRowCommit(boolean rowCommit) - Parameters:
rowCommit
- if the row commit is enabled. IMPORTANT: If row commit is enabled, it is the responsibility of the user to call the methodDataPoolRow.commit()
after the row has been processed If the methodDataPoolRow.commit()
isn't called, closing the DataSet may block indefinitely
-
init
public void init() -
reset
public abstract void reset() -
close
public void close() -
isWriteQueueSupportEnabled
protected boolean isWriteQueueSupportEnabled() -
next
-
next_
-
addRow
-
save
public void save() -
setContext
-
writeRow
- Throws:
IOException
-