java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.topdown.QsqTemplate

public class QsqTemplate extends Object
A template containing the attribute schemata of the supplementary relations for a given rule in QSQ evaluation.
  • Constructor Details

    • QsqTemplate

      public QsqTemplate(AdornedClause rule)
      Constructs a template from an adorned rule.
      Parameters:
      rule - the adorned rule
  • Method Details

    • get

      public TermSchema get(int i)
      Returns the schema for the ith (0-indexed) supplementary relation.
      Parameters:
      i - the index
      Returns:
      the schema
    • size

      public int size()
      Returns the number of schemata in this template.
      Returns:
      the number of schemata
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object