Project

General

Profile

« Previous | Next » 

Revision 57443

put operations WAS SYNC

View differences:

DedupFindRootsMapper.java
14 14
import eu.dnetlib.data.proto.TypeProtos.Type;
15 15
import eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions;
16 16
import eu.dnetlib.pace.config.DedupConfig;
17
import org.apache.hadoop.hbase.client.Durability;
17 18
import org.apache.hadoop.hbase.client.Put;
18 19
import org.apache.hadoop.hbase.client.Result;
19 20
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
......
83 84
			oafRoot.getDataInfoBuilder().setDeletedbyinference(true).setInferred(true).setInferenceprovenance(dedupConf.getWf().getConfigurationId());
84 85
			final byte[] family = Bytes.toBytes(dedupConf.getWf().getEntityType());
85 86
			final Put put = new Put(row).add(family, DedupUtils.BODY_B, oafRoot.build().toByteArray());
86
			put.setWriteToWAL(JobParams.WRITE_TO_WAL);
87
			put.setDurability(Durability.USE_DEFAULT);
87 88
			context.write(new ImmutableBytesWritable(row), put);
88 89
			context.getCounter(dedupConf.getWf().getEntityType(), "bodies marked deleted").increment(1);
89 90
		}

Also available in: Unified diff