@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); return super.checkValid(); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getTable(), tableNameMapping); return Collections.singletonList(new DropTableCommand(dstDbName, dstTableName, true, event.getEventId())); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); return super.checkValid(); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); return super.checkValid(); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); return super.checkValid(); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getTable(), tableNameMapping); return Collections.singletonList(new DropTableCommand(dstDbName, dstTableName, true, event.getEventId())); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getTable(), tableNameMapping); return Collections.singletonList(new DropTableCommand(dstDbName, dstTableName, true, event.getEventId())); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropTableMessage.getTable(), tableNameMapping); return Collections.singletonList(new DropTableCommand(dstDbName, dstTableName, true, event.getEventId())); } }