Package org.apache.accumulo.core.metadata

Examples of org.apache.accumulo.core.metadata.MetadataLocationObtainer


  public static synchronized TabletLocator getLocator(Instance instance, Text tableId) {
   
    LocatorKey key = new LocatorKey(instance.getInstanceID(), tableId);
    TabletLocator tl = locators.get(key);
    if (tl == null) {
      MetadataLocationObtainer mlo = new MetadataLocationObtainer(instance);
     
      if (tableId.toString().equals(RootTable.ID)) {
        tl = new RootTabletLocator(instance, new ZookeeperLockChecker(instance));
      } else if (tableId.toString().equals(MetadataTable.ID)) {
        tl = new TabletLocatorImpl(new Text(MetadataTable.ID), getLocator(instance, new Text(RootTable.ID)), mlo, new ZookeeperLockChecker(instance));
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.metadata.MetadataLocationObtainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.