Class QueryTemplateStatistics

java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.QueryTemplateStatistics

public class QueryTemplateStatistics extends Object
Computes the queryTemplates group of the public statistics.
Author:
Luca Frosini (ISTI - CNR)
  • 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 _emit at any level.
      Parameters:
      node - the template, or a part of it
      Returns:
      true if _emit appears in it
    • compute

      public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode compute() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Computes the group.
      Returns:
      the figures of the queryTemplates group
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - if the Query Templates cannot be read