Examples of multi()


Examples of com.numb3r3.common.math.Matrix.multi()

    }

    @Override
    public Matrix mult(Matrix other) {
        Matrix dump = this.dup();
        dump.multi(other);
        return dump;
    }

    @Override
    public void multi(double scale) {
View Full Code Here

Examples of com.numb3r3.common.math.Matrix.multi()

    }

    @Override
    public Matrix mult(double scale) {
        Matrix dump = this.dup();
        dump.multi(scale);
        return dump;
    }

    @Override
    public double dot(final Matrix other) {
View Full Code Here

Examples of org.apache.zookeeper.ZooKeeper.multi()

                ClientBase.CONNECTION_TIMEOUT, watcher);
        watcher.waitForConnected(CONNECTION_TIMEOUT);
       
        List<OpResult> results = new ArrayList<OpResult>();

        results = zk.multi(Arrays.asList(
                Op.create("/multi0", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi1", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi2", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT)
                ));
        zk.getData("/multi0", false, null);
View Full Code Here

Examples of org.apache.zookeeper.ZooKeeper.multi()

                ClientBase.CONNECTION_TIMEOUT, watcher);
        watcher.waitForConnected(CONNECTION_TIMEOUT);
       
        List<OpResult> results = new ArrayList<OpResult>();

        results = zk.multi(Arrays.asList(
                Op.create("/multi0", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi1", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi2", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT)
                ));
        zk.getData("/multi0", false, null);
View Full Code Here

Examples of org.apache.zookeeper.ZooKeeper.multi()

                ClientBase.CONNECTION_TIMEOUT, watcher);
        watcher.waitForConnected(CONNECTION_TIMEOUT);
       
        List<OpResult> results = new ArrayList<OpResult>();

        results = zk.multi(Arrays.asList(
                Op.create("/multi0", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi1", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
                Op.create("/multi2", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT)
                ));
        zk.getData("/multi0", false, null);
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.multi()

      if (!connHolder.isTransactionSyncronisationActive()) {
        connHolder.setTransactionSyncronisationActive(true);
       
        RedisConnection conn = connHolder.getConnection();
        conn.multi();

        TransactionSynchronizationManager.registerSynchronization(new RedisTransactionSynchronizer(connHolder, conn));
      }
    }
  }
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.multi()

    connection.close();
    // The shared connection should not be closed
    connection.ping();

    // The dedicated connection should not be closed b/c it's part of a pool
    connection.multi();
    connection.close();
    factory2.destroy();
    pool.destroy();
  }
View Full Code Here

Examples of redis.clients.jedis.BinaryJedis.multi()

  public void testMulti() throws Exception {
    byte[] key = "key".getBytes();
    byte[] value = "value".getBytes();

    BinaryJedis jedis = (BinaryJedis) connection.getNativeConnection();
    Transaction multi = jedis.multi();
    //connection.set(key, value);
    multi.set(value, key);
    System.out.println(multi.exec());

    connection.multi();
View Full Code Here

Examples of redis.clients.jedis.Jedis.multi()

    2000, "foobared");

  Jedis jedis = pool.getResource();
  try {
      jedis.set("hello", "jedis");
      Transaction t = jedis.multi();
      t.set("hello", "world");
  } finally {
      jedis.close();
  }
View Full Code Here

Examples of redis.clients.jedis.Jedis.multi()

        return incr;
    }

    public List<Object> multi(TransactionBlock transaction) {
        Jedis jedis = getResource();
        List<Object> multi = jedis.multi(transaction);
        returnResource(jedis);
        return multi;
    }

    public Long del() {
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.