MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / HandleClientHelp

Function HandleClientHelp

src/cmd/fedb.cc:3648–3855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3646}
3647
3648void HandleClientHelp(const std::vector<std::string> parts,
3649 ::fedb::client::TabletClient* client) {
3650 if (parts.size() < 2) {
3651 printf("addreplica - add replica to leader\n");
3652 printf("changerole - change role\n");
3653 printf("count - count the num of data in specified key\n");
3654 printf("create - create table\n");
3655 printf("delreplica - delete replica from leader\n");
3656 printf("delete - delete pk\n");
3657 printf("deleteindex - delete index\n");
3658 printf("drop - drop table\n");
3659 printf("exit - exit client\n");
3660 printf("get - get only one record\n");
3661 printf("gettablestatus - get table status\n");
3662 printf("getfollower - get follower\n");
3663 printf("help - get cmd info\n");
3664 printf("loadtable - create table and load data\n");
3665 printf("man - get cmd info\n");
3666 printf("makesnapshot - make snapshot\n");
3667 printf("pausesnapshot - pause snapshot\n");
3668 printf("preview - preview data\n");
3669 printf("put - insert data into table\n");
3670 printf("quit - exit client\n");
3671 printf("recoversnapshot - recover snapshot\n");
3672 printf("sput - insert data into table of multi dimension\n");
3673 printf("screate - create multi dimension table\n");
3674 printf("scan - get records for a period of time\n");
3675 printf(
3676 "sscan - get records for a period of time from multi dimension "
3677 "table\n");
3678 printf("sget - get only one record from multi dimension table\n");
3679 printf("sendsnapshot - send snapshot to another endpoint\n");
3680 printf("setexpire - enable or disable ttl\n");
3681 printf("showschema - show schema\n");
3682 printf("setttl - set ttl for partition\n");
3683 printf("setlimit - set tablet max concurrency limit\n");
3684 } else if (parts.size() == 2) {
3685 if (parts[1] == "create") {
3686 printf("desc: create table\n");
3687 printf(
3688 "usage: create name tid pid ttl segment_cnt [is_leader "
3689 "compress_type]\n");
3690 printf("ex: create table1 1 0 144000 8\n");
3691 printf("ex: create table1 1 0 144000 8 true snappy\n");
3692 printf("ex: create table1 1 0 144000 8 false\n");
3693 } else if (parts[1] == "screate") {
3694 printf("desc: create multi dimension table\n");
3695 printf(
3696 "usage: screate table_name tid pid ttl segment_cnt is_leader "
3697 "schema\n");
3698 printf(
3699 "ex: screate table1 1 0 144000 8 true card:string:index "
3700 "merchant:string:index amt:double\n");
3701 } else if (parts[1] == "drop") {
3702 printf("desc: drop table\n");
3703 printf("usage: drop tid pid\n");
3704 printf("ex: drop 1 0\n");
3705 } else if (parts[1] == "put") {

Callers 1

StartClientFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected