Class InstanceStatisticsScan
java.lang.Object
org.gcube.informationsystem.resourceregistry.persistence.orientdb.statistics.InstanceStatisticsScan
Computes the
instances and connectivity groups of the public statistics in one
pass over every instance, through the administrative connection.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHow many Resource typestopResourceTypeslists. -
Constructor Summary
ConstructorsConstructorDescriptionInstanceStatisticsScan(Map<String, Integer> liveDepths, DepthLabels depthLabels) -
Method Summary
-
Field Details
-
TOP_RESOURCE_TYPES
public static final int TOP_RESOURCE_TYPESHow many Resource typestopResourceTypeslists.- See Also:
-
-
Constructor Details
-
InstanceStatisticsScan
- Parameters:
liveDepths- the live Contexts, keyed by UUID, with their depthdepthLabels- the label of each depth
-
-
Method Details
-
getInstances
- Returns:
- the figures of the
instancesgroup computed byscan()
-
getConnectivity
- Returns:
- the figures of the
connectivitygroup computed byscan()
-
scan
public void scan() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionScans every instance and computes both groups.- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the database cannot be read
-