com_taosdata_jdbc_tmq_TMQConnector.h 6.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
/*
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
 *
 * This program is free software: you can use, redistribute, and/or modify
 * it under the terms of the GNU Affero General Public License, version 3
 * or later ("AGPL"), as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#include <jni.h>
/* Header for class com_taosdata_jdbc_tmq_TMQConnector */

#ifndef _Included_com_taosdata_jdbc_tmq_TMQConnector
#define _Included_com_taosdata_jdbc_tmq_TMQConnector
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConfNewImp
 * Signature: (Lcom/taosdata/jdbc/tmq/TAOSConsumer;)J
 */
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConfNewImp(JNIEnv *, jobject);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConfSetImp
 * Signature: (JLjava/lang/String;Ljava/lang/String;)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConfSetImp(JNIEnv *, jobject, jlong, jstring,
                                                                             jstring);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConfDestroyImp
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConfDestroyImp(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConsumerNewImp
 * Signature: (JLcom/taosdata/jdbc/tmq/TMQConnector;)J
 */
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConsumerNewImp(JNIEnv *, jobject, jlong, jobject);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqTopicNewImp
 * Signature: (J)J
 */
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqTopicNewImp(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqTopicAppendImp
 * Signature: (JLjava/lang/String;)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqTopicAppendImp(JNIEnv *, jobject, jlong, jstring);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqTopicDestroyImp
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqTopicDestroyImp(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqSubscribeImp
 * Signature: (JJ)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqSubscribeImp(JNIEnv *, jobject, jlong, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqSubscriptionImp
 * Signature: (JLcom/taosdata/jdbc/tmq/TMQConnector;)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqSubscriptionImp(JNIEnv *, jobject, jlong, jobject);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqCommitSync
 * Signature: (JJ)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqCommitSync(JNIEnv *, jobject, jlong, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqCommitAsync
 * Signature: (JJLcom/taosdata/jdbc/tmq/TAOSConsumer;)V
 */
JNIEXPORT void JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqCommitAsync(JNIEnv *, jobject, jlong, jlong, jobject);

102 103 104
JNIEXPORT void JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_consumerCommitAsync(JNIEnv *, jobject, jlong, jlong,
                                                                                   jobject);

105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqUnsubscribeImp
 * Signature: (J)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqUnsubscribeImp(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConsumerCloseImp
 * Signature: (J)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConsumerCloseImp(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    getErrMsgImp
 * Signature: (I)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_getErrMsgImp(JNIEnv *, jobject, jint);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqConsumerPoll
 * Signature: (JJ)J
 */
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConsumerPoll(JNIEnv *, jobject, jlong, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqGetTopicName
 * Signature: (J)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetTopicName(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqGetDbName
 * Signature: (J)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetDbName(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqGetVgroupId
 * Signature: (J)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetVgroupId(JNIEnv *, jobject, jlong);

/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqGetTableName
 * Signature: (J)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetTableName(JNIEnv *, jobject, jlong);

H
huolibo 已提交
161 162 163 164 165 166 167
/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    tmqGetOffset
 * Signature: (J)Ljava/lang/String;
 */
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetOffset(JNIEnv *, jobject, jlong);

168 169 170 171 172 173
/*
 * Class:     com_taosdata_jdbc_tmq_TMQConnector
 * Method:    fetchBlockImp
 * Signature: (JJLcom/taosdata/jdbc/TSDBResultSetBlockData;ILjava/util/List;)I
 */
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_fetchRawBlockImp(JNIEnv *, jobject, jlong, jlong,
H
huolibo 已提交
174
                                                                                jobject, jobject);
175

176 177 178 179 180 181
JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqSeekImp(JNIEnv *, jobject, jlong, jstring, jint,
                                                                          jlong);

JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetTopicAssignmentImp(JNIEnv *, jobject, jlong,
                                                                                        jstring, jobject);

182 183 184 185
#ifdef __cplusplus
}
#endif
#endif