- java.lang.Object
-
- de.xab.porter.transfer.writer.AbstractWriter<java.sql.Connection>
-
- de.xab.porter.transfer.jdbc.writer.JDBCWriter
-
- de.xab.porter.transfer.jdbc.writer.DorisWriter
-
- All Implemented Interfaces:
de.xab.porter.transfer.connector.Connectable<java.sql.Connection>,JDBCConnector,de.xab.porter.transfer.writer.Writer<java.sql.Connection>
public class DorisWriter extends JDBCWriter
-
-
Constructor Summary
Constructors Constructor Description DorisWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateTable(de.xab.porter.api.Result<?> data)In case of Doris has a complex type of table with different DDL specification, porter will not support create table for it.java.lang.StringgetJDBCUrl(de.xab.porter.api.dataconnection.DataConnection dataConnection)Doris uses MySQL JDBC protocolprotected voidwriteInPrepareBatchMode(de.xab.porter.api.Relation relation)Doris (0.14 for now) has an extremely slow speed of inserting with batch mode.protected voidwriteInStatementBatchMode(de.xab.porter.api.Relation relation)-
Methods inherited from class de.xab.porter.transfer.jdbc.writer.JDBCWriter
connect, doWrite, getAfterDDL, getColumns, getColumnType, getConstraints, getCreate, getCreateDDL, getIdentifierQuote, sortPrimaryKey, writeInDefaultMode, writeInValueMode
-
Methods inherited from class de.xab.porter.transfer.writer.AbstractWriter
close, closed, getChannel, getColumnIdentifier, getConnector, getTableIdentifier, setChannel, setConnector, write
-
-
-
-
Method Detail
-
getJDBCUrl
public java.lang.String getJDBCUrl(de.xab.porter.api.dataconnection.DataConnection dataConnection)
Doris uses MySQL JDBC protocol
-
createTable
public void createTable(de.xab.porter.api.Result<?> data)
In case of Doris has a complex type of table with different DDL specification, porter will not support create table for it.- Specified by:
createTablein interfacede.xab.porter.transfer.writer.Writer<java.sql.Connection>- Overrides:
createTablein classJDBCWriter
-
writeInPrepareBatchMode
protected void writeInPrepareBatchMode(de.xab.porter.api.Relation relation)
Doris (0.14 for now) has an extremely slow speed of inserting with batch mode.- Overrides:
writeInPrepareBatchModein classJDBCWriter
-
writeInStatementBatchMode
protected void writeInStatementBatchMode(de.xab.porter.api.Relation relation)
- Overrides:
writeInStatementBatchModein classJDBCWriter
-
-