Package org.apache.blur.thrift

Examples of org.apache.blur.thrift.AsyncClientPool


      final int numberOfWords = 30;
      int count = 0;
      int max = 1000;
      long start = System.currentTimeMillis();
      final String table = "test1";
      AsyncClientPool pool = new AsyncClientPool();
      AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
      for (int i = 0; i < numberRows; i++) {
        if (count >= max) {
          double seconds = (System.currentTimeMillis() - start) / 1000.0;
          double rate = i / seconds;
          System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
View Full Code Here


    final int numberOfWords = 30;
    int count = 0;
    int max = 100;
    long start = System.currentTimeMillis();
    final String table = "test-table";
    AsyncClientPool pool = new AsyncClientPool();
    AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
    for (int i = 0; i < numberRows; i++) {
      if (count >= max) {
        double seconds = (System.currentTimeMillis() - start) / 1000.0;
        double rate = i / seconds;
        System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
View Full Code Here

  public static void main(String[] args) throws BlurException, TException, IOException, InterruptedException {
    String connectionStr = args[0];
    String tableName = args[1];
    String queryStr = args[2];

    AsyncClientPool pool = new AsyncClientPool(10, 30000);

    AsyncIface asyncIface = pool.getClient(Blur.AsyncIface.class, connectionStr);

    final BlurQuery blurQuery = new BlurQuery();
    Query query = new Query();
    query.setQuery(queryStr);
    blurQuery.setQuery(query);
View Full Code Here

      final int numberOfWords = 30;
      int count = 0;
      int max = 1000;
      long start = System.currentTimeMillis();
      final String table = "test1";
      AsyncClientPool pool = new AsyncClientPool();
      AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
      for (int i = 0; i < numberRows; i++) {
        if (count >= max) {
          double seconds = (System.currentTimeMillis() - start) / 1000.0;
          double rate = i / seconds;
          System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
View Full Code Here

    final int numberOfWords = 30;
    int count = 0;
    int max = 1000;
    long start = System.currentTimeMillis();
    final String table = "test";
    AsyncClientPool pool = new AsyncClientPool();
    AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
    for (int i = 0; i < numberRows; i++) {
      if (count >= max) {
        double seconds = (System.currentTimeMillis() - start) / 1000.0;
        double rate = i / seconds;
        System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
View Full Code Here

    final int numberOfWords = 30;
    int count = 0;
    int max = 100;
    long start = System.currentTimeMillis();
    final String table = "test-table";
    AsyncClientPool pool = new AsyncClientPool();
    AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
    for (int i = 0; i < numberRows; i++) {
      if (count >= max) {
        double seconds = (System.currentTimeMillis() - start) / 1000.0;
        double rate = i / seconds;
        System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
View Full Code Here

TOP

Related Classes of org.apache.blur.thrift.AsyncClientPool

Copyright © 2018 www.massapicom. 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.