|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.loader.Loader
public abstract class Loader
This class defines the base class for all THL Loader extractor classes. All classes that will be used with the loader must extend this.
| Field Summary | |
|---|---|
protected int |
chunkSize
|
protected boolean |
lockTables
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
params
|
protected java.net.URI |
uri
|
| Constructor Summary | |
|---|---|
Loader()
|
|
| Method Summary | |
|---|---|
int |
getChunkSize()
Get the number of rows to include in each THL event |
protected DBMSEvent |
getFinishLoadEvent()
Build an event that includes the heartbeat name to indicate that all data has been extracted |
boolean |
getLockTables()
Are locks required on the tables during the load? |
java.io.Serializable |
parseStringValue(int type,
java.lang.String value)
Take a raw string value and return the proper Java data type for the java.sql.Types type given |
void |
setChunkSize(int chunkSize)
Set the number of rows to include in each THL event |
void |
setLockTables(boolean lockTables)
Set if the tables should be locked at runtime |
void |
setUri(java.lang.String uri)
Parse the URI to extract events from |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.continuent.tungsten.replicator.extractor.RawExtractor |
|---|
extract, extract, getCurrentResourceEventId, setLastEventId |
| Methods inherited from interface com.continuent.tungsten.replicator.plugin.ReplicatorPlugin |
|---|
configure, prepare, release |
| Field Detail |
|---|
protected java.net.URI uri
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> params
protected int chunkSize
protected boolean lockTables
| Constructor Detail |
|---|
public Loader()
| Method Detail |
|---|
public void setUri(java.lang.String uri)
throws java.lang.Exception
uri -
java.lang.Exceptionpublic void setChunkSize(int chunkSize)
chunkSize - public int getChunkSize()
protected DBMSEvent getFinishLoadEvent()
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorException
java.lang.InterruptedExceptionpublic void setLockTables(boolean lockTables)
lockTables - public boolean getLockTables()
public java.io.Serializable parseStringValue(int type,
java.lang.String value)
throws java.lang.Exception
type - value -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||