@@ -0,0 +1,1651 @@
+/*%0D%0A * Licensed to the Apache Software Foundation (ASF) under one%0D%0A * or more contributor license agreements.  See the NOTICE file%0D%0A * distributed with this work for additional information%0D%0A * regarding copyright ownership.  The ASF licenses this file%0D%0A * to you under the Apache License, Version 2.0 (the%0D%0A * %22License%22); you may not use this file except in compliance%0D%0A * with the License.  You may obtain a copy of the License at%0D%0A * %0D%0A *     http://www.apache.org/licenses/LICENSE-2.0%0D%0A *     %0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0A%0D%0Apackage org.apache.jena.hadoop.rdf.mapreduce.count.positional;%0D%0A%0D%0Aimport org.apache.jena.hadoop.rdf.mapreduce.count.NodeCountReducer;%0D%0Aimport org.apache.jena.hadoop.rdf.mapreduce.count.QuadNodeCountMapper;%0D%0Aimport org.apache.jena.hadoop.rdf.types.NodeWritable;%0D%0Aimport org.apache.jena.hadoop.rdf.types.QuadWritable;%0D%0A%0D%0A/**%0D%0A * A mapper for counting graph node usages within quads designed primarily for%0D%0A * use in conjunction with %7B@link NodeCountReducer%7D. This can be used to%0D%0A * calculate the size of graphs.%0D%0A * %0D%0A * %0D%0A * %0D%0A * @param %3CTKey%3E%0D%0A *            Key type%0D%0A */%0D%0Apublic class QuadGraphCountMapper%3CTKey%3E extends QuadNodeCountMapper%3CTKey%3E %7B%0D%0A%0D%0A    @Override%0D%0A    protected NodeWritable%5B%5D getNodes(QuadWritable tuple) %7B%0D%0A        return new NodeWritable%5B%5D %7B new NodeWritable(tuple.get().getGraph()) %7D;%0D%0A    %7D%0D%0A%7D%0D%0A

Add QuadGraphCountMapper for calculating graph sizes