Returns the filter_list's number of filters

# S4 method for tiledb_filter_list
nfilters(object)

Arguments

object

tiledb_filter_list

Value

integer number of filters

Examples

flt <- tiledb_filter("ZSTD")
#> Error in version(): could not find function "version"
tiledb_filter_set_option(flt, "COMPRESSION_LEVEL", 5)
#> Error in is(object, "tiledb_filter"): object 'flt' not found
filter_list <- tiledb_filter_list(c(flt))
#> Error in version(): could not find function "version"
nfilters(filter_list)
#> Error in (function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable) if (length(methods) == 1L) return(methods[[1L]]) else if (length(methods) == 0L) { cnames <- paste0("\"", vapply(classes, as.character, ""), "\"", collapse = ", ") stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdef@generic), sQuote(cnames)), domain = NA) } else stop("Internal error in finding inherited methods; didn't return a unique method", domain = NA)})(list(structure("standardGeneric", package = "methods")), new("standardGeneric", .Data = function (object) standardGeneric("nfilters"), generic = structure("nfilters", package = "tiledb"), package = "tiledb", group = list(), valueClass = character(0), signature = "object", default = NULL, skeleton = (function (object) stop("invalid call in method dispatch to 'nfilters' (no default method)", domain = NA))(object)), <environment>): unable to find an inherited method for function ‘nfilters’ for signature ‘"standardGeneric"’