Package io.kestra.plugin.jdbc.vertica
Class Batch
java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.plugin.jdbc.AbstractJdbcBatch
io.kestra.plugin.jdbc.vertica.Batch
- All Implemented Interfaces:
io.kestra.core.models.Plugin,io.kestra.core.models.PluginVersioning,io.kestra.core.models.tasks.RunnableTask<io.kestra.plugin.jdbc.AbstractJdbcBatch.Output>,io.kestra.core.models.tasks.TaskInterface,io.kestra.core.models.WorkerJobLifecycle,io.kestra.plugin.jdbc.JdbcConnectionInterface,io.kestra.plugin.jdbc.JdbcStatementInterface,VerticaConnectionInterface
@Example(title="Fetch rows from a table and bulk insert to another one.",full=true,code="id: vertica_batch_query\nnamespace: company.team\n\ntasks:\n - id: query\n type: io.kestra.plugin.jdbc.vertica.Query\n url: jdbc:vertica://dev:56982/db\n username: \"{{ secret(\'VERTICA_USERNAME\') }}\"\n password: \"{{ secret(\'VERTICA_PASSWORD\') }}\"\n sql: |\n SELECT *\n FROM xref\n LIMIT 1500;\n fetchType: FETCH\n fetchType: STORE\n\n - id: update\n type: io.kestra.plugin.jdbc.vertica.Batch\n from: \"{{ outputs.query.uri }}\"\n url: jdbc:vertica://prod:56982/db\n username: \"{{ secret(\'VERTICA_USERNAME\') }}\"\n password: \"{{ secret(\'VERTICA_PASSWORD\') }}\"\n sql: insert into xref values( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\n") @Example(title="Fetch rows from a table and bulk insert to another one, without using sql query.",full=true,code={"id: vertica_batch_query","namespace: company.team","","tasks:"," - id: query"," type: io.kestra.plugin.jdbc.vertica.Query"," url: jdbc:vertica://dev:56982/db"," username: vertica_user"," password: vertica_passwd"," sql: |"," SELECT *"," FROM xref"," LIMIT 1500;"," fetchType: FETCH"," fetchType: STORE",""," - id: update"," type: io.kestra.plugin.jdbc.vertica.Batch"," from: \"{{ outputs.query.uri }}\""," url: jdbc:vertica://prod:56982/db"," username: vertica_user"," password: vertica_passwd"," table: xref"})
public class Batch
extends io.kestra.plugin.jdbc.AbstractJdbcBatch
implements io.kestra.core.models.tasks.RunnableTask<io.kestra.plugin.jdbc.AbstractJdbcBatch.Output>, VerticaConnectionInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class io.kestra.plugin.jdbc.AbstractJdbcBatch
io.kestra.plugin.jdbc.AbstractJdbcBatch.AbstractJdbcBatchBuilder<C extends io.kestra.plugin.jdbc.AbstractJdbcBatch,B extends io.kestra.plugin.jdbc.AbstractJdbcBatch.AbstractJdbcBatchBuilder<C, B>>, io.kestra.plugin.jdbc.AbstractJdbcBatch.Output, io.kestra.plugin.jdbc.AbstractJdbcBatch.ParameterType Nested classes/interfaces inherited from class io.kestra.core.models.tasks.Task
io.kestra.core.models.tasks.Task.TaskBuilder<C extends io.kestra.core.models.tasks.Task,B extends io.kestra.core.models.tasks.Task.TaskBuilder<C, B>> -
Field Summary
Fields inherited from class io.kestra.core.models.tasks.Task
disabled, id, retry, timeout, type, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.kestra.plugin.jdbc.AbstractCellConvertergetCellConverter(ZoneId zoneId) voidMethods inherited from class io.kestra.plugin.jdbc.AbstractJdbcBatch
canEqual, equals, getChunk, getColumns, getFrom, getPassword, getSql, getTable, getTimeZoneId, getUrl, getUsername, hashCode, run, toStringMethods inherited from class io.kestra.core.models.tasks.Task
findById, findById, getDescription, getDisabled, getId, getLogLevel, getRetry, getRunIf, getTaskCache, getTimeout, getType, getVersion, getWorkerGroup, isAllowFailure, isAllowWarning, isFlowable, isLogToFile, isSendToWorkerTaskMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.kestra.plugin.jdbc.JdbcConnectionInterface
connection, connectionProperties, connectionProperties, getPassword, getUrl, getUsername, validateUrlMethods inherited from interface io.kestra.plugin.jdbc.JdbcStatementInterface
zoneIdMethods inherited from interface io.kestra.core.models.tasks.RunnableTask
runMethods inherited from interface io.kestra.plugin.jdbc.vertica.VerticaConnectionInterface
getSchemeMethods inherited from interface io.kestra.core.models.WorkerJobLifecycle
kill, stop
-
Constructor Details
-
Batch
public Batch()
-
-
Method Details
-
getCellConverter
- Specified by:
getCellConverterin classio.kestra.plugin.jdbc.AbstractJdbcBatch
-
registerDriver
- Specified by:
registerDriverin interfaceio.kestra.plugin.jdbc.JdbcConnectionInterface- Throws:
SQLException
-