All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
udf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <aerospike/as_bytes.h>
4 
5 #define WAIT_MS(__ms) nanosleep((struct timespec[]){{0, __ms##000000}}, NULL)
6 
7 /**
8  * Read a file's content into the as_bytes.
9  */
10 bool udf_readfile(const char * filename, as_bytes * content);
11 
12 /**
13  * Upload a UDF file to the server.
14  * @param the path to the file to upload
15  */
16 bool udf_put(const char *);
17 
18 /**
19  * Remove a UDF file from the server.
20  * @param the name of file to remove
21  */
22 bool udf_remove(const char *);
23 
24 /**
25  * Test if the UDF file exists on the server.
26  * @param the name of the file to test
27  */
28 bool udf_exists(const char *);
bool udf_exists(const char *)
bool udf_readfile(const char *filename, as_bytes *content)
bool udf_remove(const char *)
bool udf_put(const char *)