You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			617 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			617 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <iostream>
 | |
| #include <iomanip>
 | |
| #include <dlfcn.h>
 | |
| using namespace std;
 | |
| 
 | |
| #include "IDBPolicy.h"
 | |
| 
 | |
| int main(int argc, char** argv)
 | |
| {
 | |
|   void* dl = 0;
 | |
| #if 0
 | |
|     dl = dlopen("./libjvm.so", RTLD_NOW);
 | |
| 
 | |
|     if (!dl)
 | |
|     {
 | |
|         cerr << "dlopen(): " << dlerror() << endl;
 | |
|         return 1;
 | |
|     }
 | |
| 
 | |
| #endif
 | |
| #if 0
 | |
|     dl = dlopen("./libhdfs.so", RTLD_LAZY | RTLD_GLOBAL);
 | |
| 
 | |
|     if (!dl)
 | |
|     {
 | |
|         cerr << "dlopen(): " << dlerror() << endl;
 | |
|         return 1;
 | |
|     }
 | |
| 
 | |
| #endif
 | |
|   bool ret = false;
 | |
|   ret = idbdatafile::IDBPolicy::installPlugin("hdfs-20.so");
 | |
| 
 | |
|   cout << "ret = " << boolalpha << ret << endl;
 | |
| 
 | |
|   return 0;
 | |
| }
 |