-
Notifications
You must be signed in to change notification settings - Fork 1
/
snippets.json
164 lines (164 loc) · 3.85 KB
/
snippets.json
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
102
103
104
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
161
162
163
164
{
"Define Protocol": {
"scope": "avro",
"prefix": [
"protocol"
],
"body": [
"protocol ${1:MyProtocol} {",
"\t$0",
"}"
],
"description": "Define Protocol"
},
"Define Record": {
"scope": "avro",
"prefix": [
"record"
],
"body": [
"record ${1:MyRecord} {",
"\t$0",
"}"
],
"description": "Define Record"
},
"Define Error": {
"scope": "avro",
"prefix": [
"error"
],
"body": [
"error ${1:MyError} {",
"\t$0",
"}"
],
"description": "Define an Avro Error"
},
"Define Fixed type": {
"scope": "avro",
"prefix": [
"fixed"
],
"body": [
"fixed ${1:MyFixedType}(${2:size});"
],
"description": "Define Fixed type"
},
"RPC function": {
"scope": "avro",
"prefix": [
"function",
"rpc",
"void function"
],
"body": [
"${1:void} ${2:functionName}($0)${3: throws Error};$0"
],
"description": "RPC function"
},
"int field": {
"scope": "avro",
"prefix": "int",
"body": [
"int ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"long field": {
"scope": "avro",
"prefix": "long",
"body": [
"long ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"string field": {
"scope": "avro",
"prefix": "string",
"body": [
"string ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"boolean field": {
"scope": "avro",
"prefix": "boolean",
"body": [
"boolean ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"float field": {
"scope": "avro",
"prefix": "float",
"body": [
"float ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"double field": {
"scope": "avro",
"prefix": "double",
"body": [
"double ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"bytes field": {
"scope": "avro",
"prefix": "bytes",
"body": [
"bytes ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"date field": {
"scope": "avro",
"prefix": "date",
"body": [
"date ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"time_ms field": {
"scope": "avro",
"prefix": "time_ms",
"body": [
"time_ms ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"timestamp_ms field": {
"scope": "avro",
"prefix": "timestamp_ms",
"body": [
"timestamp_ms ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"uuid field": {
"scope": "avro",
"prefix": "uuid",
"body": [
"uuid ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"decimal field": {
"scope": "avro",
"prefix": "decimal",
"body": [
"decimal(${2:precision},${3:scale}) ${1:fieldName};$0"
],
"description": "Field for a Record or Error"
},
"field": {
"scope": "avro",
"prefix": "field",
"body": [
"${1:int} ${2:fieldName};$0"
],
"description": "Field for a Record or Error"
}
}