Figured out how to get counters into the BlurOutputFormat.
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/4563ddec Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/4563ddec Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/4563ddec Branch: refs/heads/0.1.5 Commit: 4563ddecbd29bc41baba1d54be1cd6bcd6a7e42c Parents: 66c804e Author: Aaron McCurry <[email protected]> Authored: Thu May 16 22:59:11 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Thu May 16 22:59:11 2013 -0400 ---------------------------------------------------------------------- .../org/apache/blur/mapreduce/lib/GetCounter.java | 25 +++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4563ddec/src/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/GetCounter.java ---------------------------------------------------------------------- diff --git a/src/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/GetCounter.java b/src/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/GetCounter.java new file mode 100644 index 0000000..a078e76 --- /dev/null +++ b/src/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/GetCounter.java @@ -0,0 +1,25 @@ +package org.apache.blur.mapreduce.lib; + +import org.apache.hadoop.mapreduce.Counter; + +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with this + * work for additional information regarding copyright ownership. The ASF + * licenses this file to You under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +public interface GetCounter { + + Counter getCounter(Enum<?> counterName); + +}
