public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getTable(), tableNameMapping); return Iterables.transform(dropPartitionMessage.getPartitions(), new Function<Map<String, String>, Command>() { @Override public Command apply(@Nullable Map<String, String> ptnDesc) { return new DropPartitionCommand( dstDbName, dstTableName, ptnDesc, true, event.getEventId() ); } }); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getTable(), tableNameMapping); return Iterables.transform(dropPartitionMessage.getPartitions(), new Function<Map<String, String>, Command>() { @Override public Command apply(@Nullable Map<String, String> ptnDesc) { return new DropPartitionCommand( dstDbName, dstTableName, ptnDesc, true, event.getEventId() ); } }); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getTable(), tableNameMapping); return Iterables.transform(dropPartitionMessage.getPartitions(), new Function<Map<String, String>, Command>() { @Override public Command apply(@Nullable Map<String, String> ptnDesc) { return new DropPartitionCommand( dstDbName, dstTableName, ptnDesc, true, event.getEventId() ); } }); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dstDbName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getDB(), dbNameMapping); final String dstTableName = ReplicationUtils.mapIfMapAvailable(dropPartitionMessage.getTable(), tableNameMapping); return Iterables.transform(dropPartitionMessage.getPartitions(), new Function<Map<String, String>, Command>() { @Override public Command apply(@Nullable Map<String, String> ptnDesc) { return new DropPartitionCommand( dstDbName, dstTableName, ptnDesc, true, event.getEventId() ); } }); } }