Loader.ConnectionError, Loader.DataError| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_BATCH_ROW_SIZE
Default batch row size
|
static String |
FILE_PREFIX |
static String |
FILE_SUFFIX |
static DatabaseMetaData |
metadata |
| Constructor and Description |
|---|
StreamLoader(Map<LoaderProperty,Object> properties,
Connection putConnection,
Connection processConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(RuntimeException t) |
void |
close()
Close connections that have been provided upon initialization
|
void |
finish()
Finishes loader
|
String |
getFullTableName() |
LoadResultListener |
getListener() |
String |
getNoise() |
boolean |
isAborted() |
void |
resetOperation(Operation op)
If operation is changed, previous data is committed
|
void |
rollback()
Rollback uncommitted changes.
|
void |
run() |
void |
setListener(LoadResultListener _listener) |
void |
setProperty(LoaderProperty property,
Object value) |
void |
setTestMode(boolean mode) |
void |
start()
Starts the loader
|
void |
submitRow(Object[] row)
Pass row data
|
public static final String FILE_PREFIX
public static final String FILE_SUFFIX
public static final long DEFAULT_BATCH_ROW_SIZE
public static DatabaseMetaData metadata
public StreamLoader(Map<LoaderProperty,Object> properties, Connection putConnection, Connection processConnection)
public void setProperty(LoaderProperty property, Object value)
setProperty in interface Loaderpublic String getNoise()
public void abort(RuntimeException t)
public boolean isAborted()
public void rollback()
Loaderpublic void submitRow(Object[] row)
Loaderpublic void finish()
throws Exception
public void close()
Loaderpublic void resetOperation(Operation op)
LoaderresetOperation in interface Loaderop - operation will be resetpublic String getFullTableName()
public LoadResultListener getListener()
getListener in interface Loaderpublic void setListener(LoadResultListener _listener)
setListener in interface Loaderpublic void setTestMode(boolean mode)
Copyright © 2017. All rights reserved.