- 博客(13)
- 收藏
- 关注
原创 Flink-AsyncIO思考
// This example implements the asynchronous request and callback with Futures that have the// interface of Java 8's futures (which is the same one followed by Flink's Future)/** * An implementation of the 'AsyncFunction' that sends requests and sets t.
2020-10-16 10:18:12 270
原创 Flink之源码分析工具篇(二)
题外话,工欲善其事必先利其器,源码分析中对类的继承关系、自身属性方法、方法调用过程的了解是最基础的。然而,无图无真相,等你从代码中跳来跳去,跳来跳去后,你突然发现你陷进去了。。。尴尬不尴尬,来上图!ps:需要idea商业版,社区版不支持一、继承和类自身属性方法---使用类图右键要查看的类名即可。二、方法调用栈--时序图安装SequenceDiagram插件如下图,在想要看的方法处,右键点击Sequence Diagram即可结果为下图,整个方法内部的调用栈清晰的展
2020-09-10 18:16:58 161
原创 Flink之源码本地构建(一)
1、准备工作:windows10 + java8 + maven3.1.1 + idea14特别的,maven版本为官方推荐的,试了其他版本,未能成功构建。2、从git clone源码,不再赘述https://github.com/apache/flink.git3、右键源码根目录4、时间大概需要半小时,耐心等待,可以去喝杯茶或者撸点代码...5、wordcount小例子跑起来,开始源码之旅~FAQ:1·、org.apache.flink.sql.parser..
2020-09-10 11:29:17 647
原创 python反射
import syssys.path.append("../")import osclass Base: def __init__(self): pass def test(self): module = __import__(os.path.basename(sys.argv[0]).split(".")[0]) cl...
2019-08-08 16:00:41 101
原创 python class对象转json
class AAA: def __init__(self): self.a = "a" self.b = {"b1": "b1"}if __name__ == '__main__': import json a = AAA() print json.dumps(a, default=lambda obj: obj.__dic...
2019-05-08 18:07:53 5065
原创 pgsql upsert语法
INSERT INTO distributors (did, dname) VALUES (5, 'Gizmo Transglobal'), (6, 'Associated Computing, Inc') ON CONFLICT (did) DO UPDATE SET dname = EXCLUDED.dname;INSERT INTO distributors (did,...
2018-08-22 09:09:16 4384
转载 java执行带管道的shell命令无返回值问题
转自 https://www.cnblogs.com/yuananyun/p/5254812.html
2018-07-06 14:43:17 2712 1
原创 pg操作array,json
CREATE TABLE glj( sip jsonb)insert into glj(sip) values ('[{"content":"1.1.1.1","type":"ip"},{"content":"1.1.1.2","type":"ip"},{"content":"www.baidu.com&
2018-05-31 14:26:19 1999
原创 linux下判断文件中是否包含字符串
grep -wq "hello world" a.txt && echo "contain"||echo "not contain"说明:-w 全匹配某一列-q 不打印信息
2018-02-26 18:10:23 12739
原创 python中日期获取和转换常用方法
一、获取当前日期和时间import datetime#获取当前日期today_date = datetime.datetime.now().strftime('%Y-%m-%d')print today_date#获取当前时间today_time = datetime.datetime.now().strftime('%H:%M:%S')print today_time输出:201...
2018-02-09 11:34:58 4772
原创 ssh远程到主机指定端口
工具:xshell命令:ssh 用户名@主机ip 端口号例子:比如要远程到主机22.22.22.22的12345端口,命令为ssh root@22.22.22.22 12345
2018-02-07 18:26:48 5699 1
原创 python加载json格式文件
比较简单,直接代码#!/usr/bin/python# -*- coding: utf-8 -*-import jsonwith open("conf.json", 'r') as f: result = json.load(f) print result
2018-02-07 11:30:10 7162
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人