Class LogCommand
- java.lang.Object
-
- net.snowflake.hivemetastoreconnector.commands.Command
-
- net.snowflake.hivemetastoreconnector.commands.LogCommand
-
public class LogCommand extends Command
A class for no-op commands used for logging purposes, as queries sent to Snowflake will be logged.
-
-
Constructor Summary
Constructors Constructor Description LogCommand(org.apache.hadoop.hive.metastore.api.Table hiveTable, Exception error)An overload of the constructor to log errorsLogCommand(org.apache.hadoop.hive.metastore.api.Table hiveTable, String log)Constructor for LogCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>generateSqlQueries()Generates no-op logging queries, for example: SELECT NULL /* LOGS IN COMMENTS * /;-
Methods inherited from class net.snowflake.hivemetastoreconnector.commands.Command
getDatabaseName, getTableName
-
-
-
-
Constructor Detail
-
LogCommand
public LogCommand(org.apache.hadoop.hive.metastore.api.Table hiveTable, String log)Constructor for LogCommand- Parameters:
hiveTable- The Hive table to generate a command fromlog- A string to be logged
-
LogCommand
public LogCommand(org.apache.hadoop.hive.metastore.api.Table hiveTable, Exception error)An overload of the constructor to log errors- Parameters:
hiveTable- The Hive table to generate a command fromerror- An exception to be logged as an error
-
-
Method Detail
-
generateSqlQueries
public List<String> generateSqlQueries()
Generates no-op logging queries, for example: SELECT NULL /* LOGS IN COMMENTS * /;- Specified by:
generateSqlQueriesin classCommand- Returns:
- The Snowflake queries generated
-
-