Class SqlBulkLoadCommand
- java.lang.Object
-
- org.apache.ignite.internal.sql.command.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 Summary
Constructors Constructor Description SqlBulkLoadCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>columns()Returns the list of columns.BulkLoadFormatinputFormat()Returns the input file format.StringlocalFileName()Returns the local file name.voidlocalFileName(String locFileName)Sets the local file name.IntegerpacketSize()Returns the packet size.voidpacketSize(int packetSize)Sets the packet size.SqlCommandparse(SqlLexer lex)Parses the command.StringschemaName()Returns the schemaName.voidschemaName(String schemaName)StringtableName()Returns the table name.voidtableName(String tblName)Sets the table nameStringtoString()
-
-
-
Method Detail
-
parse
public SqlCommand parse(SqlLexer lex)
Parses the command.- Specified by:
parsein interfaceSqlCommand- Parameters:
lex- The lexer.- Returns:
- The parsed command object.
-
schemaName
public String schemaName()
Returns the schemaName.- Specified by:
schemaNamein interfaceSqlCommand- Returns:
- schemaName.
-
schemaName
public void schemaName(String schemaName)
- Specified by:
schemaNamein interfaceSqlCommand- 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.
-
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.
-
-