Examples of Insert


Examples of br.com.objectos.way.relational.Insert

        .list();

    assertThat(inserts.size(), equalTo(2));

    Insert i0 = inserts.get(0);
    assertThat(i0.toString(), equalTo("INSERT INTO A (`A0`, `A1`) VALUES (?, ?)"));

    Insert i1 = inserts.get(1);
    assertThat(i1.toString(), equalTo("INSERT INTO B (`B0`, `B1`) VALUES (?, ?)"));
  }
View Full Code Here

Examples of cascading.operation.Insert

    Fields doc_id = new Fields( "doc_id" );
    Fields tally = new Fields( "tally" );
    Fields rhs_join = new Fields( "rhs_join" );
    Fields n_docs = new Fields( "n_docs" );
    Pipe dPipe = new Unique( "D", tokenPipe, doc_id );
    dPipe = new Each( dPipe, new Insert( tally, 1 ), Fields.ALL );
    dPipe = new Each( dPipe, new Insert( rhs_join, 1 ), Fields.ALL );
    dPipe = new SumBy( dPipe, rhs_join, tally, n_docs, long.class );

    // one branch tallies the token counts for document frequency (DF)
    Pipe dfPipe = new Unique( "DF", tokenPipe, Fields.ALL );
    Fields df_count = new Fields( "df_count" );
    dfPipe = new CountBy( dfPipe, token, df_count );

    Fields df_token = new Fields( "df_token" );
    Fields lhs_join = new Fields( "lhs_join" );
    dfPipe = new Rename( dfPipe, token, df_token );
    dfPipe = new Each( dfPipe, new Insert( lhs_join, 1 ), Fields.ALL );

    // join to bring together all the components for calculating TF-IDF
    // the D side of the join is smaller, so it goes on the RHS
    Pipe idfPipe = new HashJoin( dfPipe, lhs_join, dPipe, rhs_join );
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.model.entities.Insert

     * @return the insert source code changes from the insert operation
     */
    public Insert createInsertOperation(StructureEntityVersion structureEntity, InsertOperation insert) {
        if (isUsableForChangeExtraction(insert.getNodeToInsert())) {
            SourceCodeEntity parent = insert.getParentNode().getEntity();
            return new Insert(structureEntity, insert.getNodeToInsert().getEntity(), parent);
        }
        return null;
    }
View Full Code Here

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

     * @param key The key value that will receive the data
     * @throws Throwable
     */
    private void testWideTable(CCMBridge.CCMCluster c, int key) throws Throwable {
        // Write data
        Insert insertStatement = insertInto("wide_table").value("k", key);
        for (int i = 0; i < 330; ++i) {
            insertStatement = insertStatement.value(createColumnName(i), i);
        }
        c.session.execute(insertStatement.setConsistencyLevel(ConsistencyLevel.QUORUM));

        // Read data
        Row row = c.session.execute(select().all().from("wide_table").where(eq("k", key))).one();

        // Verify data
View Full Code Here

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

    String makePreparedQueryString(TableMetadata table, EntityMapper<?> mapper) {
        switch (kind) {
            case SAVE:
                {
                    Insert insert = table == null
                                  ? insertInto(mapper.getKeyspace(), mapper.getTable())
                                  : insertInto(table);
                    for (ColumnMapper<?> cm : mapper.allColumns())
                        insert.value(cm.getColumnName(), bindMarker());
                    return insert.toString();
                }
            case GET:
                {
                    Select select = table == null
                                  ? select().all().from(mapper.getKeyspace(), mapper.getTable())
View Full Code Here

Examples of com.extjs.gxt.ui.client.dnd.Insert

//            if (toDrag != null) {
//                Element parent = DOM.getParent(row);
//                parent.insertBefore(toDrag, row);
//            }
        if (PermissionsUtils.isPermitted("jcr:addChildNodes", module.getParentModule().getNode()) && !module.getParentModule().getNode().isLocked()) {
            Insert insert = Insert.get();
            insert.setVisible(true);
            Rectangle rect = El.fly(row).getBounds();
            int y = !before ? (rect.y + rect.height - 4) : rect.y - 2;
            insert.el().setBounds(rect.x, y, rect.width, 20);
        }
    }
View Full Code Here

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

      }

      for (Object ele : document.getRootElement().elements("insert")) {
        Element element = (Element) ele;

        Insert insertObj = SqlmappingconfigFactory.eINSTANCE.createInsert();
        insertObj.setId(element.attributeValue("id"));
        insertObj.setParameterType(element.attributeValue("parameterType"));
        insertObj.setRemark(element.attributeValue("remark"));
        insertObj.setSqlValue(element.getText());
       
        String classPathString=element.attributeValue("classPath");

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

     
        ruleMap.put(insertObj.getId(), insertObj);

      }

      for (Object ele : document.getRootElement().elements("delete")) {
        Element element = (Element) ele;
View Full Code Here

Examples of com.google.api.services.androidpublisher.AndroidPublisher.Edits.Insert

            final AndroidPublisher service = AndroidPublisherHelper.init(
                    ApplicationConfig.APPLICATION_NAME, ApplicationConfig.SERVICE_ACCOUNT_EMAIL);
            final Edits edits = service.edits();

            // Create a new edit to make changes.
            Insert editRequest = edits
                    .insert(ApplicationConfig.PACKAGE_NAME,
                            null /** no content */);
            AppEdit appEdit = editRequest.execute();

            // Get a list of apks.
            ApksListResponse apksResponse = edits
                    .apks()
                    .list(ApplicationConfig.PACKAGE_NAME,
View Full Code Here

Examples of com.google.api.services.bigquery.Bigquery.Jobs.Insert

      table.setTableId(kind + datatableSuffix);
      loadConfig.setDestinationTable(table);

      config.setLoad(loadConfig);
      job.setConfiguration(config);
      Insert insert = bigquery.jobs().insert(exporterConfig.getBigqueryProjectId(), job);

      JobReference jr = insert.execute().getJobReference();
      log.warning("Uri: " + gsUrl + ", JobId: " + jr.getJobId());
    }
  }
View Full Code Here

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

        if (data == null) {
          driveItem = service.files().insert(driveItem).execute();
        } else {
          final InputStreamContent params = new InputStreamContent(FILE, new ByteArrayInputStream(data));
          params.setLength(data.length);
          Insert inserter = service.files().insert(driveItem, params);
          MediaHttpUploader uploader = inserter.getMediaHttpUploader();
          prepareUploader(uploader, data);
          driveItem = inserter.execute();
        }
        if (driveItem == null) {
          throw new CloudsyncException("Could not create item '" + item.getPath() + "'");
        }
        _addToCache(driveItem, null);
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.