Package edu.caltech.nanodb.commands
Class DumpIndexCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.DumpCommand
-
- edu.caltech.nanodb.commands.DumpIndexCommand
-
public class DumpIndexCommand extends DumpCommand
This command object represents a DUMP INDEX command issued against the database. DUMP INDEX commands are pretty simple, having a single form: DUMP INDEX ... ON TABLE ... [TO FILE ...] [FORMAT ...].
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.DumpCommand
DumpCommand.TupleExporter
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
indexName
The name of the index to dump.private java.lang.String
tableName
The name of the table containing the index to dump.-
Fields inherited from class edu.caltech.nanodb.commands.DumpCommand
fileName, format
-
-
Constructor Summary
Constructors Constructor Description DumpIndexCommand(java.lang.String indexName, java.lang.String tableName, java.lang.String fileName, java.lang.String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndexName()
Get the name of the index to be dumped.java.lang.String
getTableName()
Get the name of the table containing the index to be dumped.protected PlanNode
prepareDumpPlan(NanoDBServer server)
java.lang.String
toString()
-
Methods inherited from class edu.caltech.nanodb.commands.DumpCommand
execute, getFilename, getFormat
-
Methods inherited from class edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
Method Detail
-
getTableName
public java.lang.String getTableName()
Get the name of the table containing the index to be dumped.- Returns:
- the name of the table containing the index to dump
-
getIndexName
public java.lang.String getIndexName()
Get the name of the index to be dumped.- Returns:
- the name of the index to dump
-
prepareDumpPlan
protected PlanNode prepareDumpPlan(NanoDBServer server)
- Specified by:
prepareDumpPlan
in classDumpCommand
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-