Package edu.caltech.nanodb.commands
Class DumpCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.DumpCommand
-
- Direct Known Subclasses:
DumpIndexCommand
,DumpTableCommand
public abstract class DumpCommand extends Command
An abstract base-class that holds the common implementation of the various kinds of dump commands.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DumpCommand.TupleExporter
A tuple processor implementation used to dump each tuple.-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DumpCommand(java.lang.String fileName, java.lang.String format)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(NanoDBServer server)
Actually performs the command.java.lang.String
getFilename()
java.lang.String
getFormat()
protected abstract PlanNode
prepareDumpPlan(NanoDBServer server)
-
Methods inherited from class edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
Method Detail
-
getFilename
public java.lang.String getFilename()
-
getFormat
public java.lang.String getFormat()
-
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
-
prepareDumpPlan
protected abstract PlanNode prepareDumpPlan(NanoDBServer server)
-
-