Examples of run()


Examples of io.druid.query.FinalizeResultsQueryRunner.run()

      QueryRunner runner = new FinalizeResultsQueryRunner(
          factory.createRunner(segment),
          factory.getToolchest()
      );

      TestHelper.assertExpectedResults(expectedResults, runner.run(query, Maps.newHashMap()));
    }
    catch (Exception e) {
      throw Throwables.propagate(e);
    }
  }
View Full Code Here

Examples of io.druid.query.Query.run()

      if (log.isDebugEnabled()) {
        log.debug("Got query [%s]", query);
      }

      final Map<String, Object> responseContext = new MapMaker().makeMap();
      final Sequence res = query.run(texasRanger, responseContext);
      final Sequence results;
      if (res == null) {
        results = Sequences.empty();
      } else {
        results = res;
View Full Code Here

Examples of io.druid.query.QueryRunner.run()

      QueryRunner runner = new FinalizeResultsQueryRunner(
          factory.createRunner(segment),
          factory.getToolchest()
      );

      TestHelper.assertExpectedResults(expectedResults, runner.run(query, Maps.newHashMap()));
    }
    catch (Exception e) {
      throw Throwables.propagate(e);
    }
  }
View Full Code Here

Examples of io.druid.query.metadata.metadata.SegmentMetadataQuery.run()

    final SegmentMetadataQuery query = new SegmentMetadataQuery(
        new LegacyDataSource("test"), QuerySegmentSpecs.create("2011/2012"), null, null, null
    );
    HashMap<String,Object> context = new HashMap<String, Object>();
    return Sequences.toList(query.run(runner, context), Lists.<SegmentAnalysis>newArrayList());
  }
}
View Full Code Here

Examples of io.druid.server.coordinator.helper.DruidCoordinatorRuleRunner.run()

            .withDatabaseRuleManager(databaseRuleManager)
            .withSegmentReplicantLookup(SegmentReplicantLookup.make(new DruidCluster()))
            .build();

    DruidCoordinatorRuleRunner runner = new DruidCoordinatorRuleRunner(new ReplicationThrottler(7, 1), coordinator);
    DruidCoordinatorRuntimeParams afterParams = runner.run(params);
    CoordinatorStats stats = afterParams.getCoordinatorStats();

    Assert.assertTrue(stats.getPerTierStats().get("assignedCount").get("hot").get() == 24);
    Assert.assertTrue(stats.getPerTierStats().get("assignedCount").get(DruidServer.DEFAULT_TIER).get() == 7);
    Assert.assertTrue(stats.getPerTierStats().get("unassignedCount") == null);
View Full Code Here

Examples of io.druid.server.coordinator.helper.DruidCoordinatorSegmentMerger.run()

                                                                            mergeSegmentsLimit
                                                                        )
                                                                                                         .build()
                                                                    )
                                                                    .build();
    merger.run(params);
    return retVal;
  }
}
View Full Code Here

Examples of io.fathom.auto.fathomcloud.CloudServerInstance.run()

        Thread cloudThread = new Thread(new Runnable() {
            @Override
            public void run() {
                CloudServerInstance instance = new CloudServerInstance(configStore);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during fathom cloud run; forcing exit", e);
                    System.exit(1);
                }
            }
View Full Code Here

Examples of io.fathom.auto.haproxy.HaproxyInstance.run()

            @Override
            public void run() {
                HaproxyConfig config = new BoundHaproxyConfig(configStore);
                HaproxyInstance instance = new HaproxyInstance(config);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during haproxy run; forcing exit", e);
                    System.exit(1);
                }
            }
View Full Code Here

Examples of io.fathom.auto.openstack.horizon.HorizonInstance.run()

        Thread horizonThread = new Thread(new Runnable() {
            @Override
            public void run() {
                HorizonInstance instance = new HorizonInstance(configStore);
                try {
                    instance.run();
                } catch (Exception e) {
                    log.error("Error during horizon run; forcing exit", e);
                    System.exit(1);
                }
            }
View Full Code Here

Examples of io.fathom.auto.zookeeper.ZookeeperInstance.run()

                ConfigPath configRoot = configStore.getConfigRoot();
                ConfigPath zkRoot = configRoot.child("zookeeper");

                ZookeeperInstance zk = new ZookeeperInstance(zkRoot);
                try {
                    zk.run();
                } catch (Exception e) {
                    log.error("Error during ZK run; forcing exit", e);
                    System.exit(1);
                }
            }
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.