Package org.apache.accumulo.core.client.impl.TabletLocator

Examples of org.apache.accumulo.core.client.impl.TabletLocator.TabletLocation


    TreeMap<KeyExtent,TabletLocation> mcke = new TreeMap<KeyExtent,TabletLocation>();
   
    for (int i = 0; i < data.length; i += 2) {
      KeyExtent ke = (KeyExtent) data[i];
      String loc = (String) data[i + 1];
      mcke.put(ke, new TabletLocation(ke, loc));
    }
   
    return mcke;
  }
View Full Code Here


    tservers.tservers.remove(server);
   
  }
 
  private void locateTabletTest(TabletLocatorImpl cache, String row, boolean skipRow, KeyExtent expected, String server) throws Exception {
    TabletLocation tl = cache.locateTablet(new Text(row), skipRow, false);
   
    if (expected == null) {
      if (tl != null)
        System.out.println("tl = " + tl);
      assertNull(tl);
View Full Code Here

      SortedMap<Key,Value> results = tabletData.tailMap(startKey).headMap(stopKey);
     
      SortedMap<KeyExtent,Text> metadata = MetadataTable.getMetadataLocationEntries(results);
     
      for (Entry<KeyExtent,Text> entry : metadata.entrySet()) {
        list.add(new TabletLocation(entry.getKey(), entry.getValue().toString()));
      }
     
      return list;
    }
View Full Code Here

        parent.invalidateCache(failures);
     
      SortedMap<KeyExtent,Text> metadata = MetadataTable.getMetadataLocationEntries(results);
     
      for (Entry<KeyExtent,Text> entry : metadata.entrySet()) {
        list.add(new TabletLocation(entry.getKey(), entry.getValue().toString()));
      }
     
      return list;
     
    }
View Full Code Here

      // System.out.println("results "+results.keySet());
     
      SortedMap<KeyExtent,Text> metadata = MetadataTable.getMetadataLocationEntries(results);
     
      for (Entry<KeyExtent,Text> entry : metadata.entrySet()) {
        list.add(new TabletLocation(entry.getKey(), entry.getValue().toString()));
      }
     
    } catch (AccumuloServerException ase) {
      if (log.isTraceEnabled())
        log.trace(src.tablet_extent.getTableId() + " lookup failed, " + src.tablet_location + " server side exception");
View Full Code Here

    }
   
    SortedMap<KeyExtent,Text> metadata = MetadataTable.getMetadataLocationEntries(results);
   
    for (Entry<KeyExtent,Text> entry : metadata.entrySet()) {
      list.add(new TabletLocation(entry.getKey(), entry.getValue().toString()));
    }
   
    return list;
  }
View Full Code Here

        if (attempt > 0)
          UtilWaitThread.sleep(100);
       
        attempt++;
       
        TabletLocation tl = tabLocator.locateTablet(split, false, false);
       
        if (tl == null) {
          if (!Tables.exists(instance, tableId))
            throw new TableNotFoundException(tableId, tableName, null);
          else if (Tables.getTableState(instance, tableId) == TableState.OFFLINE)
View Full Code Here

    TreeMap<KeyExtent,TabletLocation> mcke = new TreeMap<KeyExtent,TabletLocation>();
   
    for (int i = 0; i < data.length; i += 2) {
      KeyExtent ke = (KeyExtent) data[i];
      String loc = (String) data[i + 1];
      mcke.put(ke, new TabletLocation(ke, loc));
    }
   
    return mcke;
  }
View Full Code Here

    tservers.tservers.remove(server);
   
  }
 
  private void locateTabletTest(TabletLocatorImpl cache, String row, boolean skipRow, KeyExtent expected, String server) throws Exception {
    TabletLocation tl = cache.locateTablet(new Text(row), skipRow, false);
   
    if (expected == null) {
      if (tl != null)
        System.out.println("tl = " + tl);
      assertNull(tl);
View Full Code Here

      SortedMap<Key,Value> results = tabletData.tailMap(startKey).headMap(stopKey);
     
      SortedMap<KeyExtent,Text> metadata = MetadataTable.getMetadataLocationEntries(results);
     
      for (Entry<KeyExtent,Text> entry : metadata.entrySet()) {
        list.add(new TabletLocation(entry.getKey(), entry.getValue().toString()));
      }
     
      return list;
    }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.client.impl.TabletLocator.TabletLocation

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.