Slide 16
Slide 16 text
scalardb_fdw
● FDW implementation that read data using ScalarDB library
● Intended to be used as a fall-back option
○ We can inherently cover all storage supported by ScalarDB
16
CREATE SERVER scalardb FOREIGN DATA WRAPPER
scalardb_fdw OPTIONS (
config_file_path '/path/to/scalardb.properties'
);
CREATE FOREIGN TABLE sample_table (
pk int,
ck1 int,
ck2 int,
boolean_col boolean,
bigint_col bigint,
float_col double precision,
double_col double precision,
text_col text,
blob_col bytea
) SERVER scalardb OPTIONS (
namespace 'ns',
table_name 'sample_table'
);
Question: How can we call ScalarDB library, implemented in Java, from C?
Java Native Interface (JNI)
Server Definition Table Definition