Class QueryTemplateStatistics
java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.QueryTemplateStatistics
Computes the
queryTemplates group of the public statistics.- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.com.fasterxml.jackson.databind.node.ObjectNodecompute()Computes the group.static booleanisProjection(org.gcube.com.fasterxml.jackson.databind.JsonNode node) Tells whether a template projects: it contains_emitat any level.
-
Constructor Details
-
QueryTemplateStatistics
public QueryTemplateStatistics()
-
-
Method Details
-
isProjection
public static boolean isProjection(org.gcube.com.fasterxml.jackson.databind.JsonNode node) Tells whether a template projects: it contains_emitat any level.- Parameters:
node- the template, or a part of it- Returns:
trueif_emitappears in it
-
compute
public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode compute() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionComputes the group.- Returns:
- the figures of the
queryTemplatesgroup - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the Query Templates cannot be read
-