Examples of iterateAll()


Examples of org.apache.mahout.math.SparseRowMatrix.iterateAll()

    info.append('\n');

    log.info(info.toString());

    RunningAverage avg = new FullRunningAverage();
    Iterator<MatrixSlice> sliceIterator = preferences.iterateAll();
    while (sliceIterator.hasNext()) {
      MatrixSlice slice = sliceIterator.next();
      Iterator<Vector.Element> elementIterator = slice.vector().iterateNonZero();
      while (elementIterator.hasNext()) {
        Vector.Element e = elementIterator.next();
View Full Code Here

Examples of org.apache.mahout.math.SparseRowMatrix.iterateAll()

    info.append('\n');

    log.info(info.toString());

    RunningAverage avg = new FullRunningAverage();
    Iterator<MatrixSlice> sliceIterator = preferences.iterateAll();
    while (sliceIterator.hasNext()) {
      MatrixSlice slice = sliceIterator.next();
      for (Vector.Element e : slice.vector()) {
        if (!Double.isNaN(e.get())) {
          double pref = e.get();
View Full Code Here

Examples of org.openrdf.sail.nativerdf.btree.BTree.iterateAll()

        // Use the cached set of updated triples
        iter = updatedTriplesCache.getRecords();
      }
      else {
        // Cache is invalid; too much updates(?). Iterate over all triples
        iter = btree.iterateAll();
      }

      try {
        byte[] data = null;
        while ((data = iter.next()) != null) {
View Full Code Here

Examples of org.openrdf.sail.nativerdf.btree.BTree.iterateAll()

        // Use the cached set of updated triples
        iter = updatedTriplesCache.getRecords();
      }
      else {
        // Cache is invalid; too much updates(?). Iterate over all triples
        iter = btree.iterateAll();
      }

      try {
        byte[] data = null;
        while ((data = iter.next()) != null) {
View Full Code Here

Examples of org.openrdf.sail.nativerdf.btree.BTree.iterateAll()

        // Use the cached set of updated triples
        iter = updatedTriplesCache.getRecords();
      }
      else {
        // Cache is invalid; too much updates(?). Iterate over all triples
        iter = btree.iterateAll();
      }

      try {
        byte[] data = null;
        while ((data = iter.next()) != null) {
View Full Code Here

Examples of org.openrdf.sail.nativerdf.btree.BTree.iterateAll()

        // Use the cached set of updated triples
        iter = updatedTriplesCache.getRecords();
      }
      else {
        // Cache is invalid; too much updates(?). Iterate over all triples
        iter = btree.iterateAll();
      }

      try {
        byte[] data = null;
        while ((data = iter.next()) != null) {
View Full Code Here

Examples of org.terasology.engine.ComponentSystemManager.iterateAll()

    private void startSaving() {
        logger.info("Saving - Creating game snapshot");
        PerformanceMonitor.startActivity("Auto Saving");
        ComponentSystemManager componentSystemManager = CoreRegistry.get(ComponentSystemManager.class);
        for (ComponentSystem sys : componentSystemManager.iterateAll()) {
            sys.preSave();
        }

        saveRequested = false;
        saveTransaction = createSaveTransaction();
View Full Code Here

Examples of org.terasology.engine.ComponentSystemManager.iterateAll()

        saveRequested = false;
        saveTransaction = createSaveTransaction();
        saveThreadManager.offer(saveTransaction);

        for (ComponentSystem sys : componentSystemManager.iterateAll()) {
            sys.postSave();
        }
        scheduleNextAutoSave();
        PerformanceMonitor.endActivity();
        logger.info("Saving - Snapshot created: Writing phase starts");
View Full Code Here

Examples of org.terasology.engine.ComponentSystemManager.iterateAll()

    }

    @Override
    public void begin() {
        ComponentSystemManager csm = CoreRegistry.get(ComponentSystemManager.class);
        componentSystems = csm.iterateAll().iterator();
    }

    @Override
    public int getExpectedCost() {
        return 1;
View Full Code Here

Examples of org.terasology.engine.ComponentSystemManager.iterateAll()

    }

    @Override
    public void begin() {
        ComponentSystemManager csm = CoreRegistry.get(ComponentSystemManager.class);
        componentSystems = csm.iterateAll().iterator();
    }

    @Override
    public int getExpectedCost() {
        return 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.