Class FastloadControlBuilder
- java.lang.Object
-
- org.pentaho.di.trans.steps.terafast.FastloadControlBuilder
-
public class FastloadControlBuilder extends Object
- Author:
- Thomas Hoedl(asc042)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATAFILE_COLUMN_SEPERATORstatic StringDEFAULT_DATE_FORMATstatic StringDEFAULT_ERROR_TABLE1static StringDEFAULT_ERROR_TABLE2static StringDEFAULT_NULL_VALUEstatic StringRECORD_FORMAT_UNFORMATTEDstatic StringRECORD_VARTEXT
-
Constructor Summary
Constructors Constructor Description FastloadControlBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FastloadControlBuilderbeginLoading(String schemaName, String table)Issue begin loading with default error tables.FastloadControlBuilderdefine(org.pentaho.di.core.row.RowMetaInterface targetTableFields, StringListPluginProperty tableFieldList, String dataFile)FastloadControlBuilderendLoading()FastloadControlBuilderinsert(org.pentaho.di.core.row.RowMetaInterface targetTableFields, StringListPluginProperty tableFieldList, String tableName)FastloadControlBuilderline(String line)Append line, nothing if line is blank.FastloadControlBuilderlogoff()Append log off.FastloadControlBuilderlogon(String connectionString)Append log on.FastloadControlBuilderlogon(String dbhost, String user, String password)Append log on.FastloadControlBuildernewline()Append new line.FastloadControlBuildersetErrorLimit(int errorLimit)FastloadControlBuildersetRecordFormat(String format)FastloadControlBuildersetSessions(int sessions)FastloadControlBuildershow()show field definition.StringtoString()
-
-
-
Field Detail
-
DATAFILE_COLUMN_SEPERATOR
public static final String DATAFILE_COLUMN_SEPERATOR
- See Also:
- Constant Field Values
-
RECORD_FORMAT_UNFORMATTED
public static final String RECORD_FORMAT_UNFORMATTED
- See Also:
- Constant Field Values
-
RECORD_VARTEXT
public static final String RECORD_VARTEXT
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_TABLE1
public static final String DEFAULT_ERROR_TABLE1
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_TABLE2
public static final String DEFAULT_ERROR_TABLE2
- See Also:
- Constant Field Values
-
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_NULL_VALUE
public static final String DEFAULT_NULL_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
newline
public FastloadControlBuilder newline()
Append new line.- Returns:
- this.
-
logon
public FastloadControlBuilder logon(String connectionString) throws IllegalArgumentException
Append log on. Connection string must be in form [DBHOST]/[USER],[PASSWORD], e.g. localtd/user,pass;- Parameters:
connectionString- the connection string.- Returns:
- this.
- Throws:
IllegalArgumentException- if connection string is blank.
-
logon
public FastloadControlBuilder logon(String dbhost, String user, String password) throws IllegalArgumentException
Append log on.- Parameters:
dbhost- DB host, e.g localtduser- the user.password- the password.- Returns:
- this
- Throws:
IllegalArgumentException- if input is invalid.
-
setRecordFormat
public FastloadControlBuilder setRecordFormat(String format) throws IllegalArgumentException
- Parameters:
format- the format.- Returns:
- this.
- Throws:
IllegalArgumentException- if format is invalid.
-
setSessions
public FastloadControlBuilder setSessions(int sessions) throws IllegalArgumentException
- Parameters:
sessions- the sesssions.- Returns:
- this.
- Throws:
IllegalArgumentException- if sessions <= 0
-
setErrorLimit
public FastloadControlBuilder setErrorLimit(int errorLimit) throws IllegalArgumentException
- Parameters:
errorLimit- the errorLimit.- Returns:
- this.
- Throws:
IllegalArgumentException- if errorLimit <= 0
-
define
public FastloadControlBuilder define(org.pentaho.di.core.row.RowMetaInterface targetTableFields, StringListPluginProperty tableFieldList, String dataFile)
- Parameters:
targetTableFields- ...dataFile- ...- Returns:
- this
-
insert
public FastloadControlBuilder insert(org.pentaho.di.core.row.RowMetaInterface targetTableFields, StringListPluginProperty tableFieldList, String tableName)
- Parameters:
targetTableFields- ...tableFieldList-tableName- ...- Returns:
- ...
-
show
public FastloadControlBuilder show()
show field definition.- Returns:
- this
-
endLoading
public FastloadControlBuilder endLoading()
- Returns:
- this
-
beginLoading
public FastloadControlBuilder beginLoading(String schemaName, String table) throws IllegalArgumentException
Issue begin loading with default error tables.- Parameters:
table- the target table.- Returns:
- this.
- Throws:
IllegalArgumentException- if table is invalid.
-
line
public FastloadControlBuilder line(String line)
Append line, nothing if line is blank.- Parameters:
line- line to append.- Returns:
- this.
-
logoff
public FastloadControlBuilder logoff()
Append log off.- Returns:
- this.
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-