public abstract class HbaseTableFeeder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected eu.dnetlib.data.hadoop.config.ConfigurationEnumerator |
configurationEnumerator
The configuration enumerator.
|
| Constructor and Description |
|---|
HbaseTableFeeder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addOperation(List<org.apache.hadoop.hbase.client.Mutation> buffer,
eu.dnetlib.data.transform.Row row)
Adds the operation.
|
protected Iterable<eu.dnetlib.data.transform.Row> |
asRows(String epr,
String xsl)
As rows.
|
int |
feed(String epr,
String xsl,
eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
boolean simulation)
Feed.
|
int |
getBatchSize()
Gets the batch size.
|
protected org.apache.hadoop.conf.Configuration |
getConf(eu.dnetlib.data.hadoop.config.ClusterName clusterName)
Gets the conf.
|
eu.dnetlib.enabling.resultset.client.ResultSetClientFactory |
getResultSetClientFactory()
Gets the result set client factory.
|
void |
setBatchSize(int batchSize)
Sets the batch size.
|
void |
setResultSetClientFactory(eu.dnetlib.enabling.resultset.client.ResultSetClientFactory resultSetClientFactory)
Sets the result set client factory.
|
@Autowired protected eu.dnetlib.data.hadoop.config.ConfigurationEnumerator configurationEnumerator
protected abstract void addOperation(List<org.apache.hadoop.hbase.client.Mutation> buffer, eu.dnetlib.data.transform.Row row)
buffer - the bufferrow - the rowpublic int feed(String epr, String xsl, eu.dnetlib.data.hadoop.config.ClusterName clusterName, String tableName, boolean simulation) throws IOException, InterruptedException
epr - the eprxsl - the xslclusterName - the cluster nametableName - the table namesimulation - the simulationIOException - Signals that an I/O exception has occurred.InterruptedException - the interrupted exceptionprotected Iterable<eu.dnetlib.data.transform.Row> asRows(String epr, String xsl)
epr - the eprxsl - the xslprotected org.apache.hadoop.conf.Configuration getConf(eu.dnetlib.data.hadoop.config.ClusterName clusterName)
clusterName - the cluster namepublic int getBatchSize()
public void setBatchSize(int batchSize)
batchSize - the new batch sizepublic eu.dnetlib.enabling.resultset.client.ResultSetClientFactory getResultSetClientFactory()
public void setResultSetClientFactory(eu.dnetlib.enabling.resultset.client.ResultSetClientFactory resultSetClientFactory)
resultSetClientFactory - the new result set client factoryCopyright © 2017. All rights reserved.