Skip to contents

Contructs a tiledb_attr object

Usage

tiledb_attr(
  name,
  type,
  filter_list = tiledb_filter_list(),
  ncells = 1,
  nullable = FALSE,
  ctx = tiledb_get_context()
)

Arguments

name

The dimension name / label string; if missing default "" is used.

type

The tiledb_attr TileDB datatype string; if missing the user is alerted that this is a required parameter.

filter_list

(default filter_list("NONE")) The tiledb_attr filter_list

ncells

(default 1) The number of cells, use NA to signal variable length

nullable

(default FALSE) A logical switch whether the attribute can have missing values

ctx

tiledb_ctx object (optional)

Value

tiledb_dim object

Examples

ctx <- tiledb_ctx(limitTileDBCores())
flt <- tiledb_filter_list(list(tiledb_filter("GZIP")))
attr <- tiledb_attr(name = "a1", type = "INT32",
                    filter_list = flt)
attr
#> tiledb_attr(name="a1", type="INT32", ncells=1, nullable=FALSE, filter_list=tiledb_filter_list(c(tiledb_filter_set_option(tiledb_filter("GZIP"),"COMPRESSION_LEVEL",-1))))