public abstract class AbstractEnrichmentReducer extends org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,ImmutableBytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Modifier and Type | Field and Description |
|---|---|
protected eu.dnetlib.pace.config.DedupConfig |
dedupConf |
protected Set<String> |
dsBlacklist |
protected Map<String,String> |
dsTypeMap |
protected Set<String> |
dsTypeWhitelist |
protected Set<String> |
dsWhitelist |
protected static int |
LIMIT |
protected double |
scaleLB
lower bound for trust scaling
|
protected static int |
SCORE_DECIMALS |
protected Set<String> |
untrustedOaDsList |
| Constructor and Description |
|---|
AbstractEnrichmentReducer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
counterGroup() |
protected Map<String,String> |
getDsTypeMap(org.apache.hadoop.mapreduce.Reducer.Context context,
Set<String> dsTypeWhitelist) |
protected com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> |
oafDeserialiser() |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected float |
similarity(eu.dnetlib.data.proto.OafProtos.Oaf oa,
eu.dnetlib.data.proto.OafProtos.Oaf ob) |
protected eu.dnetlib.pace.config.DedupConfig dedupConf
protected static final int LIMIT
protected static final int SCORE_DECIMALS
protected double scaleLB
protected abstract String counterGroup()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
setup in class org.apache.hadoop.mapreduce.Reducer<ImmutableBytesWritable,ImmutableBytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionprotected Map<String,String> getDsTypeMap(org.apache.hadoop.mapreduce.Reducer.Context context, Set<String> dsTypeWhitelist) throws IOException
IOExceptionprotected float similarity(eu.dnetlib.data.proto.OafProtos.Oaf oa,
eu.dnetlib.data.proto.OafProtos.Oaf ob)
protected com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> oafDeserialiser()
Copyright © 2017. All rights reserved.