程序包 com.taosdata.jdbc

## 类 SchemalessWriter

- java.lang.Object
- - com.taosdata.jdbc.SchemalessWriter

    public class SchemalessWriter
    extends Object

This class is for schemaless lines(line/telnet/json) write to tdengine. e.g.: SchemalessWriter writer = new SchemalessWriter(connection); writer.write(lines, SchemalessProtocolType, SchemalessTimestampType);

### 字段概要

字段
`protected Connection` `connection`

### 构造器概要

构造器
`SchemalessWriter​(Connection connection)`

### 方法概要

所有方法 实例方法 具体方法
`void` `write​(String[] lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType)` batch schemaless lines write to db
`void` `write​(String line, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType)` only one line writes to db
`void` `write​(List<String> lines, SchemalessProtocolType protocolType, SchemalessTimestampType timestampType)` batch schemaless lines write to db with list

### 从类继承的方法 java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### 字段详细资料

#### connection

    protected Connection connection

### 构造器详细资料

#### SchemalessWriter

    public SchemalessWriter​(Connection connection)

### 方法详细资料

#### write

    public void write​(String[] lines,
                      SchemalessProtocolType protocolType,
                      SchemalessTimestampType timestampType)
               throws SQLException

batch schemaless lines write to db

参数:
  `lines` - schemaless lines
  `protocolType` - schemaless type `SchemalessProtocolType`
  `timestampType` - Time precision `SchemalessTimestampType`
抛出:
  `SQLException` - execute exception

#### write

    public void write​(String line,
                      SchemalessProtocolType protocolType,
                      SchemalessTimestampType timestampType)
               throws SQLException

only one line writes to db

参数:
  `line` - schemaless line
  `protocolType` - schemaless type `SchemalessProtocolType`
  `timestampType` - Time precision `SchemalessTimestampType`
抛出:
  `SQLException` - execute exception

#### write

    public void write​(List<String> lines,
                      SchemalessProtocolType protocolType,
                      SchemalessTimestampType timestampType)
               throws SQLException

batch schemaless lines write to db with list

参数:
  `lines` - schemaless list
  `protocolType` - schemaless type `SchemalessProtocolType`
  `timestampType` - Time precision `SchemalessTimestampType`
抛出:
  `SQLException` - execute exception