Skip to content

Latest commit

 

History

History

SampleCode

Sample code demonstrating how to use MapD Client API generated by Apache Thrift.

Usages:
DataGen <table> <database> <user> <password> [<num rows>] [hostname[:port]]
randomly generate tab-delimited data to stdout that can be inserted to <table>

StreamInsert <table> <database> <user> <password> [hostname[:port]]
read the stream of tab-delimited rows from stdin and insert them to <table>

Example:
./DataGen foo test mapd HyperInteractive 1000000 | ./StreamInsert foo test mapd HyperInteractive