You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by do...@apache.org on 2023/04/12 18:02:51 UTC

[accumulo] branch 2.1 updated: Remove unused methods from MetadataTableUtil (#3291)

This is an automated email from the ASF dual-hosted git repository.

domgarguilo pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 16227d5879 Remove unused methods from MetadataTableUtil (#3291)
16227d5879 is described below

commit 16227d58797797a58d8a8dfafdd0168dbb81deb8
Author: Daniel Roberts <dd...@gmail.com>
AuthorDate: Wed Apr 12 18:02:43 2023 +0000

    Remove unused methods from MetadataTableUtil (#3291)
---
 .../accumulo/server/util/MetadataTableUtil.java    | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java b/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
index 036a736bb3..0b0078224c 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
@@ -87,7 +87,6 @@ import org.apache.accumulo.core.metadata.schema.TabletsMetadata;
 import org.apache.accumulo.core.security.Authorizations;
 import org.apache.accumulo.core.tabletserver.log.LogEntry;
 import org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException;
-import org.apache.accumulo.core.util.ColumnFQ;
 import org.apache.accumulo.core.util.FastFormat;
 import org.apache.accumulo.core.util.Pair;
 import org.apache.accumulo.server.ServerContext;
@@ -198,14 +197,6 @@ public class MetadataTableUtil {
     return newFiles;
   }
 
-  public static void updateTabletDir(KeyExtent extent, String newDir, ServerContext context,
-      ServiceLock zooLock) {
-    TabletMutator tablet = context.getAmple().mutateTablet(extent);
-    tablet.putDirName(newDir);
-    tablet.putZooLock(zooLock);
-    tablet.mutate();
-  }
-
   public static void addTablet(KeyExtent extent, String path, ServerContext context,
       TimeType timeType, ServiceLock zooLock) {
     TabletMutator tablet = context.getAmple().mutateTablet(extent);
@@ -658,19 +649,4 @@ public class MetadataTableUtil {
     tablet.mutate();
   }
 
-  public static SortedMap<Text,SortedMap<ColumnFQ,Value>>
-      getTabletEntries(SortedMap<Key,Value> tabletKeyValues, List<ColumnFQ> columns) {
-    TreeMap<Text,SortedMap<ColumnFQ,Value>> tabletEntries = new TreeMap<>();
-
-    HashSet<ColumnFQ> colSet = columns == null ? null : new HashSet<>(columns);
-
-    tabletKeyValues.forEach((key, val) -> {
-      ColumnFQ currentKey = new ColumnFQ(key);
-      if (columns == null || colSet.contains(currentKey)) {
-        tabletEntries.computeIfAbsent(key.getRow(), k -> new TreeMap<>()).put(currentKey, val);
-      }
-    });
-
-    return tabletEntries;
-  }
 }