accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject git commit: ACCUMULO-3200 Remove unused class
Date Mon, 06 Oct 2014 17:07:35 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master d1f403205 -> 0bb0012c1


ACCUMULO-3200 Remove unused class


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/0bb0012c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/0bb0012c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/0bb0012c

Branch: refs/heads/master
Commit: 0bb0012c175803be44a296f83930e62cdf6bd685
Parents: d1f4032
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Mon Oct 6 13:06:16 2014 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Mon Oct 6 13:06:28 2014 -0400

----------------------------------------------------------------------
 .../server/conf/TableConfigurationCopy.java     | 77 --------------------
 1 file changed, 77 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/0bb0012c/server/base/src/main/java/org/apache/accumulo/server/conf/TableConfigurationCopy.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/conf/TableConfigurationCopy.java
b/server/base/src/main/java/org/apache/accumulo/server/conf/TableConfigurationCopy.java
deleted file mode 100644
index d67b98c..0000000
--- a/server/base/src/main/java/org/apache/accumulo/server/conf/TableConfigurationCopy.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * 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.accumulo.server.conf;
-
-import java.util.Map;
-import java.util.Map.Entry;
-
-import org.apache.accumulo.core.conf.Property;
-
-/**
- * 
- */
-public class TableConfigurationCopy extends TableConfiguration {
-
-  private String tableId;
-  private Map<String,String> conf;
-
-  public TableConfigurationCopy(String tableId, Map<String,String> conf) {
-    super(null, null, null, null);
-    this.tableId = tableId;
-    this.conf = conf;
-  }
-
-  @Override
-  public String get(Property property) {
-    String key = property.getKey();
-    return conf.get(key);
-  }
-
-  @Override
-  public void getProperties(Map<String,String> props, PropertyFilter filter) {
-    for (Entry<String,String> entry : conf.entrySet()) {
-      if (filter.accept(entry.getKey())) {
-        props.put(entry.getKey(), entry.getValue());
-      }
-    }
-  }
-
-  @Override
-  public String getTableId() {
-    return tableId;
-  }
-
-  @Override
-  public NamespaceConfiguration getNamespaceConfiguration() {
-    throw new UnsupportedOperationException();
-  }
-
-  @Override
-  public NamespaceConfiguration getParentConfiguration() {
-    throw new UnsupportedOperationException();
-  }
-
-  @Override
-  public void invalidateCache() {
-    // Nothing to invalidate as this is a static copy
-  }
-
-  @Override
-  public String toString() {
-    return this.getClass().getSimpleName();
-  }
-}


Mime
View raw message