public class TMQConnector extends TSDBJNIConnector
taos| Constructor and Description |
|---|
TMQConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncCommit(OffsetWaitCallback<?> callback) |
void |
asyncCommit(String topicName,
int vgId,
long offset,
OffsetWaitCallback<?> callback) |
void |
closeConsumer() |
void |
commitOffsetSync(String topicName,
int vgId,
long offset) |
long |
committed(String topicName,
int vgId) |
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) |
long |
position(String topicName,
int vgId) |
void |
seek(String topicName,
int vgId,
long offset) |
void |
setTopicList(String[] topics) |
void |
subscribe(long topic) |
Set<String> |
subscription() |
void |
syncCommit() |
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()
throws SQLException
SQLExceptionpublic void commitOffsetSync(String topicName, int vgId, long offset) throws SQLException
SQLExceptionpublic void asyncCommit(OffsetWaitCallback<?> callback)
public void asyncCommit(String topicName, int vgId, 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)
public long committed(String topicName, int vgId) throws SQLException
SQLExceptionpublic long position(String topicName, int vgId) throws SQLException
SQLExceptionCopyright © 2023. All rights reserved.