Vineyard Rust SDK
[!NOTE] Rust nightly is required. The vineyard Rust SDK is still under development. The API may change in the future.
Connecting to Vineyard
-
Resolve the UNIX-domain socket from the environment variable
VINEYARD_IPC_SOCKET:use *; let mut client = default.unwrap; -
Or, using explicit parameter:
use *; let mut client = connect.unwrap;
Interact with Vineyard
-
Creating blob:
let mut blob_writer = client.create_blob?; -
Get object:
let mut meta_writer = client.?;
Inter-op with Python: numpy.ndarray
-
Python:
= = = -
Rust:
let mut client = default?; let tensor = client.?; assert_that!.is_equal_to;
Inter-op with Python: pandas.DataFrame
-
Python
= = = -
Rust
let mut client = default?; let dataframe = client.?; assert_that!.is_equal_to; assert_that!.is_equal_to; for index in 0..dataframe.num_columns
Inter-op with Python: pyarrow.RecordBatch
-
Python
= = = = -
Rust
let batch = client.?; assert_that!.is_equal_to; assert_that!.is_equal_to; let schema = batch.schema; let names = ; let recordbatch = batch.as_ref.as_ref;
Inter-op with Python: pyarrow.Table
-
Python
= * 5 = = -
Rust
let mut client = default?; let table = client.?; assert_that!.is_equal_to; for batch in table.batches.iter
Inter-op with Python: polars.DataFrame
-
Python
= = -
Rust
use DataFrame; let mut client = default?; let dataframe = client.?; let dataframe = dataframe.as_ref.as_ref; assert_that!.is_equal_to; for column in dataframe.get_columns
Inter-op with Python: polars.DataFrame
-
Python
= * 5 = = -
Rust
use DataFrame; let mut client = default?; let dataframe = client.?; let ctx = new; let table = ctx.read_table.unwrap; assert_that!.is_equal_to;