Examples of Update


Examples of com.asakusafw.compiler.flow.testing.operator.ExOperatorFactory.Update

    @Override
    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Update update0 = f.update(in1, 1);
        Update update1 = f.update(core.checkpoint(update0.out), 2);
        Cogroup cog1 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog1.r2);
        Cogroup cog2 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog2.r2);
        out1.add(cog1.r1);
View Full Code Here

Examples of com.asakusafw.vocabulary.operator.Update

        for (int i = 1, n = a.countParameters(); i < n; i++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "更新演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Update annotation = context.element.getAnnotation(Update.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.outputPort(),
        });
        if (a.hasError()) {
            return null;
        }

        Builder builder = new Builder(getTargetAnnotationType(), context);
        builder.addAttribute(a.getObservationCount());
        builder.setDocumentation(a.getExecutableDocument());
        builder.addInput(
                a.getParameterDocument(0),
                a.getParameterName(0),
                a.getParameterType(0).getType(),
                0);
        builder.addOutput(
                "結果",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
View Full Code Here

Examples of com.betfair.cougar.netutil.nio.connected.Update

                                        int numQueuedHeapChangesThisMessage = 0;
                                        int numActionsThisMessage = 0;
                                        List<Update> updatesThisBatch = new ArrayList<Update>();
                                        Iterator<Update> queuedIt = updatesThisCycle.iterator();
                                        while (queuedIt.hasNext()) {
                                            Update u = queuedIt.next();
                                            int actionsThisUpdate = u.getActions().size();
                                            if (numQueuedHeapChangesThisMessage > 0 && numActionsThisMessage + actionsThisUpdate > maxUpdateActionsPerMessage) {
                                                break;
                                            }
                                            updatesThisBatch.add(u);
                                            queuedIt.remove();
View Full Code Here

Examples of com.codiform.moo.curry.Update

   *
   * @param source
   *            the source object, from which properties will be read
   */
  public Update update( Object source ) {
    return new Update( translatorFactory, source );
  }
View Full Code Here

Examples of com.datastax.driver.core.querybuilder.Update

                    "The parameter key to column family should be passed");
        }
        ClassInformation classInformations = ClassInformations.INSTACE.getClass(bean);
        KeySpaceInformation keyInformation = classInformations.getKeySpace(keySpace);

        Update update = QueryBuilder.update(keyInformation.getKeySpace(),
                        keyInformation.getColumnFamily());

        FieldInformation keyField = classInformations.getKeyInformation();
        if (classInformations.isComplexKey()) {
            runComplexKey(update, key, keyField.getSubFields().getFields());
        } else {
            update.where(QueryBuilder.eq(keyField.getName(), key));
        }
        return update;
    }
View Full Code Here

Examples of com.founder.fix.bpmn2extensions.sqlmappingconfig.Update

      }

      for (Object ele : document.getRootElement().elements("update")) {
        Element element = (Element) ele;
        Update updateObj = SqlmappingconfigFactory.eINSTANCE.createUpdate();
        updateObj.setId(element.attributeValue("id"));
        updateObj.setParameterType(element.attributeValue("parameterType"));
        updateObj.setRemark(element.attributeValue("remark"));
        updateObj.setSqlValue(element.getText());
        String classPathString=element.attributeValue("classPath");

        if(StringUtil.isNotEmpty(classPathString)){
          Class<?> classObj=ReflectUtil.loadClass(classPathString);
          if(classObj!=null){
            updateObj.setClassPath(classPathString);
            ruleClassMap.put(element.attributeValue("id"), classObj);
          }
        }
        ruleMap.put(updateObj.getId(), updateObj);
      }

      for (Object ele : document.getRootElement().elements("select")) {
        Element element = (Element) ele;
        Select selectObj = SqlmappingconfigFactory.eINSTANCE.createSelect();
View Full Code Here

Examples of com.fourspaces.couchdb.Update

  }
 
  @Test
  public void testPUTUpdate()
      throws Exception {
    Update putUpdate = new Update("junit/put", "test_data");
    putUpdate.addParameter("field1", "UpdatedByPUT");
       
    boolean result = foo.updateDocument(putUpdate);
    assertTrue(result);
   
    // Retrieve the field and make sure the value is correct
View Full Code Here

Examples of com.google.api.services.androidpublisher.AndroidPublisher.Edits.Listings.Update

            newUsListing.setTitle(US_LISTING_TITLE)
                    .setFullDescription(US_LISTING_FULL_DESCRIPTION)
                    .setShortDescription(US_LISTING_SHORT_DESCRITPION)
                    .setVideo(LISTINGS_PROMO_VIDEO);

            Update updateUSListingsRequest = edits
                    .listings()
                    .update(ApplicationConfig.PACKAGE_NAME,
                            editId,
                            Locale.US.toString(),
                            newUsListing);
            Listing updatedUsListing = updateUSListingsRequest.execute();
            log.info(String.format("Created new US app listing with title: %s",
                    updatedUsListing.getTitle()));

            // Create and update listing for UK version of the application.
            final Listing newUkListing = new Listing();
            newUkListing.setTitle(UK_LISTING_TITLE)
                    .setFullDescription(UK_LISTING_FULL_DESCRIPTION)
                    .setShortDescription(UK_LISTING_SHORT_DESCRITPION)
                    .setVideo(LISTINGS_PROMO_VIDEO);

            Update updateUkListingsRequest = edits
                    .listings()
                    .update(ApplicationConfig.PACKAGE_NAME,
                            editId,
                            Locale.UK.toString(),
                            newUkListing);
            Listing updatedUkListing = updateUkListingsRequest.execute();
            log.info(String.format("Created new UK app listing with title: %s",
                    updatedUkListing.getTitle()));

            // Commit changes for edit.
            Commit commitRequest = edits.commit(ApplicationConfig.PACKAGE_NAME, editId);
View Full Code Here

Examples of com.google.api.services.androidpublisher.AndroidPublisher.Edits.Tracks.Update

                    apk.getVersionCode()));

            // Assign apk to alpha track.
            List<Integer> apkVersionCodes = new ArrayList<>();
            apkVersionCodes.add(apk.getVersionCode());
            Update updateTrackRequest = edits
                    .tracks()
                    .update(ApplicationConfig.PACKAGE_NAME,
                            editId,
                            TRACK_ALPHA,
                            new Track().setVersionCodes(apkVersionCodes));
            Track updatedTrack = updateTrackRequest.execute();
            log.info(String.format("Track %s has been updated.", updatedTrack.getTrack()));

            // Commit changes for edit.
            Commit commitRequest = edits.commit(ApplicationConfig.PACKAGE_NAME, editId);
            AppEdit appEdit = commitRequest.execute();
View Full Code Here

Examples of com.google.api.services.drive.Drive.Files.Update

        if (data == null) {
          driveItem = service.files().update(item.getRemoteIdentifier(), driveItem).execute();
        } else {
          final InputStreamContent params = new InputStreamContent(FILE, new ByteArrayInputStream(data));
          params.setLength(data.length);
          Update updater = service.files().update(item.getRemoteIdentifier(), driveItem, params);
          MediaHttpUploader uploader = updater.getMediaHttpUploader();
          prepareUploader(uploader, data);
          driveItem = updater.execute();
        }
        if (driveItem == null) {
          throw new CloudsyncException("Could not update item '" + item.getPath() + "'");
        } else if (driveItem.getLabels().getTrashed()) {
          throw new CloudsyncException("Remote item '" + item.getPath() + "' [" + driveItem.getId() + "] is trashed\ntry to run with --nocache");
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.