Project

General

Profile

1
package eu.dnetlib.msro.workflows.nodes.hadoop;
2

    
3
import eu.dnetlib.msro.workflows.graph.Arc;
4
import eu.dnetlib.msro.workflows.procs.Env;
5
import org.apache.commons.logging.Log;
6
import org.apache.commons.logging.LogFactory;
7

    
8
/**
9
 * Created by claudio on 28/10/2016.
10
 */
11
public class DefineHBaseSchemaJobNode extends AbstractHBaseAdminJobNode {
12

    
13
	private static final Log log = LogFactory.getLog(DefineHBaseSchemaJobNode.class);
14

    
15
	private String schema;
16

    
17
	@Override
18
	protected String execute(final Env env) throws Exception {
19

    
20
		log.info("table definition: " + getSchema());
21
		env.setAttribute(getTableColumnsParamName(), getSchema());
22

    
23
		return Arc.DEFAULT_ARC;
24
	}
25

    
26
	public String getSchema() {
27
		return schema;
28
	}
29

    
30
	public void setSchema(final String schema) {
31
		this.schema = schema;
32
	}
33
}
(2-2/2)