类 TMQConnector
- java.lang.Object
-
- com.taosdata.jdbc.TSDBJNIConnector
-
- com.taosdata.jdbc.tmq.TMQConnector
-
public class TMQConnector extends TSDBJNIConnector
-
-
字段概要
-
从类继承的字段 com.taosdata.jdbc.TSDBJNIConnector
taos
-
-
构造器概要
构造器 构造器 说明 TMQConnector()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidasyncCommit(long offsets, TaosConsumer consumer)voidcloseConsumer()longcreateConfig(Properties properties)voidcreateConsumer(long conf)longcreateTopic(Collection<String> topics)voiddestroyConf(long conf)voiddestroyTopic(long topic)intfetchBlock(long resultSet, TSDBResultSetBlockData blockData, List<ColumnMetaData> columnMetaData)StringgetDbName(long res)StringgetErrMsg(int code)StringgetTableName(long res)StringgetTopicName(long res)intgetVgroupId(long res)longpoll(long waitTime)voidsetTopicList(String[] topics)voidsubscribe(long topic)Set<String>subscription()voidsyncCommit(long offsets)voidunsubscribe()-
从类继承的方法 com.taosdata.jdbc.TSDBJNIConnector
addBatch, bindColumnDataArray, closeBatch, closeConnection, connect, executeBatch, executeQuery, fetchBlock, fetchRow, freeResultSet, getAffectedRows, getErrCode, getErrMsg, getResultTimePrecision, getSchemaMetaData, init, insertLines, isClosed, isResultsetClosed, isUpdateQuery, prepareStmt, setBindTableName, setBindTableNameAndTags
-
-
-
-
方法详细资料
-
createConfig
public long createConfig(Properties properties) throws SQLException
- 抛出:
SQLException
-
destroyConf
public void destroyConf(long conf)
-
createConsumer
public void createConsumer(long conf) throws SQLException- 抛出:
SQLException
-
createTopic
public long createTopic(Collection<String> topics) throws SQLException
- 抛出:
SQLException
-
destroyTopic
public void destroyTopic(long topic)
-
subscribe
public void subscribe(long topic) throws SQLException- 抛出:
SQLException
-
subscription
public Set<String> subscription() throws SQLException
- 抛出:
SQLException
-
setTopicList
public void setTopicList(String[] topics)
-
syncCommit
public void syncCommit(long offsets) throws SQLException- 抛出:
SQLException
-
asyncCommit
public void asyncCommit(long offsets, TaosConsumer consumer)
-
unsubscribe
public void unsubscribe() throws SQLException- 抛出:
SQLException
-
closeConsumer
public void closeConsumer() throws SQLException- 抛出:
SQLException
-
getErrMsg
public String getErrMsg(int code)
-
poll
public long poll(long waitTime)
-
getTopicName
public String getTopicName(long res)
-
getDbName
public String getDbName(long res)
-
getVgroupId
public int getVgroupId(long res)
-
getTableName
public String getTableName(long res)
-
fetchBlock
public int fetchBlock(long resultSet, TSDBResultSetBlockData blockData, List<ColumnMetaData> columnMetaData)
-
-