S - source table from relation databasepublic interface TimeBatchStrategy<S> extends BatchStrategy<S,TimeBatch>
| Modifier and Type | Method and Description |
|---|---|
default java.util.List<S> |
extract(TimeBatch context)
Subclasses should not override this method.
|
java.util.List<S> |
extractUpdate(TimeBatch context,
LastUpdate lastUpdate)
When overriding this method, the implementation MUST update the context's start and lastUpdate's lastUpdate
with the last entry's modified time.
|
default void |
initializeContext(TimeBatch context) |
default int |
run(TimeBatch context) |
loaddefault java.util.List<S> extract(TimeBatch context)
extract in interface BatchStrategy<S,TimeBatch>java.util.List<S> extractUpdate(TimeBatch context, LastUpdate lastUpdate)
context.setStart(s.getModifiedTime());
lastUpdate.update(s.getModifiedTime());default int run(TimeBatch context)
default void initializeContext(TimeBatch context)