-
Notifications
You must be signed in to change notification settings - Fork 471
/
block_properties
191 lines (161 loc) · 3.31 KB
/
block_properties
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# The following collectors are available:
# - value-first - uses the first character of the value to construct an interval
# - value-last - uses the last character of the value to construct an interval
# - suffix - constructs an interval from the '@timestamp' suffix of each key
# - suffix-point-keys-only - same as "suffix", but only applies to point keys
# - suffix-range-keys-only - same as "suffix", but only applies to range keys
# Single collector.
build collector=value-first
a.SET.1:10
b.SET.2:20
c.SET.3:30
----
point: [a#1,1,c#3,1]
rangedel: [#0,0,#0,0]
rangekey: [#0,0,#0,0]
seqnums: [1,3]
# collectors returns the collectors used when writing the table, keyed by the
# shortID of the collector.
collectors
----
0: value-first
# table-props returns the table-level properties, keyed by the shortID.
table-props
----
0: [1, 4)
# block-props returns the block-level properties. For each block, the separator
# is printed, along with the properties for the block, keyed by the shortID.
block-props
----
d#72057594037927935,17:
0: [1, 4)
# Multiple collectors.
build collector=value-first collector=value-last
a.SET.1:17
b.SET.2:29
c.SET.3:38
----
point: [a#1,1,c#3,1]
rangedel: [#0,0,#0,0]
rangekey: [#0,0,#0,0]
seqnums: [1,3]
collectors
----
0: value-first
1: value-last
table-props
----
0: [1, 4)
1: [7, 10)
block-props
----
d#72057594037927935,17:
0: [1, 4)
1: [7, 10)
# Reduce the block size to a value such that each block has at most two KV
# pairs.
build block-size=25 collector=value-first collector=value-last
a.SET.1:15
b.SET.2:86
c.SET.3:72
d.SET.4:21
e.SET.5:47
f.SET.6:54
g.SET.7:63
h.SET.8:38
----
point: [a#1,1,h#8,1]
rangedel: [#0,0,#0,0]
rangekey: [#0,0,#0,0]
seqnums: [1,8]
collectors
----
0: value-first
1: value-last
table-props
----
0: [1, 9)
1: [1, 9)
block-props
----
b#2,1:
0: [1, 9)
1: [5, 7)
d#4,1:
0: [2, 8)
1: [1, 3)
f#6,1:
0: [4, 6)
1: [4, 8)
i#72057594037927935,17:
0: [3, 7)
1: [3, 9)
# Range keys contribute to the table-level property but do not affect point key
# data blocks.
build collector=suffix
[email protected]: z [(@10=foo)]
[email protected]: z [@10]
----
point: [a@5#1,1,c@15#3,1]
rangedel: [#0,0,#0,0]
rangekey: [d@20#4,21,z#72057594037927935,21]
seqnums: [1,6]
collectors
----
0: suffix
block-props
----
d#72057594037927935,17:
0: [5, 16)
table-props
----
0: [5, 31)
# Same as the above, but only collect point key properties.
build collector=suffix-point-keys-only
[email protected]: z [(@10=foo)]
[email protected]: z [@10]
----
point: [a@5#1,1,c@15#3,1]
rangedel: [#0,0,#0,0]
rangekey: [d@20#4,21,z#72057594037927935,21]
seqnums: [1,6]
collectors
----
0: suffix-point-keys-only
block-props
----
d#72057594037927935,17:
0: [5, 16)
table-props
----
0: [5, 16)
# Same as the above, but only collect range key properties.
build collector=suffix-range-keys-only
[email protected]: z [(@10=foo)]
[email protected]: z [@10]
----
point: [a@5#1,1,c@15#3,1]
rangedel: [#0,0,#0,0]
rangekey: [d@20#4,21,z#72057594037927935,21]
seqnums: [1,6]
collectors
----
0: suffix-range-keys-only
block-props
----
d#72057594037927935,17:
table-props
----
0: [20, 31)