@Override public HCatEventMessage checkValid() { if (getTable() == null) throw new IllegalStateException("Table name unset."); return super.checkValid(); } }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), false, event.getEventId() )); }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), false, 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> getSrcWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), false, event.getEventId() )); }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), false, event.getEventId() )); }
public Iterable<? extends Command> getSrcWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ExportCommand( dbName, tableName, null, srcStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, tableName, null) ), false, event.getEventId() )); }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), false, event.getEventId() )); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), false, event.getEventId() )); } }
public Iterable<? extends Command> getDstWhCommands() { verifyActionable(); final String dbName = createTableMessage.getDB(); final String tableName = createTableMessage.getTable(); return Collections.singletonList(new ImportCommand( ReplicationUtils.mapIfMapAvailable(dbName, dbNameMapping), ReplicationUtils.mapIfMapAvailable(tableName, tableNameMapping), null, dstStagingDirProvider.getStagingDirectory( ReplicationUtils.getUniqueKey( getEvent().getEventId(), dbName, // Note - important to retain the same key as the export tableName, null) ), false, event.getEventId() )); } }