objs#
- swordfish.function.objs()#
Obtain the information on the variables in memory. Return a table with the following columns:
name: variable name
type: data type
form: data form
rows:
If the data form is vector/dictionary/set, return the number of all elements (including null values);
If the data form is matrix/table, return the number of rows.
columns:
If the data form is vector/dictionary/set, return 1;
If the data form is matrix/table, return the number of columns.
bytes: the memory (in bytes) used by the variable
shared: whether it is a shared variable
extra: the logical path to the DFS table, in the format of “dfs://dbName/tableName”
owner: the creator of shared variables. This column will only be displayed when shared is set to true. It will be left empty for local variables.
Please note that the function does not return the function definitions. You can use defs to check function definitions, or memSize for the memory usage.
- Parameters:
shared (Constant, optional) –
A Boolean variable.
false (default): return info on all variables in the current session
true: return info on all variables in the current session and variables shared by other sessions