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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final Tprotected ExecutionContextprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidvoidclose()voidenableRowCommit(boolean rowCommit) voidinit()protected booleanfinal DataPoolRownext()abstract Objectnext_()abstract voidreset()voidsave()protected voidsetContext(ExecutionContext context) voidwriteRow(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
-