Examples of Put


Examples of co.cask.cdap.api.dataset.table.Put

    return Bytes.concat(column, keyDelimiter, value, keyDelimiter, row);
  }

  @Override
  public void put(byte[] row, byte[] column, byte[] value) {
    Put put = new Put(row);
    put.add(column, value);
    put(put);
  }
View Full Code Here

Examples of com.adito.vfs.webdav.methods.PUT

        this.methods.put("MKCOL", new MKCOL());
        this.methods.put("MOVE", new MOVE());
        this.methods.put("OPTIONS", new OPTIONS());
        this.methods.put("PROPFIND", new PROPFIND());
        this.methods.put("PROPPATCH", new PROPPATCH());
        this.methods.put("PUT", new PUT());
        this.methods.put("COPY", new COPY());

        Map.Entry entry;
        for (Iterator it = methodImpls.entrySet().iterator(); it.hasNext();) {
            try {
View Full Code Here

Examples of javax.ws.rs.PUT

        }
        return new BufferedRequest(DEFAULT_NULL_REQUEST);
    }

    private String getHttpMethod(Method method) {
        PUT put = method.getAnnotation(PUT.class);
        if (put != null) return HttpMethod.PUT;

        POST post = method.getAnnotation(POST.class);
        if (post != null) return HttpMethod.POST;
View Full Code Here

Examples of net.caprazzi.keez.Keez.Put

          upgradeFrom0to1();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
       
        db.put(MASTER_KEY, 0, getMasterRecord(), new Put() {

          @Override
          public void ok(String key, int rev) {}

          @Override
View Full Code Here

Examples of net.sf.kpex.builtins.Put

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

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

    // fluent combinators
    register(new SplitSource());
View Full Code Here

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

        }

        @Override
        public RestResponse execute(Object controller) throws Exception {
            if (controller instanceof Put) {
                Put put = (Put) controller;
                return put.doPut();
            }

            return super.execute(controller);
        }
View Full Code Here

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

    assertEquals(0, cmd.run(args));
  }

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

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

        }

        // add the row directly to meta.
        HbckInfo hi = his.iterator().next();
        HRegionInfo hri = hi.getHdfsHRI(); // hi.metaEntry;
        Put p = new Put(hri.getRegionName());
        p.add(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER,
            Writables.getBytes(hri));
        puts.add(p);
      }
    }
    return hasProblems ? null : puts;
View Full Code Here

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

    Delete d = new Delete(hi.metaEntry.getRegionName());
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
    mutations.add(d);

    Put p = new Put(hi.metaEntry.getRegionName());
    HRegionInfo hri = new HRegionInfo(hi.metaEntry);
    hri.setOffline(false);
    hri.setSplit(false);
    p.add(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER,
      Writables.getBytes(hri));
    mutations.add(p);

    meta.mutateRow(mutations);
    meta.flushCommits();
View Full Code Here

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

  // Connection.
  private static final Log LOG = LogFactory.getLog(MetaEditor.class);

  private static Put makePutFromRegionInfo(HRegionInfo regionInfo)
  throws IOException {
    Put put = new Put(regionInfo.getRegionName());
    put.add(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER,
        Writables.getBytes(regionInfo));
    return put;
  }
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.