Class 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 ...].

    • 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.Command

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      DumpIndexCommand​(java.lang.String indexName, java.lang.String tableName, java.lang.String fileName, java.lang.String format)  
    • Field Detail

      • indexName

        private java.lang.String indexName
        The name of the index to dump.
      • tableName

        private java.lang.String tableName
        The name of the table containing the index to dump.
    • Constructor Detail

      • DumpIndexCommand

        public DumpIndexCommand​(java.lang.String indexName,
                                java.lang.String tableName,
                                java.lang.String fileName,
                                java.lang.String format)
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object