OPH_CUBEELEMENTS

Description

Type

Metadata Access.

Behaviour

It computes and displays the number of elements stored in the input datacube.

Parameters

  • cube: name of the input datacube. The name must be in PID format.
  • schedule: scheduling algorithm. The only possible value is 0, for a static linear block distribution of resources.
  • algorithm: algorithm used to count elements. Possible values are: “dim_product” (default) to compute elements mathematically; “count” to count elements in each fragment.

System parameters

  • exec_mode: operator execution mode. Possible values are async (default) for asynchronous mode, sync for synchronous mode with json-compliant output.
  • ncores: number of parallel processes to be used (min. 1).
  • sessionid: session identifier used server-side to manage sessions and jobs. Usually, users don’t need to use/modify it, except when it is necessary to create a new session or switch to another one.
  • objkey_filter: filter on the output of the operator written to file (default=all => no filter, none => no output, cubeelements => shows the number of elements of the cube).

Examples

Compute the number of elements in the datacube “URL/1/1”:

[OPH_TERM] >>  oph_cubeelements cube=URL/1/1;

Arguments

Argument name Type Mandatory Values Default Min/Max-value
cube “string” “yes”      
schedule “int” “no” “0” “0” “0” / “0”
exec_mode “string” “no” “async|sync” “async”  
algorithm “string” “no” “dim_product|count” “dim_product”  
sessionid “string” “no”   “null”  
ncores “int” “no”   “1” “1” /
objkey_filter “string” “no” “all|none|cubeelements” “all”