public interface Loader
| Modifier and Type | Interface and Description |
|---|---|
static class |
Loader.ConnectionError |
static class |
Loader.DataError |
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE |
static String |
tmpdir |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close connections that have been provided upon initialization
|
void |
finish()
Finishes processing and commits or rolls back.
|
LoadResultListener |
getListener() |
void |
resetOperation(Operation op)
If operation is changed, previous data is committed
|
void |
rollback()
Rollback uncommitted changes.
|
void |
setListener(LoadResultListener listener) |
void |
setProperty(LoaderProperty property,
Object value) |
void |
start()
Initiates loading threads.
|
void |
submitRow(Object[] data)
Pass row data
|
void setProperty(LoaderProperty property, Object value)
void setListener(LoadResultListener listener)
void start()
void submitRow(Object[] data)
data, - must match shape of the table (requested columns, in the order provided)void resetOperation(Operation op)
op - operation will be resetvoid rollback()
void finish()
throws Exception
Exception - if that was the cause of an abortvoid close()
LoadResultListener getListener()
Copyright © 2017. All rights reserved.