## 类的使用
com.taosdata.jdbc.ws.entity.Request

使用Request的程序包
com.taosdata.jdbc.ws
com.taosdata.jdbc.ws.entity
com.taosdata.jdbc.ws.stmt.entity
com.taosdata.jdbc.ws.tmq.entity

### com.taosdata.jdbc.ws中Request的使用

参数类型为Request的com.taosdata.jdbc.ws中的方法
`Response` Transport.`send(Request request)`
`void` Transport.`sendWithoutRep(Request request)`

### com.taosdata.jdbc.ws.entity中Request的使用

返回Request的com.taosdata.jdbc.ws.entity中的方法
`static Request` RequestFactory.`generateFetch(long id, long reqId)`
`static Request` RequestFactory.`generateFetchBlock(long id)`
`static Request` RequestFactory.`generateQuery(String sql, long reqId)`

### com.taosdata.jdbc.ws.stmt.entity中Request的使用

返回Request的com.taosdata.jdbc.ws.stmt.entity中的方法
`static Request` RequestFactory.`generateBatch(long stmtId, long reqId)`
`static Request` RequestFactory.`generateBind(long stmtId, long reqId, Object[][] columns)`
`static Request` RequestFactory.`generateClose(long stmtId, long reqId)`
`static Request` RequestFactory.`generateExec(long stmtId, long reqId)`
`static Request` RequestFactory.`generateInit(long reqId)`
`static Request` RequestFactory.`generatePrepare(long stmtId, long reqId, String sql)`
`static Request` RequestFactory.`generateSetTableName(long stmtId, long reqId, String tableName)`
`static Request` RequestFactory.`generateSetTags(long stmtId, long reqId, Object[] tags)`

### com.taosdata.jdbc.ws.tmq.entity中Request的使用

返回Request的com.taosdata.jdbc.ws.tmq.entity中的方法
`Request` TMQRequestFactory.`generateAssignment(String topic)`
`Request` TMQRequestFactory.`generateCommit(long messageId)`
`Request` TMQRequestFactory.`generateCommitOffset(TopicPartition topicPartition, long offset)`
`Request` TMQRequestFactory.`generateCommitted(TopicPartition[] topicPartitions)`
`Request` TMQRequestFactory.`generateFetch(long messageId)`
`Request` TMQRequestFactory.`generateFetchBlock(long fetchRequestId, long messageId)`
`Request` TMQRequestFactory.`generatePoll(long blockingTime)`
`Request` TMQRequestFactory.`generatePosition(TopicPartition[] topicPartitions)`
`Request` TMQRequestFactory.`generateSeek(String topic, int vgId, long offset)`
`Request` TMQRequestFactory.`generateSubscribe(String user, String password, String db, String groupId, String clientId, String offsetRest, String[] topics, String enableAutoCommit, String autoCommitIntervalMs, String snapshotEnable, String withTableName)`
`Request` TMQRequestFactory.`generateSubscription()`
`Request` TMQRequestFactory.`generateUnsubscribe()`