Examples of IndexStatus


Examples of com.dotcms.repackage.org.elasticsearch.action.admin.indices.status.IndexStatus

    }
   
    public static long indexDocumentCount(String indexName) {
        ESIndexAPI esapi = APILocator.getESIndexAPI();
        Map<String, IndexStatus> indexInfo = esapi.getIndicesAndStatus();
        IndexStatus status = indexInfo.get(indexName);
        return (status !=null && status.getDocs() != null) ? status.getDocs().getNumDocs(): 0;
    }
View Full Code Here

Examples of de.torstennahm.integrate.sparse.visualize.IndexStatus

       
        if (primaryCompleted) {
          result.errorEstimate = errorEstimate;
        }
       
        Visualizers.submitToList(visualizers, new IndexStatus(index, "expanded"));
      }
     
      result.supplementalInfo.add(new IntegrationInfo("Indices higher than estimate: " + higherThanEstimate +
          " contribution: " + higherContributions));
     
View Full Code Here

Examples of de.torstennahm.integrate.sparse.visualize.IndexStatus

      result.calls += calls;
      errorEstimate += Math.abs(contribution);
     
      if (Math.abs(contribution) > estimate
      &&  Math.abs(contribution) > MathTN.FUDGE * Math.abs(result.value)) {
        Visualizers.submitToList(visualizers, new IndexStatus(index, ">estimate"));
//        errorEstimate = Double.NaN;    // TODO detection of underestimation should temporarily increase the error estimate
        higherThanEstimate++;
        higherContributions += Math.abs(contribution);
      }
     
View Full Code Here

Examples of de.torstennahm.integrate.sparse.visualize.IndexStatus

     
      IndexData indexData = queue.poll();
      Index index = indexData.index;
     
      indexData.completed = true;
      Visualizers.submitToList(visualizers, new IndexStatus(index, "expanded"));
     
      boolean couldExpandFully = true;
      for (int i = 0; i < dimension; i++) {
        Index succIndex = index.add(i, 1);
        if (isValid(indexMap, succIndex)) {
View Full Code Here

Examples of de.torstennahm.integrate.sparse.visualize.IndexStatus

         
          if (Math.abs(indexData.contribution) > indexData.estimate
          &&  Math.abs(indexData.contribution) > MathTN.FUDGE * Math.abs(result.value)) {
            higherThanEstimate++;
            higherContributions += Math.abs(indexData.contribution);
            Visualizers.submitToList(visualizers, new IndexStatus(index, ">estimate"));
          }
         
          estimator.log(result.calls, result.value);
          result.errorEstimate = estimator.getEstimate();
         
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.