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 Map<String,String> |
baseUrlMap |
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 org.apache.hadoop.io.Text |
tKey |
protected Set<String> |
untrustedOaDsList |
| Constructor and Description |
|---|
AbstractEnrichmentReducer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
counterGroup() |
protected void |
emit(List<EventWrapper> events,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected Map<String,String> |
getDsTypeMap(org.apache.hadoop.mapreduce.Reducer.Context context,
Set<String> dsTypeWhitelist) |
static Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> |
oafDeserialiser() |
protected float |
scale(double d) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected double |
similarity(eu.dnetlib.data.proto.OafProtos.Oaf oa,
eu.dnetlib.data.proto.OafProtos.Oaf ob) |
static eu.dnetlib.data.proto.OafProtos.Oaf |
toOaf(ImmutableBytesWritable p) |
protected eu.dnetlib.pace.config.DedupConfig dedupConf
protected static final int LIMIT
protected static final int SCORE_DECIMALS
protected org.apache.hadoop.io.Text tKey
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 void emit(List<EventWrapper> events, org.apache.hadoop.mapreduce.Reducer.Context context)
protected double similarity(eu.dnetlib.data.proto.OafProtos.Oaf oa,
eu.dnetlib.data.proto.OafProtos.Oaf ob)
protected float scale(double d)
public static Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> oafDeserialiser()
public static eu.dnetlib.data.proto.OafProtos.Oaf toOaf(ImmutableBytesWritable p)
Copyright © 2018. All rights reserved.