Examples of Get


Examples of net.caprazzi.keez.Keez.Get

 
  public static class GetNotFound implements Answer<Object> {
    @Override
    public Object answer(InvocationOnMock invocation) throws Throwable {
      String key = (String)invocation.getArguments()[0];
      Get cb = (Get) invocation.getArguments()[1];
      cb.notFound(key);
      return null;
    }
View Full Code Here

Examples of net.ex337.scriptus.model.api.functions.Get

   
    assertTrue("slept correctly", r instanceof Get);

    p.save();

    Get g = (Get) r;
   
    g.visit(new ScriptusFacade(datastore, c, m, conf), p);
   
    p = datastore.getProcess(p.getPid());
   
    assertTrue("got content", p.getState() instanceof String);
   
View Full Code Here

Examples of net.sf.kpex.builtins.Get

    register(new StringCharReader());
    register(new StringClauseReader());

    // fluent controllers
    register(new Get());
    register(new Put());
    register(new Stop());
    register(new Collect());

    // fluent combinators
View Full Code Here

Examples of net.sourceforge.jwbf.core.actions.Get

        String ilcontinue) {

      String uS = "/api.php?action=query&list=imageusage"
        + "&iucontinue=" + MediaWiki.encode(ilcontinue)
        + "&iulimit=" + LIMIT + "&format=xml";
      return new Get(uS);
    }
View Full Code Here

Examples of org.apache.cocoon.rest.controller.method.Get

        }

        @Override
        public RestResponse execute(Object controller) throws Exception {
            if (controller instanceof Get) {
                Get get = (Get) controller;
                return get.doGet();
            }
            return super.execute(controller);
        }
View Full Code Here

Examples of org.apache.hadoop.fs.shell.CopyCommands.Get

    assertAttributesChanged();
  }

  @Test(timeout = 10000)
  public void testGetWithP() throws Exception {
    run(new Get(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Get

      undeployRegions(hi);
      return;
    }

    // get assignment info and hregioninfo from meta.
    Get get = new Get(hi.getRegionName());
    get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
    get.addColumn(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER);
    get.addColumn(HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER);
    Result r = meta.get(get);
    byte[] value = r.getValue(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER);
    byte[] startcodeBytes = r.getValue(HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER);
    if (value == null || startcodeBytes == null) {
      errors.reportError("Unable to close region "
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Get

      byte [] catalogRegionName, byte [] regionName)
  throws IOException {
    Result r = null;
    try {
      r = metaServer.get(catalogRegionName,
        new Get(regionName).
        addColumn(HConstants.CATALOG_FAMILY,
          HConstants.SERVER_QUALIFIER).
        addColumn(HConstants.CATALOG_FAMILY,
          HConstants.STARTCODE_QUALIFIER));
    } catch (java.net.SocketTimeoutException e) {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Get

   * @throws IOException
   */
  public static Pair<HRegionInfo, ServerName> getRegion(
      CatalogTracker catalogTracker, byte [] regionName)
  throws IOException {
    Get get = new Get(regionName);
    get.addFamily(HConstants.CATALOG_FAMILY);
    Result r = get(getCatalogHTable(catalogTracker, regionName), get);
    return (r == null || r.isEmpty())? null: parseCatalogResult(r);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Get

                              byte[] family,
                              byte[] qualifier,
                              Map<ByteBuffer, ByteBuffer> attributes) throws IOError {
      try {
        HTable table = getTable(tableName);
        Get get = new Get(getBytes(row));
        addAttributes(get, attributes);
        if (qualifier == null || qualifier.length == 0) {
          get.addFamily(family);
        } else {
          get.addColumn(family, qualifier);
        }
        Result result = table.get(get);
        return ThriftUtilities.cellFromHBase(result.raw());
      } catch (IOException e) {
        LOG.warn(e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.