mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
format
This commit is contained in:
@@ -12,21 +12,18 @@ public class CommonMessage implements Serializable {
|
||||
private String table; // 表名
|
||||
private List<String> pkNames;
|
||||
private Boolean isDdl;
|
||||
private String type; // 类型:
|
||||
// INSERT
|
||||
// UPDATE
|
||||
// DELETE
|
||||
// binlog executeTime
|
||||
private Long es; // 执行耗时
|
||||
// dml build timeStamp
|
||||
private Long ts; // 同步时间
|
||||
private String sql; // 执行的sql,
|
||||
// dml
|
||||
// sql为空
|
||||
private List<Map<String, Object>> data; // 数据列表
|
||||
private List<Map<String, Object>> old; // 旧数据列表,
|
||||
// 用于update,
|
||||
// size和data的size一一对应
|
||||
// 类型:INSERT/UPDATE/DELETE
|
||||
private String type;
|
||||
// binlog executeTime, 执行耗时
|
||||
private Long es;
|
||||
// dml build timeStamp, 同步时间
|
||||
private Long ts;
|
||||
// 执行的sql,dml sql为空
|
||||
private String sql;
|
||||
// 数据列表
|
||||
private List<Map<String, Object>> data;
|
||||
// 旧数据列表,用于update,size和data的size一一对应
|
||||
private List<Map<String, Object>> old;
|
||||
|
||||
public String getDatabase() {
|
||||
return database;
|
||||
|
||||
@@ -12,7 +12,6 @@ import com.google.common.collect.MigrateMap;
|
||||
|
||||
public class PatternUtils {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static Map<String, Pattern> patterns = MigrateMap.makeComputingMap(CacheBuilder.newBuilder().softValues(),
|
||||
pattern -> {
|
||||
try {
|
||||
|
||||
@@ -34,7 +34,6 @@ import com.google.protobuf.InvalidProtocolBufferException;
|
||||
*/
|
||||
public class MQMessageUtils {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static Map<String, List<PartitionData>> partitionDatas = MigrateMap.makeComputingMap(CacheBuilder.newBuilder()
|
||||
.softValues(),
|
||||
pkHashConfigs -> {
|
||||
@@ -74,7 +73,6 @@ public class MQMessageUtils {
|
||||
return datas;
|
||||
});
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static Map<String, List<DynamicTopicData>> dynamicTopicDatas = MigrateMap.makeComputingMap(CacheBuilder.newBuilder()
|
||||
.softValues(),
|
||||
new Function<String, List<DynamicTopicData>>() {
|
||||
|
||||
@@ -409,7 +409,6 @@ public class ExtensionLoader<T> {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static ClassLoader findClassLoader() {
|
||||
return ExtensionLoader.class.getClassLoader();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user