Class QueryTemplateStatistics

java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.QueryTemplateStatistics
All Implemented Interfaces:
org.gcube.common.health.api.Statistics

public class QueryTemplateStatistics extends Object implements org.gcube.common.health.api.Statistics
The queryTemplates group of the public statistics.
Author:
Luca Frosini (ISTI - CNR)
  • Constructor Details

    • QueryTemplateStatistics

      public QueryTemplateStatistics()
  • Method Details

    • id

      public String id()
      Specified by:
      id in interface org.gcube.common.health.api.Statistics
    • title

      public String title()
      Specified by:
      title in interface org.gcube.common.health.api.Statistics
    • description

      public String description()
      Specified by:
      description in interface org.gcube.common.health.api.Statistics
    • 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 List<org.gcube.common.health.api.Figure> compute() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Specified by:
      compute in interface org.gcube.common.health.api.Statistics
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException