1
|
package eu.dnetlib.msro.workflows.dedup;
|
2
|
|
3
|
import com.googlecode.sarasvati.Arc;
|
4
|
import com.googlecode.sarasvati.NodeToken;
|
5
|
|
6
|
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode;
|
7
|
|
8
|
public class SetHdfsPathJobNode extends SimpleJobNode {
|
9
|
|
10
|
private String path;
|
11
|
private String pathParam;
|
12
|
|
13
|
@Override
|
14
|
protected String execute(final NodeToken token) throws Exception {
|
15
|
|
16
|
token.getEnv().setAttribute(getPathParam(), getPath());
|
17
|
|
18
|
return Arc.DEFAULT_ARC;
|
19
|
}
|
20
|
|
21
|
public String getPath() {
|
22
|
return path;
|
23
|
}
|
24
|
|
25
|
public void setPath(final String path) {
|
26
|
this.path = path;
|
27
|
}
|
28
|
|
29
|
public String getPathParam() {
|
30
|
return pathParam;
|
31
|
}
|
32
|
|
33
|
public void setPathParam(final String pathParam) {
|
34
|
this.pathParam = pathParam;
|
35
|
}
|
36
|
|
37
|
}
|