public class SchemalessWriter extends Object implements AutoCloseable
| Constructor and Description |
|---|
SchemalessWriter(Connection connection) |
SchemalessWriter(Connection connection,
String dbName) |
SchemalessWriter(String url) |
SchemalessWriter(String url,
String cloudToken) |
SchemalessWriter(String url,
String username,
String password) |
SchemalessWriter(String url,
String username,
String password,
String dbName) |
SchemalessWriter(String host,
String port,
String cloudToken,
String dbName,
Boolean useSSL) |
SchemalessWriter(String url,
String user,
String password,
String cloudToken,
String dbName,
Boolean useSSL) |
SchemalessWriter(String host,
String port,
String user,
String password,
String dbName,
String type) |
SchemalessWriter(String host,
String port,
String user,
String password,
String dbName,
String type,
Boolean useSSL) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(List<String> lines,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType)
batch schemaless lines write to db with list
|
void |
write(String[] lines,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType)
batch schemaless lines write to db
|
void |
write(String[] lines,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType,
Integer ttl,
Long reqId) |
void |
write(String[] lines,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType,
String dbName,
Integer ttl,
Long reqId)
Deprecated.
|
void |
write(String line,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType)
only one line writes to db
|
int |
writeRaw(String line,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType) |
int |
writeRaw(String line,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType,
Integer ttl,
Long reqId) |
int |
writeRaw(String line,
SchemalessProtocolType protocolType,
SchemalessTimestampType timestampType,
String dbName,
Integer ttl,
Long reqId)
Deprecated.
|
public SchemalessWriter(Connection connection) throws SQLException
SQLExceptionpublic SchemalessWriter(Connection connection, String dbName) throws SQLException
SQLExceptionpublic SchemalessWriter(String url) throws SQLException
SQLExceptionpublic SchemalessWriter(String url, String cloudToken) throws SQLException
SQLExceptionpublic SchemalessWriter(String url, String username, String password) throws SQLException
SQLExceptionpublic SchemalessWriter(String url, String username, String password, String dbName) throws SQLException
SQLExceptionpublic SchemalessWriter(String url, String user, String password, String cloudToken, String dbName, Boolean useSSL) throws SQLException
SQLExceptionpublic SchemalessWriter(String host, String port, String cloudToken, String dbName, Boolean useSSL) throws SQLException
SQLExceptionpublic SchemalessWriter(String host, String port, String user, String password, String dbName, String type) throws SQLException
SQLExceptionpublic SchemalessWriter(String host, String port, String user, String password, String dbName, String type, Boolean useSSL) throws SQLException
SQLExceptionpublic void write(String[] lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType) throws SQLException
lines - schemaless linesprotocolType - schemaless type SchemalessProtocolTypetimestampType - Time precision SchemalessTimestampTypeSQLException - execute exception@Deprecated public void write(String[] lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType, String dbName, Integer ttl, Long reqId) throws SQLException
SQLExceptionpublic void write(String[] lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType, Integer ttl, Long reqId) throws SQLException
SQLExceptionpublic void write(String line, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType) throws SQLException
line - schemaless lineprotocolType - schemaless type SchemalessProtocolTypetimestampType - Time precision SchemalessTimestampTypeSQLException - execute exceptionpublic void write(List<String> lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType) throws SQLException
lines - schemaless listprotocolType - schemaless type SchemalessProtocolTypetimestampType - Time precision SchemalessTimestampTypeSQLException - execute exceptionpublic int writeRaw(String line, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType) throws SQLException
SQLException@Deprecated public int writeRaw(String line, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType, String dbName, Integer ttl, Long reqId) throws SQLException
SQLExceptionpublic int writeRaw(String line, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType, Integer ttl, Long reqId) throws SQLException
SQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableSQLExceptionCopyright © 2023. All rights reserved.