@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); if (getPartitions() == null) throw new IllegalStateException("Partition-list unset."); return super.checkValid(); } }
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() ); } }); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); if (getPartitions() == null) throw new IllegalStateException("Partition-list unset."); return super.checkValid(); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); if (getPartitions() == null) throw new IllegalStateException("Partition-list unset."); return super.checkValid(); } }
@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); if (getPartitions() == null) throw new IllegalStateException("Partition-list unset."); return super.checkValid(); } }
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() ); } }); } }