Examples of prepareFlush()


Examples of com.senseidb.indexing.activity.primitives.ActivityIntValues.prepareFlush()

       
    long time = System.currentTimeMillis();
    for (int i = 0; i < 1000000; i++) {
      boolean update = intValues.update(i, "+1");
      if (update) {
        intValues.prepareFlush().run();
      }     
      if (i%1000000 == 0) {
        System.out.println(i);
      }
    }
View Full Code Here

Examples of org.sonar.server.search.SearchClient.prepareFlush()

  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      searchClient.prepareFlush(IndexDefinition.RULE.getIndexName()).get();

      // expected to fail because elasticsearch is not correctly configured, but that does not matter
      fail();
    } catch (IllegalStateException e) {
      assertThat(e.getMessage()).isEqualTo("Fail to execute ES flush request on indices 'rules'");
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.