}
@Override
public SourceDataIdentifier getSourceDataIdentifier() {
synchronized (this) {
DataFilesInfo info = getCurrentFilesInfo();
if (info != null) {
// TODO: At the moment we alway use the same identifier, which in practice
// amounts to the first source chunk. In the case where the user has done a
// Test Operation, however, and is currently viewing the data for another
// chunk (the second, say), and does a Test Transformation (maybe after
// having changed a mapping), we really need to use that chunk number in order
// for the displayed result to make sense.
OperationId opId = info.getOperationId();
DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), DataFileType.SOURCE, 1, 1);
if (info.contains(fileId)) {
return new SourceDataIdentifier(info.getServerInfo(), info.getGuid());
}
}
return null;
}
}