Package edu.caltech.nanodb.commands
Class ExplainCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.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
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
Field Summary
Fields Modifier and Type Field Description private QueryCommand
cmdToExplain
The command to explain!
-
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 edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
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.
-
-
Method Detail
-
execute
public void execute(NanoDBServer server) throws ExecutionException
Description copied from class:Command
Actually performs the command.- Specified by:
execute
in classCommand
- Throws:
ExecutionException
- if an issue occurs during command execution
-
-