Revision 49096
Added by Claudio Atzori over 6 years ago
OafHbaseUtils.java | ||
---|---|---|
8 | 8 |
import com.google.common.collect.Lists; |
9 | 9 |
import com.google.common.collect.Sets; |
10 | 10 |
import eu.dnetlib.data.proto.FieldTypeProtos.*; |
11 |
import eu.dnetlib.data.proto.PersonProtos.Person; |
|
12 | 11 |
import org.apache.hadoop.hbase.io.ImmutableBytesWritable; |
13 | 12 |
|
14 | 13 |
import com.google.common.base.Function; |
... | ... | |
89 | 88 |
if (t instanceof StructuredProperty) return ((StructuredProperty) t).getValue(); |
90 | 89 |
if (t instanceof KeyValue) return ((KeyValue) t).getValue(); |
91 | 90 |
if (t instanceof String) return (String) t; |
92 |
if (t instanceof Person) return ((Person) t).getMetadata().getFullname().getValue(); |
|
93 | 91 |
if (t instanceof StringField) return ((StringField) t).getValue(); |
94 | 92 |
if (t instanceof Qualifier) return ((Qualifier) t).getClassname(); |
95 | 93 |
if (t instanceof Author) return ((Author) t).getFullname(); |
Also available in: Unified diff
fixing mapping for license vs accessright #3128, cleanup