Last active
August 29, 2015 14:15
-
-
Save greenlion/f876f4cf7f819ff3df5e to your computer and use it in GitHub Desktop.
FastBit UDF Specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
FastBit UDF for MySQL (c) 2015 Justin Swanhart | |
Specification 1.0-DRAFT | |
*/ | |
/* | |
fb_create(table_dir=>'/path/to/fastbit/data',colspec=>'c1:int,c2:int'); | |
fb_load(table_dir=>'/path/to/fastbit/data', datafile=>'/path/to/file/to/load.txt'); | |
fb_query(table_dir=>'/path/to/fastbit/data',query_string=>'select count(*) where c1 between 1 and 10', temp_dest=>'temporary_table_name'); | |
fb_hits(table_dir=>'/path/to/fastbit/data',query_string=>'select count(*) where c1 between 1 and 10', temp_dest=>'temporary_table_name'); | |
fb_delete(table_dir=>'/path/to/fastbit/data',where_clause=>'c1 between 1 and 10'); | |
fb_delete_rid(table_dir=>'/path/to/fastbit/data',rid=>1); | |
fb_insert(table_dir=>'/path/to/fastbit/data',CSV_data=>'1,1'); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment