Skip to content

Commit 0d2089b

Browse files
committed
* NEW Update the readme.
Signed-off-by: wangha <[email protected]>
1 parent d5c052e commit 0d2089b

File tree

1 file changed

+10
-37
lines changed

1 file changed

+10
-37
lines changed

README.md

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,16 @@
88
## Start
99

1010
```
11-
Usage: ./parquet-tool <OPTION>
12-
Parquet tool version 0.0.1
11+
Usage: ./parquet-tool <CMD>
12+
Parquet tool version 0.0.2
1313
14-
Available options: sort, search, binary, decrypt, replay, version
15-
Examples:
16-
./parquet-tool sort ts /tmp
17-
./parquet-tool search 0 1000 /tmp
18-
./parquet-tool binary data /tmp/foo.parquet /tmp/bar.parquet
19-
./parquet-tool decrypt /tmp/foo.parquet
20-
./parquet-tool replay 10 mqtt-tcp://127.0.0.1:1883 topic /tmp/foo.parquet
21-
22-
:parquet-tool sort ts|signal <DIR>
23-
:sort parquet files in <DIR> with ts or signal
24-
:--------------------------------------------------
25-
:parquet-tool search <START-KEY> <END-KEY> <DIR>
26-
:search parquet files in <DIR> in range of <START-KEY> to <END-KEY>
27-
:--------------------------------------------------
28-
:parquet-tool binary key|data|both <FILE...>
29-
:print keys or data or both of them in <FILE...> in binary
30-
:--------------------------------------------------
31-
:parquet-tool decrypt key|data|both <FOOT-KEY> <COL1-KEY> <COL2-KEY> <FILE...>
32-
:decrypt key or data or both in<FILE...> with <FOOT-KEY> <COL1-KEY> <COL2-KEY>
33-
:--------------------------------------------------
34-
:parquet-tool replay <INTERVAL> <MQTT-URL> <TOPIC> <FILE...>
35-
:replay datas in <FILE...> to <MQTT-URL> mqtt broker in <INTERVAL>ms
36-
:--------------------------------------------------
37-
:parquet-tool decreplay <FOOT-KEY> <COL1-KEY> <COL2-KEY> <INTERVAL> <MQTT-URL> <TOPIC> <FILE...>
38-
:Combine decrypt and replay
39-
```
40-
41-
## QUIET Mode
14+
Available commands: ls, sort, cat, search, fuzz, replay, version
4215
43-
Quiet mode is only valid when cmd
44-
is `parquet-tool binary data ...` or `parquet-tool decrypt data ...`.
45-
In this mode. Neither split `\n` nor other logs will be printed.
46-
It will be useful when you try to write datas in parquet to a file.
47-
48-
```
49-
QUIET=1 ./parquet-tool binary data /tmp/foo.parquet
16+
Examples:
17+
./parquet-tool ls -r 0,1000 -d /tmp
18+
./parquet-tool sort -k ts -d /tmp
19+
./parquet-tool cat -c key -f /tmp/foo.parquet
20+
./parquet-tool search -s canspi -r 0,1000 -d /tmp
21+
./parquet-tool fuzz -s canspi -r 0,1000 -d /tmp
22+
./parquet-tool replay -i 10 -u mqtt-tcp://127.1:1883 -t topic -f /tmp/foo.parquet
5023
```

0 commit comments

Comments
 (0)