Class QueryPlanningInfo

java.lang.Object
se.liu.ida.hefquin.engine.queryplan.info.QueryPlanningInfo
All Implemented Interfaces:
Stats

public class QueryPlanningInfo extends Object implements Stats
Every object of this class captures a collection of information about a particular query plan. These objects are meant to be populated and used during query planning.
  • Field Details

  • Constructor Details

    • QueryPlanningInfo

      public QueryPlanningInfo()
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Can be used to ask whether this collection of information is still empty.
      Specified by:
      isEmpty in interface Stats
      Returns:
      true if this collection of information is still empty, false otherwise
    • getProperty

      public QueryPlanProperty getProperty(QueryPlanProperty.Type type)
      Returns the query plan property of the given type. If the collected information does not include such a property, then null is returned.
      Parameters:
      type - - the type for which the property is requested
      Returns:
      the requested property or null
    • getProperties

      public Iterable<QueryPlanProperty> getProperties()
      Returns all collected query plan properties.
      Returns:
      an iterable of all collected properties
    • addProperty

      public void addProperty(QueryPlanProperty p)
      Adds the given property to the collected information, unless there already is a property of the same type. If this object already contains a property of the same type as the given property, then an IllegalArgumentException is thrown.
      Parameters:
      p - - the property to be added
    • getEntryNames

      public Iterable<String> getEntryNames()
      Description copied from interface: Stats
      Returns the names of all entries.
      Specified by:
      getEntryNames in interface Stats
    • getEntry

      public Object getEntry(String entryName)
      Description copied from interface: Stats
      Returns the value of the entry with the given name.
      Specified by:
      getEntry in interface Stats