SOMA Array Base Class
SOMA Array Base Class
Details
Virtual base class to add array-specific functionality to the
SOMAObject
class (lifecycle: maturing).
See also
Derived classes: SOMADataFrame
,
SOMANDArrayBase
Super class
tiledbsoma::SOMAObject
-> SOMAArrayBase
Methods
Method open()
Open the SOMA object for read or write.
Note: open()
is considered internal and should not be
called directly; use factory functions
(eg. SOMASparseNDArrayOpen()
) instead.
Usage
SOMAArrayBase$open(mode = c("READ", "WRITE", "DELETE"))
Method schema()
Retrieve the array schema as an Arrow schema (lifecycle: maturing).
Returns
An Arrow Schema
object.
Method attributes()
Retrieve the array attributes.
Returns
A named list of array attributes; each entry contains the following named entries:
“
name
”: name of the attribute.“
type
”: datatype of the attribute.“
ncells
”: number of values per dimension cell.“
nullable
”: is the attribute nullable.“
filter_list
”: a list with filter information; this list contains the following entries:“
filter_type
”“
compression_level
”“
bit_width
”“
positive_delta
”“
float_bytewidth
”“
float_factor
”“
float_offset
”
Method dimensions()
Retrieve the array dimensions (lifecycle: maturing)
Returns
A named list of array dimensions; each entry contains the following named entries:
“
name
”: name of the dimension.“
type
”: datatype of the dimension.“
ncells
”: number of values per dimension cell.“
domain
”: domain of the dimension.“
tile
”: tile of the dimension.“
filter_list
”: a list with filter information; this list contains the following entries:“
filter_type
”“
compression_level
”“
bit_width
”“
positive_delta
”“
float_bytewidth
”“
float_factor
”“
float_offset
”
Method dimnames()
Retrieve dimension names (lifecycle: maturing).
Method colnames()
Retrieve the names of all columns, including dimensions and attributes (lifecycle: maturing).
Method shape()
Retrieve the shape, i.e. the capacity of each dimension
Attempted reads and writes outside the shape
will result in a
run-time error: this is the purpose of shape
. This will not
necessarily match the bounds of occupied cells within the array.
Using $resize()
, this may be increased up to the hard limit which
maxshape()
reports (lifecycle: maturing).
Method maxshape()
Retrieve the hard limit up to which the array may be resized
using the $resize()
method (lifecycle: maturing).
Method non_empty_domain()
Returns a named list of minimum/maximum pairs, one per index column, which are the smallest and largest values written on that index column.
Method print()
Print-friendly representation of the object.