public void map (LongWritable key, QuadWritable value, Context context) throws IOException, InterruptedException {
log.debug("< ({}, {})", key, value);
Quad quad = value.getQuad();
if ( quad.isTriple() ) {
EventManager.send(counters, new Event(Constants.eventTriple, null));
} else {
EventManager.send(counters, new Event(Constants.eventQuad, null));
}
emit (quad, context);
Node g = quad.getGraph();
Node p = quad.getPredicate();