Class AllColumnsForPlan


  • public class AllColumnsForPlan
    extends java.lang.Object
    This information is expensive to compute for large queries, so do so on-demand. Also store the information pre-mapped by table to avoid expensive traversal.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Column newCol)
      Called by ExpressionVisitor.
      java.util.ArrayList<Column> get​(Table table)
      Used by index to calculate the cost of a scan.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private java.util.HashMap<Table,​java.util.ArrayList<Column>> map
    • Constructor Detail

      • AllColumnsForPlan

        public AllColumnsForPlan​(TableFilter[] filters)
    • Method Detail

      • add

        public void add​(Column newCol)
        Called by ExpressionVisitor.
        Parameters:
        newCol - new column to be added.
      • get

        public java.util.ArrayList<Column> get​(Table table)
        Used by index to calculate the cost of a scan.
        Parameters:
        table - the table.
        Returns:
        all table's referenced columns.