From 1e6c2278831f4b8e19c4488091f7700a3ad90369 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 23 Mar 2012 21:52:55 +0000 Subject: [PATCH] HBASE-5616 Make compaction code standalone; ADDENDUM -- ADD LICENSES git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1304624 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/regionserver/Compactor.java | 19 ++++++++++++++++++- .../hbase/regionserver/CompactionTool.java | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/regionserver/Compactor.java b/src/main/java/org/apache/hadoop/hbase/regionserver/Compactor.java index 53446c19868..2f9fa3623ec 100644 --- a/src/main/java/org/apache/hadoop/hbase/regionserver/Compactor.java +++ b/src/main/java/org/apache/hadoop/hbase/regionserver/Compactor.java @@ -1,3 +1,20 @@ +/** + * 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. + */ package org.apache.hadoop.hbase.regionserver; import java.io.IOException; @@ -186,4 +203,4 @@ class Compactor extends Configured { CompactionProgress getProgress() { return this.progress; } -} \ No newline at end of file +} diff --git a/src/test/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java b/src/test/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java index 56dd9e7f819..be4bc85f41f 100644 --- a/src/test/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java +++ b/src/test/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java @@ -1,3 +1,20 @@ +/** + * 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. + */ package org.apache.hadoop.hbase.regionserver; import java.io.IOException; @@ -151,4 +168,4 @@ public class CompactionTool implements Tool { System.exit(ToolRunner.run(HBaseConfiguration.create(), new CompactionTool(), args)); } -} \ No newline at end of file +}