Examples of cost()


Examples of org.apache.lucene.search.DocIdSetIterator.cost()

      if (dims[dim].bits == null) {
        disis[disiUpto] = disi;
        sidewaysCollectors[disiUpto] = dims[dim].sidewaysCollector;
        disiUpto++;
        if (disi != null) {
          drillDownCost += disi.cost();
        }
      } else {
        bits[bitsUpto] = dims[dim].bits;
        bitsSidewaysCollectors[bitsUpto] = dims[dim].sidewaysCollector;
        bitsUpto++;
View Full Code Here

Examples of org.apache.lucene.search.DocIdSetIterator.cost()

            for (DocIdSet set : sets) {
                DocIdSetIterator iterator = set.iterator();
                broken |= DocIdSets.isBroken(iterator);
                if (iterator != null) {
                    _heap[_size++] = new Item(iterator);
                    cost += iterator.cost();
                }
            }
            this.cost = cost;
            this.broken = broken;
            if (_size == 0) _curDoc = DocIdSetIterator.NO_MORE_DOCS;
View Full Code Here

Examples of org.apache.lucene.search.Scorer.cost()

    private void runFacet(AtomicLongArray counts, SimpleCollector col, int i) throws IOException {
      Scorer scorer = _scorers[i];
      if (scorer != null) {
        Tracer traceInner = Trace.trace("processing facet - segment - scorer", Trace.param("scorer", scorer),
            Trace.param("scorer.cost", scorer.cost()));
        try {
          // new ExitScorer(scorer).score(col);
          scorer.score(col);
        } catch (Finished e) {
          // Do nothing, exiting early.
View Full Code Here

Examples of solver.constraints.nary.automata.FA.utils.ICounter.cost()

    }


    public double getCost(int layer, int value) {
        ICounter zero = counters.get(0);
        return zero.cost(layer, value);
    }

    public double getCostByState(int layer, int value, int state) {
        ICounter zero = counters.get(0);
        return zero.cost(layer, value, state);
View Full Code Here

Examples of solver.constraints.nary.automata.FA.utils.ICounter.cost()

        return zero.cost(layer, value);
    }

    public double getCostByState(int layer, int value, int state) {
        ICounter zero = counters.get(0);
        return zero.cost(layer, value, state);
    }

    public double getCostByResource(int layer, int value, int counter) {
        ICounter aCounter = counters.get(counter);
        return aCounter.cost(layer, value);
View Full Code Here

Examples of solver.constraints.nary.automata.FA.utils.ICounter.cost()

        return zero.cost(layer, value, state);
    }

    public double getCostByResource(int layer, int value, int counter) {
        ICounter aCounter = counters.get(counter);
        return aCounter.cost(layer, value);
    }

    public int getNbResources() {
        return counters.size();
    }
View Full Code Here

Examples of solver.constraints.nary.automata.FA.utils.ICounter.cost()

        return counters.size();
    }

    public double getCostByResourceAndState(int layer, int value, int counter, int state) {
        ICounter aCounter = counters.get(counter);
        return aCounter.cost(layer, value, state);
    }

    @Override
    public List<ICounter> getCounters() {
        return counters;
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.