public final class LoadVectorOnHadoopDirect extends CompositeOperator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VECTOR_H_INSTANCE |
static int |
DEFAULT_VECTOR_SIZE |
Constructor and Description |
---|
LoadVectorOnHadoopDirect() |
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext context)
Compose the body of this operator.
|
String |
getDatabase()
Get the database name.
|
String |
getHost()
Get the host name of the server where the leader node is running.
|
RecordPort |
getInputPort() |
String |
getInsertMode()
Get insert mode ( DEFAULT/ROW/BULK).
|
String |
getInstance()
Get the Vector instance name.
|
int |
getMaxErrors()
Get the maximum number of errors allowed.
|
String |
getPassword()
Get user's password.
|
Map<String,String> |
getRenameMapping()
Get the source to target field mapping.
|
boolean |
getRollback()
Get whether rollback is enabled or disabled.
|
String |
getTable()
Get the target table name.
|
String |
getUser()
Get the user account name.
|
int |
getVectorSize()
Get the buffer size (in rows).
|
void |
setDatabase(String database)
Set the database name.
|
void |
setHost(String host)
Set the host name of the server where the leader node is running.
|
void |
setInsertMode(String insertMode)
Set insert mode statement applies for Insert and Merge operation.
|
void |
setInstance(String instance)
Set the Vector instance name.
|
void |
setMaxErrors(int maxErrors)
Set the maximum number of errors allowed per stream before rolling back the data load operation.
|
void |
setPassword(String password)
Set user's password.
|
void |
setRenameMapping(Map<String,String> renameMapping)
Set a rename mapping.
|
void |
setRollback(boolean enabled)
Enable or disable rollback processing.
|
void |
setTable(String table)
Set the name of the table to load.
|
void |
setUser(String user)
Set the user account name.
|
void |
setVectorSize(int vectorSize)
Set the size of the buffer (in rows)
used to cache data before sending to
the Vector engine.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public static final int DEFAULT_VECTOR_SIZE
public static final String DEFAULT_VECTOR_H_INSTANCE
public String getUser()
public void setUser(String user)
user
- the name of the user account that has write/copy permissionspublic String getPassword()
public void setPassword(String password)
password
- the password of the user account having write/copy permissionspublic Map<String,String> getRenameMapping()
public void setRenameMapping(Map<String,String> renameMapping)
This is an optional property. If not provided, the input fields are mapped to the target database table by schema order.
renameMapping
- the mapping from old to new names.public int getMaxErrors()
public void setMaxErrors(int maxErrors)
maxErrors
- maximum errors allowed per streampublic boolean getRollback()
public void setRollback(boolean enabled)
If disabled, the operation is still aborted when the maximum number of errors has been encountered. However, the data load is not rolled back. Any data successfully loaded will appear in the target table.
rollback
- enable (true) or disable (false) rollbackpublic String getHost()
public void setHost(String host)
host
- the server host name of the leader nodepublic String getInstance()
public void setInstance(String instance)
instance
- the instance namepublic String getDatabase()
public void setDatabase(String database)
database
- the database namepublic String getTable()
public void setTable(String table)
table
- the name of the target table.public int getVectorSize()
public void setVectorSize(int vectorSize)
vectorSize
- buffer size in rowspublic RecordPort getInputPort()
public String getInsertMode()
public void setInsertMode(String insertMode)
insertMode
- insert mode for inserts and merges.protected void compose(CompositionContext context)
CompositeOperator
OperatorComposable.add(O)
OperatorComposable.connect(P, P)
. This includes
connections from the composite's input ports to sub-operators, connections between sub-operators, and
connections from sub-operators output ports to the composite's output portscompose
in class CompositeOperator
context
- the contextCopyright © 2016 Actian Corporation. All rights reserved.