Search in sources :

Example 1 with NoopReplicationTask

use of org.apache.hive.hcatalog.api.repl.NoopReplicationTask in project hive by apache.

the class TestEximReplicationTasks method verifyCreateDbReplicationTask.

private static void verifyCreateDbReplicationTask(ReplicationTask rtask) {
    assertEquals(CreateDatabaseReplicationTask.class, rtask.getClass());
    assertTrue("CreateDatabaseReplicationTask should be a noop", rtask instanceof NoopReplicationTask);
    assertEquals(false, rtask.needsStagingDirs());
    assertEquals(true, rtask.isActionable());
    for (Command c : rtask.getSrcWhCommands()) {
        assertEquals(NoopCommand.class, c.getClass());
    }
    for (Command c : rtask.getDstWhCommands()) {
        assertEquals(NoopCommand.class, c.getClass());
    }
}
Also used : ImportCommand(org.apache.hive.hcatalog.api.repl.commands.ImportCommand) DropTableCommand(org.apache.hive.hcatalog.api.repl.commands.DropTableCommand) ExportCommand(org.apache.hive.hcatalog.api.repl.commands.ExportCommand) Command(org.apache.hive.hcatalog.api.repl.Command) NoopCommand(org.apache.hive.hcatalog.api.repl.commands.NoopCommand) DropPartitionCommand(org.apache.hive.hcatalog.api.repl.commands.DropPartitionCommand) DropDatabaseCommand(org.apache.hive.hcatalog.api.repl.commands.DropDatabaseCommand) NoopReplicationTask(org.apache.hive.hcatalog.api.repl.NoopReplicationTask)

Aggregations

Command (org.apache.hive.hcatalog.api.repl.Command)1 NoopReplicationTask (org.apache.hive.hcatalog.api.repl.NoopReplicationTask)1 DropDatabaseCommand (org.apache.hive.hcatalog.api.repl.commands.DropDatabaseCommand)1 DropPartitionCommand (org.apache.hive.hcatalog.api.repl.commands.DropPartitionCommand)1 DropTableCommand (org.apache.hive.hcatalog.api.repl.commands.DropTableCommand)1 ExportCommand (org.apache.hive.hcatalog.api.repl.commands.ExportCommand)1 ImportCommand (org.apache.hive.hcatalog.api.repl.commands.ImportCommand)1 NoopCommand (org.apache.hive.hcatalog.api.repl.commands.NoopCommand)1