Class ExplainCommand


  • public class ExplainCommand
    extends Command
    This Command class represents the EXPLAIN SQL command, which prints out details of how SQL DML statements will be evaluated.
    • Nested Class Summary

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private QueryCommand cmdToExplain
      The command to explain!
      • Fields inherited from class edu.caltech.nanodb.commands.Command

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      ExplainCommand​(QueryCommand cmdToExplain)
      Construct an explain command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(NanoDBServer server)
      Actually performs the command.
      • Methods inherited from class java.lang.Object

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

      • cmdToExplain

        private QueryCommand cmdToExplain
        The command to explain!
    • Constructor Detail

      • ExplainCommand

        public ExplainCommand​(QueryCommand cmdToExplain)
        Construct an explain command.
        Parameters:
        cmdToExplain - the command that should be explained.