|
21 | 21 |
|
22 | 22 | public class RelationalConstant { |
23 | 23 |
|
24 | | - public static final String KAFKA_SERVICE_URL = "172.20.31.71:9094"; |
25 | | - public static final String TOPIC = "Kafka-Relational-Test"; |
26 | | - public static final String[] IOTDB_URLS = { |
27 | | - "127.0.0.1:6667" |
28 | | - }; |
29 | | - public static final String IOTDB_USERNAME = "root"; |
30 | | - public static final String IOTDB_PASSWORD = "root"; |
31 | | - public static final int SESSION_SIZE = 3; |
32 | | - public static final int CONSUMER_THREAD_NUM = 5; |
33 | | - public static final String[] DATABASES = {"kafka_db1", "kafka_db2"}; |
34 | | - public static final String[][] TABLES = { |
35 | | - // database, tableName, columnNames, columnTypes, columnCategories |
36 | | - {"kafka_db1", "tb1", "time,region,model_id,temperature,status", "TIMESTAMP,STRING,STRING,FLOAT,BOOLEAN", "TIME,TAG,ATTRIBUTE,FIELD,FIELD"}, |
37 | | - {"kafka_db2", "tb2", "time,plant_id,humidity,status", "TIMESTAMP,STRING,FLOAT,BOOLEAN", "TIME,TAG,FIELD,FIELD"} |
38 | | - }; |
39 | | - public static final String[] ALL_DATA = { |
40 | | - // database;tableName;columnName[,columnName]*;value[,value]*[,value[:value]*]* |
41 | | - "kafka_db1;tb1;time,temperature,status;17,3.26,true;18,3.27,false;19,3.28,true", |
42 | | - "kafka_db1;tb1;time,region,model_id,temperature;20,'rgn1','id1',3.31", |
43 | | - "kafka_db2;tb2;time,plant_id,humidity,status;50,'id1',68.7,true", |
44 | | - "kafka_db2;tb2;time,plant_id,humidity,status;51,'id2',68.5,false", |
45 | | - "kafka_db2;tb2;time,plant_id,humidity,status;52,'id3',68.3,true", |
46 | | - "kafka_db2;tb2;time,plant_id,humidity,status;53,'id4',68.8,true", |
47 | | - "kafka_db2;tb2;time,plant_id,humidity,status;54,'id5',68.9,true" |
48 | | - }; |
| 24 | + public static final String KAFKA_SERVICE_URL = "172.20.31.71:9094"; |
| 25 | + public static final String TOPIC = "Kafka-Relational-Test"; |
| 26 | + public static final String[] IOTDB_URLS = {"127.0.0.1:6667"}; |
| 27 | + public static final String IOTDB_USERNAME = "root"; |
| 28 | + public static final String IOTDB_PASSWORD = "root"; |
| 29 | + public static final int SESSION_SIZE = 3; |
| 30 | + public static final int CONSUMER_THREAD_NUM = 5; |
| 31 | + public static final String[] DATABASES = {"kafka_db1", "kafka_db2"}; |
| 32 | + public static final String[][] TABLES = { |
| 33 | + // database, tableName, columnNames, columnTypes, columnCategories |
| 34 | + { |
| 35 | + "kafka_db1", |
| 36 | + "tb1", |
| 37 | + "time,region,model_id,temperature,status", |
| 38 | + "TIMESTAMP,STRING,STRING,FLOAT,BOOLEAN", |
| 39 | + "TIME,TAG,ATTRIBUTE,FIELD,FIELD" |
| 40 | + }, |
| 41 | + { |
| 42 | + "kafka_db2", |
| 43 | + "tb2", |
| 44 | + "time,plant_id,humidity,status", |
| 45 | + "TIMESTAMP,STRING,FLOAT,BOOLEAN", |
| 46 | + "TIME,TAG,FIELD,FIELD" |
| 47 | + } |
| 48 | + }; |
| 49 | + public static final String[] ALL_DATA = { |
| 50 | + // database;tableName;columnName[,columnName]*;value[,value]*[,value[:value]*]* |
| 51 | + "kafka_db1;tb1;time,temperature,status;17,3.26,true;18,3.27,false;19,3.28,true", |
| 52 | + "kafka_db1;tb1;time,region,model_id,temperature;20,'rgn1','id1',3.31", |
| 53 | + "kafka_db2;tb2;time,plant_id,humidity,status;50,'id1',68.7,true", |
| 54 | + "kafka_db2;tb2;time,plant_id,humidity,status;51,'id2',68.5,false", |
| 55 | + "kafka_db2;tb2;time,plant_id,humidity,status;52,'id3',68.3,true", |
| 56 | + "kafka_db2;tb2;time,plant_id,humidity,status;53,'id4',68.8,true", |
| 57 | + "kafka_db2;tb2;time,plant_id,humidity,status;54,'id5',68.9,true" |
| 58 | + }; |
49 | 59 | } |
0 commit comments