Revision 34200
Added by Eri Katsari almost 10 years ago
modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/Serializer.java | ||
---|---|---|
207 | 207 |
List<String> buffs = new ArrayList<String>(); |
208 | 208 |
Result result = valueEntity.getResult(); |
209 | 209 |
|
210 |
|
|
210 |
//TODO hosted by |
|
211 | 211 |
for (Instance instance : (result.getInstanceList())) { |
212 |
String hostedBy = null; |
|
213 | 212 |
|
214 |
hostedBy = instance.getHostedby().getKey(); |
|
215 |
buffs.add((getStringField(hostedBy))); |
|
216 | 213 |
|
214 |
buffs.add((getStringField(instance.getHostedby().getKey()))); |
|
215 |
|
|
217 | 216 |
} |
218 | 217 |
|
219 |
|
|
218 |
//TODO collected froms |
|
220 | 219 |
for (FieldTypeProtos.KeyValue collectedFromValue : (valueEntity.getCollectedfromList())) { |
221 |
String collectedFrom = null; |
|
222 | 220 |
|
223 |
collectedFrom = "key: " + collectedFromValue.getKey() + " value " + collectedFromValue; |
|
224 |
buffs.add((getStringField(collectedFrom))); |
|
225 | 221 |
|
222 |
buffs.add((getStringField(collectedFromValue.getKey()))); |
|
223 |
|
|
226 | 224 |
} |
227 | 225 |
|
228 | 226 |
rels.put("resultDatasource", buffs); |
... | ... | |
847 | 845 |
NULL_NUM = nULL_NUM; |
848 | 846 |
} |
849 | 847 |
|
850 |
public String getENCLOSED() {
|
|
848 |
public String getENCLOSED() { |
|
851 | 849 |
return ENCLOSED; |
852 | 850 |
} |
853 | 851 |
|
Also available in: Unified diff
testing collected from using source field from result.metadata