cloudarray

cloud.cloudarray

Classes

Name Description
CloudArray Array cloud interface.

CloudArray

cloud.cloudarray.CloudArray()

Array cloud interface.

Methods

Name Description
apply Apply a user-defined function to this array, synchronously.
apply_async Apply a user-defined function to this array, asynchronously.
apply
cloud.cloudarray.CloudArray.apply(*args, **kwargs)

Apply a user-defined function to this array, synchronously.

Params are the same as array.apply, but this instance provides the URI.

Example

import tiledb, tiledb.cloud, numpy

def median(df):
    return numpy.median(df["a"])

# Open the array then run the UDF
with tiledb.SparseArray("tiledb://TileDB-Inc/quickstart_dense", ctx=tiledb.cloud.ctx()) as A:
    A.apply(median, [(0,5), (0,5)], attrs=["a", "b", "c"])
apply_async
cloud.cloudarray.CloudArray.apply_async(*args, **kwargs)

Apply a user-defined function to this array, asynchronously.

Params are the same as array.apply_async, but this instance provides the URI.