public class TMQConnector extends TSDBJNIConnector
taos| 构造器和说明 |
|---|
TMQConnector() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncCommit(long offset,
OffsetWaitCallback<?> callback) |
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) |
long |
getOffset(long res) |
String |
getTableName(long res) |
List<Assignment> |
getTopicAssignment(String topicName) |
String |
getTopicName(long res) |
int |
getVgroupId(long res) |
long |
poll(long waitTime) |
void |
seek(String topicName,
int vgId,
long offset) |
void |
setTopicList(String[] topics) |
void |
subscribe(long topic) |
Set<String> |
subscription() |
void |
syncCommit(long offsets) |
void |
unsubscribe() |
addBatch, bindColumnDataArray, closeBatch, closeConnection, connect, executeBatch, executeQuery, executeQuery, fetchBlock, fetchRow, freeResultSet, getAffectedRows, getErrCode, getErrMsg, getResultTimePrecision, getSchemaMetaData, getTableVGroupID, init, insertLines, insertLinesWithReqId, insertLinesWithTtl, insertLinesWithTtlAndReqId, insertRaw, insertRawWithReqId, insertRawWithTtl, insertRawWithTtlAndReqId, isClosed, isResultsetClosed, isUpdateQuery, prepareStmt, 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 offset,
OffsetWaitCallback<?> callback)
public void unsubscribe()
throws SQLException
SQLExceptionpublic void closeConsumer()
throws SQLException
SQLExceptionpublic String getErrMsg(int code)
public long poll(long waitTime)
throws SQLException
SQLExceptionpublic String getTopicName(long res) throws SQLException
SQLExceptionpublic String getDbName(long res) throws SQLException
SQLExceptionpublic int getVgroupId(long res)
throws SQLException
SQLExceptionpublic String getTableName(long res)
public long getOffset(long res)
throws SQLException
SQLExceptionpublic int fetchBlock(long resultSet,
TSDBResultSetBlockData blockData,
List<ColumnMetaData> columnMetaData)
public void seek(String topicName, int vgId, long offset)
public List<Assignment> getTopicAssignment(String topicName)
Copyright © 2023. All rights reserved.