Class SqlBulkLoadCommand

  • All Implemented Interfaces:
    SqlCommand

    public class SqlBulkLoadCommand
    extends Object
    implements SqlCommand
    A parser for a COPY command (called 'bulk load' in the code, since word 'copy' is too generic).
    • Constructor Detail

      • SqlBulkLoadCommand

        public SqlBulkLoadCommand()
    • Method Detail

      • parse

        public SqlCommand parse​(SqlLexer lex)
        Parses the command.
        Specified by:
        parse in interface SqlCommand
        Parameters:
        lex - The lexer.
        Returns:
        The parsed command object.
      • schemaName

        public String schemaName()
        Returns the schemaName.
        Specified by:
        schemaName in interface SqlCommand
        Returns:
        schemaName.
      • schemaName

        public void schemaName​(String schemaName)
        Specified by:
        schemaName in interface SqlCommand
        Parameters:
        schemaName - Schema name.
      • tableName

        public String tableName()
        Returns the table name.
        Returns:
        The table name
      • tableName

        public void tableName​(String tblName)
        Sets the table name
        Parameters:
        tblName - The table name.
      • localFileName

        public String localFileName()
        Returns the local file name.
        Returns:
        The local file name.
      • localFileName

        public void localFileName​(String locFileName)
        Sets the local file name.
        Parameters:
        locFileName - The local file name.
      • columns

        public List<String> columns()
        Returns the list of columns.
        Returns:
        The list of columns.
      • inputFormat

        public BulkLoadFormat inputFormat()
        Returns the input file format.
        Returns:
        The input file format.
      • packetSize

        public Integer packetSize()
        Returns the packet size.
        Returns:
        The packet size.
      • packetSize

        public void packetSize​(int packetSize)
        Sets the packet size.
        Parameters:
        packetSize - The packet size.