public class WordAggregationHBase extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool, Serializable
| Constructor and Description | 
|---|
| WordAggregationHBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| PCollection<org.apache.hadoop.hbase.client.Put> | createPut(PTable<String,String> extractedText)Create puts in order to insert them in hbase. | 
| PTable<String,String> | extractText(PTable<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> words)Extract information from hbase | 
| static void | main(String[] args) | 
| int | run(String[] args) | 
public int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionpublic PTable<String,String> extractText(PTable<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> words)
words - the source from hbasePTable composed of the type of the input as key
         and its def as valuepublic PCollection<org.apache.hadoop.hbase.client.Put> createPut(PTable<String,String> extractedText)
extractedText - a PTable which contain the data in order to create the puts:
            keys of the PTable are rowkeys for the puts, values are the
            values for hbase.Copyright © 2017 The Apache Software Foundation. All rights reserved.