Skip to content

Commit 2bbfc1a

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent e1e5a8b commit 2bbfc1a

File tree

83 files changed

+3230
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3230
-5
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-12-22 Bumped to version v1.0.253
4+
- Updated apis for tls
5+
36
2025-12-15 Bumped to version v1.0.252
47
- Updated apis for livesaas
58

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.volcengine.model.tls;
2+
3+
public class Const {
4+
public static final String TOPIC_ID = "TopicId";
5+
public static final String FULL_TEXT = "FullText";
6+
public static final String KEY_VALUE = "KeyValue";
7+
public static final String USER_INNER_KEY_VALUE = "UserInnerKeyValue";
8+
public static final String CREATE_TIME = "CreateTime";
9+
public static final String MODIFY_TIME = "ModifyTime";
10+
public static final String ENABLE_AUTO_INDEX = "EnableAutoIndex";
11+
public static final String MAX_TEXT_LEN = "MaxTextLen";
12+
public static final String CASE_SENSITIVE = "CaseSensitive";
13+
public static final String DELIMITER = "Delimiter";
14+
public static final String INCLUDE_CHINESE = "IncludeChinese";
15+
public static final String KEY = "Key";
16+
public static final String VALUE = "Value";
17+
public static final String VALUE_TYPE = "ValueType";
18+
public static final String SQL_FLAG = "SqlFlag";
19+
public static final String JSON_KEYS = "JsonKeys";
20+
public static final String INDEX_ALL = "IndexAll";
21+
public static final String AUTO_INDEX_FLAG = "AutoIndexFlag";
22+
public static final String X_TLS_REQUESTID = "X-Tls-Requestid";
23+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
package com.volcengine.model.tls;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import static com.volcengine.model.tls.Const.*;
8+
9+
@Data
10+
@NoArgsConstructor
11+
public class FullTextInfo {
12+
@JSONField(name = CASE_SENSITIVE)
13+
boolean caseSensitive;
14+
@JSONField(name = DELIMITER)
15+
String delimiter;
16+
@JSONField(name = INCLUDE_CHINESE)
17+
boolean includeChinese;
18+
19+
/**
20+
* @param caseSensitive 是否大小写敏感
21+
* @param delimiter 全文索引的分词符
22+
* @param includeChinese 是否包含中文
23+
*/
24+
public FullTextInfo(boolean caseSensitive, String delimiter, boolean includeChinese) {
25+
this.caseSensitive = caseSensitive;
26+
this.delimiter = delimiter;
27+
this.includeChinese = includeChinese;
28+
}
29+
30+
/**
31+
* @return 是否大小写敏感
32+
*/
33+
public boolean isCaseSensitive() {
34+
return caseSensitive;
35+
}
36+
37+
/**
38+
* @param caseSensitive 是否大小写敏感
39+
*/
40+
public void setCaseSensitive(boolean caseSensitive) {
41+
this.caseSensitive = caseSensitive;
42+
}
43+
44+
/**
45+
* @return 全文索引的分词符
46+
*/
47+
public String getDelimiter() {
48+
return delimiter;
49+
}
50+
51+
/**
52+
* @param delimiter 全文索引的分词符
53+
*/
54+
public void setDelimiter(String delimiter) {
55+
this.delimiter = delimiter;
56+
}
57+
58+
/**
59+
* @return 是否包含中文
60+
*/
61+
public boolean isIncludeChinese() {
62+
return includeChinese;
63+
}
64+
65+
/**
66+
* @param includeChinese 是否包含中文
67+
*/
68+
public void setIncludeChinese(boolean includeChinese) {
69+
this.includeChinese = includeChinese;
70+
}
71+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package com.volcengine.model.tls;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import static com.volcengine.model.tls.Const.KEY;
8+
import static com.volcengine.model.tls.Const.VALUE;
9+
10+
@Data
11+
@NoArgsConstructor
12+
public class KeyValueInfo {
13+
@JSONField(name = KEY)
14+
String key;
15+
@JSONField(name = VALUE)
16+
ValueInfo value;
17+
18+
/**
19+
* @param key 需要配置键值索引的字段名称
20+
* @param value 需要配置键值索引的字段描述信息
21+
*/
22+
public KeyValueInfo(String key, ValueInfo value) {
23+
this.key = key;
24+
this.value = value;
25+
}
26+
27+
/**
28+
* @return 需要配置键值索引的字段名称
29+
*/
30+
public String getKey() {
31+
return key;
32+
}
33+
34+
/**
35+
* @param key 需要配置键值索引的字段名称
36+
*/
37+
public void setKey(String key) {
38+
this.key = key;
39+
}
40+
41+
/**
42+
* @return 需要配置键值索引的字段描述信息
43+
*/
44+
public ValueInfo getValue() {
45+
return value;
46+
}
47+
48+
/**
49+
* @param value 需要配置键值索引的字段描述信息
50+
*/
51+
public void setValue(ValueInfo value) {
52+
this.value = value;
53+
}
54+
}
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
package com.volcengine.model.tls;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
import static com.volcengine.model.tls.Const.*;
9+
10+
@Data
11+
public class ValueInfo {
12+
@JSONField(name = VALUE_TYPE)
13+
String valueType;
14+
@JSONField(name = DELIMITER)
15+
String delimiter;
16+
@JSONField(name = CASE_SENSITIVE)
17+
boolean caseSensitive;
18+
@JSONField(name = INCLUDE_CHINESE)
19+
boolean includeChinese;
20+
@JSONField(name = SQL_FLAG)
21+
boolean sqlFlag;
22+
@JSONField(name = JSON_KEYS)
23+
List<KeyValueInfo> jsonKeys;
24+
@JSONField(name = INDEX_ALL)
25+
boolean indexAll;
26+
@JSONField(name = AUTO_INDEX_FLAG)
27+
boolean autoIndexFlag;
28+
29+
/**
30+
* @return 字段类型:long、double、text 和 json
31+
*/
32+
public String getValueType() {
33+
return valueType;
34+
}
35+
36+
/**
37+
* @param valueType 字段类型:long、double、text 和 json
38+
*/
39+
public void setValueType(String valueType) {
40+
this.valueType = valueType;
41+
}
42+
43+
/**
44+
* @return 字段的分词符。默认为空("")
45+
*/
46+
public String getDelimiter() {
47+
return delimiter;
48+
}
49+
50+
/**
51+
* @param delimiter 字段的分词符。默认为空("")
52+
*/
53+
public void setDelimiter(String delimiter) {
54+
this.delimiter = delimiter;
55+
}
56+
57+
/**
58+
* @return 是否区分大小写。默认为 false
59+
*/
60+
public boolean isCaseSensitive() {
61+
return caseSensitive;
62+
}
63+
64+
/**
65+
* @param caseSensitive 是否区分大小写。默认为 false
66+
*/
67+
public void setCaseSensitive(boolean caseSensitive) {
68+
this.caseSensitive = caseSensitive;
69+
}
70+
71+
/**
72+
* @return 是否包含中文。默认为 false
73+
*/
74+
public boolean isIncludeChinese() {
75+
return includeChinese;
76+
}
77+
78+
/**
79+
* @param includeChinese 是否包含中文。默认为 false
80+
*/
81+
public void setIncludeChinese(boolean includeChinese) {
82+
this.includeChinese = includeChinese;
83+
}
84+
85+
/**
86+
* @return 字段是否开启分析功能。默认为 false
87+
*/
88+
public boolean isSqlFlag() {
89+
return sqlFlag;
90+
}
91+
92+
/**
93+
* @param sqlFlag 字段是否开启分析功能。默认为 false
94+
*/
95+
public void setSqlFlag(boolean sqlFlag) {
96+
this.sqlFlag = sqlFlag;
97+
}
98+
99+
/**
100+
* @return JSON子字段键值索引
101+
*/
102+
public List<KeyValueInfo> getJsonKeys() {
103+
return jsonKeys;
104+
}
105+
106+
/**
107+
* @param jsonKeys JSON子字段键值索引
108+
*/
109+
public void setJsonKeys(List<KeyValueInfo> jsonKeys) {
110+
this.jsonKeys = jsonKeys;
111+
}
112+
113+
/**
114+
* @return 是否为JSON字段中所有值为文本的字段创建索引
115+
*/
116+
public boolean isIndexAll() {
117+
return indexAll;
118+
}
119+
120+
/**
121+
* @param indexAll 是否为JSON字段中所有值为文本的字段创建索引
122+
*/
123+
public void setIndexAll(boolean indexAll) {
124+
this.indexAll = indexAll;
125+
}
126+
127+
/**
128+
* @return 该索引是否是自动索引添加
129+
*/
130+
public boolean isAutoIndexFlag() {
131+
return autoIndexFlag;
132+
}
133+
134+
/**
135+
* @param autoIndexFlag 该索引是否是自动索引添加
136+
*/
137+
public void setAutoIndexFlag(boolean autoIndexFlag) {
138+
this.autoIndexFlag = autoIndexFlag;
139+
}
140+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.volcengine.model.tls.exception;
2+
3+
public class LogException extends Exception {
4+
public LogException(String message) {
5+
super(message);
6+
}
7+
8+
public LogException(String message, Throwable cause) {
9+
super(message, cause);
10+
}
11+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package com.volcengine.model.tls.requests;
2+
3+
import lombok.Data;
4+
import lombok.NoArgsConstructor;
5+
6+
@Data
7+
@NoArgsConstructor
8+
public class DescribeIndexRequest {
9+
private String topicId;
10+
11+
/**
12+
* @param topicId 日志主题 ID
13+
*/
14+
public DescribeIndexRequest(String topicId) {
15+
this.topicId = topicId;
16+
}
17+
18+
/**
19+
* @return 日志主题 ID
20+
*/
21+
public String getTopicId() {
22+
return topicId;
23+
}
24+
25+
/**
26+
* @param topicId 日志主题 ID
27+
*/
28+
public void setTopicId(String topicId) {
29+
this.topicId = topicId;
30+
}
31+
32+
/**
33+
* @return 检验必填参数,true合法false不合法
34+
*/
35+
public boolean CheckValidation() {
36+
if (this.topicId == null) {
37+
return false;
38+
}
39+
return true;
40+
}
41+
}

0 commit comments

Comments
 (0)