Creating the Array

After creating the array schema, the array can be created as follows:

C
C++
Python
R
Java
Go
C
#include <tiledb/tiledb.h>
// ... create context ctx
// ... create array schema
// Create the array
tiledb_array_create(ctx, "<array_uri>", schema);
C++
#include <tiledb/tiledb>
// ... create array schema
// Create the array
Array::create("<array_uri>", schema);
Python
import tiledb
import numpy as np
# ... create array schema
# Create a dense array
tiledb.DenseArray.create("<array_uri>", schema)
# Create a sparse array
tiledb.SparseArray.create("<array_uri>", schema)
R
# ... create array schema
# Create the array
tiledb_array_create("<array_uri>", schema)
Java
// ... create array schema
// Create the array
Array.create("<array_uri>", schema);
Go
// ... create array schema
// Create the array
array := tiledb.NewArray(ctx, "<array_uri>")
array.Create(schema)

This will materialize the array directory and related files (e.g., the array schema) to persistent storage. Depending on the array URI, this can be on your local disk, on a distributed filesystem such as Lustre or HDFS, on AWS S3, etc.