Package at.molindo.esi4j.rebuild

Examples of at.molindo.esi4j.rebuild.Esi4JRebuildSession


      @Override
      public Esi4JRebuildSession execute(Client client, String indexName, OperationContext helper) {
        final TypeMapping mapping = helper.findTypeMapping(type);

        return new Esi4JRebuildSession() {

          private final long _scrollTimeoutSeconds = 60;

          private String _scrollId;
          private boolean _endReached = false;
View Full Code Here


      @Override
      public Esi4JRebuildSession execute(Client client, String indexName, OperationContext helper) {
        final TypeMapping mapping = helper.findTypeMapping(type);

        return new Esi4JRebuildSession() {

          private final long _scrollTimeoutSeconds = 60;

          private String _scrollId;
          private boolean _endReached = false;
View Full Code Here

    // TODO clone store?

    // TODO how to handle events while rebuilding clone?

    for (Class<?> type : types) {
      Esi4JRebuildSession rebuildSession = module.startRebuildSession(type);
      try {
        waitForGreenStatus(index);
        findRebuildProcessor(rebuildSession).rebuild(index, rebuildSession);
      } finally {
        rebuildSession.close();
      }
    }

    // optimize index after rebuild
    index.execute(new Esi4JOperation<Void>() {
View Full Code Here

      @Override
      public Esi4JRebuildSession execute(Client client, String indexName, OperationContext helper) {
        final TypeMapping mapping = helper.findTypeMapping(type);

        return new Esi4JRebuildSession() {

          private final long _scrollTimeoutSeconds = 60;

          private String _scrollId;
          private boolean _endReached = false;
View Full Code Here

    // TODO clone store?

    // TODO how to handle events while rebuilding clone?

    for (Class<?> type : types) {
      Esi4JRebuildSession rebuildSession = module.startRebuildSession(type);
      try {
        waitForGreenStatus(index);
        findRebuildProcessor(rebuildSession).rebuild(index, rebuildSession);

        // update metadata after succesful build
        Object meta = rebuildSession.getMetadata();
        if (meta != null) {
          index.index(meta);
        }

      } finally {
        rebuildSession.close();
      }

    }

    // optimize index after rebuild
View Full Code Here

TOP

Related Classes of at.molindo.esi4j.rebuild.Esi4JRebuildSession

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.