public class TMQConnector extends TSDBJNIConnector
taos| 构造器和说明 |
|---|
TMQConnector() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncCommit(long offsets,
TaosConsumer consumer) |
void |
closeConsumer() |
long |
createConfig(Properties properties) |
void |
createConsumer(long conf) |
long |
createTopic(Collection<String> topics) |
void |
destroyConf(long conf) |
void |
destroyTopic(long topic) |
int |
fetchBlock(long resultSet,
TSDBResultSetBlockData blockData,
List<ColumnMetaData> columnMetaData) |
String |
getDbName(long res) |
String |
getErrMsg(int code) |
String |
getTableName(long res) |
String |
getTopicName(long res) |
int |
getVgroupId(long res) |
long |
poll(long waitTime) |
void |
setTopicList(String[] topics) |
void |
subscribe(long topic) |
Set<String> |
subscription() |
void |
syncCommit(long offsets) |
void |
unsubscribe() |
addBatch, bindColumnDataArray, closeBatch, closeConnection, connect, executeBatch, executeQuery, fetchBlock, fetchRow, freeResultSet, getAffectedRows, getErrCode, getErrMsg, getResultTimePrecision, getSchemaMetaData, init, insertLines, isClosed, isResultsetClosed, isUpdateQuery, prepareStmt, setBindTableName, setBindTableNameAndTagspublic long createConfig(Properties properties) throws SQLException
SQLExceptionpublic void destroyConf(long conf)
public void createConsumer(long conf)
throws SQLException
SQLExceptionpublic long createTopic(Collection<String> topics) throws SQLException
SQLExceptionpublic void destroyTopic(long topic)
public void subscribe(long topic)
throws SQLException
SQLExceptionpublic Set<String> subscription() throws SQLException
SQLExceptionpublic void setTopicList(String[] topics)
public void syncCommit(long offsets)
throws SQLException
SQLExceptionpublic void asyncCommit(long offsets,
TaosConsumer consumer)
public void unsubscribe()
throws SQLException
SQLExceptionpublic void closeConsumer()
throws SQLException
SQLExceptionpublic String getErrMsg(int code)
public long poll(long waitTime)
public String getTopicName(long res)
public String getDbName(long res)
public int getVgroupId(long res)
public String getTableName(long res)
public int fetchBlock(long resultSet,
TSDBResultSetBlockData blockData,
List<ColumnMetaData> columnMetaData)
Copyright © 2022. All rights reserved.