Examples of batch()


Examples of org.apache.hadoop.hbase.client.HTableInterface.batch()

  public void batch(String tableName, final List<? extends Row> actions)
      throws IOException, StorageTableNotFoundException, InterruptedException {
    HTableInterface tableInterface = getTable(tableName);

    try {
      tableInterface.batch(actions);
    } finally {
      // return table to hTable pool
      tableInterface.close();
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Table.batch()

  public static void mutateMetaTable(final HConnection hConnection,
                                     final List<Mutation> mutations)
    throws IOException {
    Table t = getMetaHTable(hConnection);
    try {
      t.batch(mutations);
    } catch (InterruptedException e) {
      InterruptedIOException ie = new InterruptedIOException(e.getMessage());
      ie.initCause(e);
      throw ie;
    } finally {
View Full Code Here

Examples of org.apache.ibatis.executor.statement.StatementHandler.batch()

      currentSql = sql;
      statementList.add(stmt);
      batchResultList.add(new BatchResult(ms, sql, parameterObject));
    }
    handler.parameterize(stmt);
    handler.batch(stmt);
    return BATCH_UPDATE_RETURN_VALUE;
  }

  public List doQuery(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler)
      throws SQLException {
View Full Code Here

Examples of org.apache.ibatis.executor.statement.StatementHandler.batch()

      currentSql = sql;
      statementList.add(stmt);
      batchResultList.add(new BatchResult(ms, sql, parameterObject));
    }
    handler.parameterize(stmt);
    handler.batch(stmt);
    return BATCH_UPDATE_RETURN_VALUE;
  }

  public List doQuery(MappedStatement ms, Object parameterObject, int rowOffset, int rowLimit, ResultHandler resultHandler)
      throws SQLException {
View Full Code Here

Examples of org.cometd.bayeux.server.ServerSession.batch()

            final ServerSession session = getBayeux().getSession(sessionId);

            // We need to batch otherwise the deliver() will wake up the long poll
            // and the disconnect may not be delivered, since the client won't issue
            // a new long poll, and the disconnect will remain in the queue
            session.batch(new Runnable()
            {
                public void run()
                {
                    session.deliver(getServerSession(), kickMessage);
                    session.disconnect();
View Full Code Here

Examples of org.cometd.client.BayeuxClient.batch()

        final ServerChannel chatChannel = bayeux.getChannel(channelName);
        Assert.assertNotNull(chatChannel);

        final int count = 5;
        client.batch(new Runnable()
        {
            public void run()
            {
                for (int i = 0; i < count; ++i)
                    client.getChannel(channelName).publish("hello_" + i);
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilder.batch()

                map.put(kBaseQualifier, list);
            }
        }

        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
        CompositeKnowledgeBuilder ckbuilder = kbuilder.batch();

        for ( Map.Entry<Class, List<String>> entry : map.entrySet() ) {
            Class cls = entry.getKey();
            List<String> files = entry.getValue();
            if ( !files.isEmpty() ) {
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilder.batch()

    }

    public void init() throws InterruptedException {
        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

        kbuilder.batch().add( newClassPathResource( "init.drl", getClass() ), DRL )
                        .add( newClassPathResource( "commands.drl", getClass() ), DRL )
                        .add( newClassPathResource( "shoot.drl", getClass() ), DRL)
                        .add( newClassPathResource( "ui.drl", GameView.class ), DRL )
                        .add( newClassPathResource( "paintCave.drl", GameView.class ), DRL )
                        .add( newClassPathResource( "paintSensor.drl", GameView.class ), DRL )
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilder.batch()

        }
        KnowledgeBase serverKBase = KnowledgeBaseFactory.newKnowledgeBase( );       
        serverKBase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
       
        kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
        kbuilder.batch().add( newClassPathResource( "client.drl", getClass() ), DRL ).build();    
        if ( kbuilder.hasErrors() ) {
            throw new RuntimeException( kbuilder.getErrors().toString() );
        }
       
        KnowledgeBase clientKBase = KnowledgeBaseFactory.newKnowledgeBase( );       
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilder.batch()

    public void createGame() {
        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
       
       
        kbuilder.batch().add( newClassPathResource( "Model.drl", getClass()  ), DRL )
        .add( newClassPathResource( "Queries.drl",  getClass()  ), DRL )
        .add( newClassPathResource( "General.drl",  getClass()  ), DRL )
        .add( newClassPathResource( "Response.drl",  getClass()  ), DRL )
        .add( newClassPathResource( "Events.drl",  getClass()  ), DRL )
        .add( newClassPathResource( "UiView.drl", getClass() ), DRL )
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.