Examples of inserted()


Examples of org.locationtech.geogig.storage.BulkOpListener.CountingListener.inserted()

            try {
                indexDatabase.putAll(objects, BulkOpListener.composite(listener, countingListener));
            } finally {
                features.close();
            }
            return countingListener.inserted();
        }
    }

    /**
     * Inserts a collection of features into the working tree and updates the WORK_HEAD ref.
View Full Code Here

Examples of org.locationtech.geogig.storage.BulkOpListener.CountingListener.inserted()

        if (ids.isEmpty()) {
            return;
        }
        CountingListener countingListener = BulkOpListener.newCountingListener();
        to.putAll(from.getAll(ids), countingListener);
        int inserted = countingListener.inserted();
        progress.setProgress(progress.getProgress() + inserted);
    }

    /**
     * @return the {@link RepositoryWrapper} for this remote
View Full Code Here

Examples of org.locationtech.geogig.storage.BulkOpListener.CountingListener.inserted()

        ObjectDatabase objectDatabase = repository.objectDatabase();
        CountingListener listener = BulkOpListener.newCountingListener();
        objectDatabase.putAll(asObjects, listener);
        LOGGER.info("Ingested %,d objects. Inserted: %,d. Already existing: %,d\n",
                listener.inserted() + listener.found(), listener.inserted(), listener.found());
        this.filtered = readingIterator.isFiltered();
    }

    /**
     * Returns an iterator that calls the {@code callback} for each {@link DiffPacket}'s
View Full Code Here

Examples of org.locationtech.geogig.storage.BulkOpListener.CountingListener.inserted()

        ObjectDatabase objectDatabase = repository.objectDatabase();
        CountingListener listener = BulkOpListener.newCountingListener();
        objectDatabase.putAll(asObjects, listener);
        LOGGER.info("Ingested %,d objects. Inserted: %,d. Already existing: %,d\n",
                listener.inserted() + listener.found(), listener.inserted(), listener.found());
        this.filtered = readingIterator.isFiltered();
    }

    /**
     * Returns an iterator that calls the {@code callback} for each {@link DiffPacket}'s
View Full Code Here

Examples of org.locationtech.geogig.storage.BulkOpListener.CountingListener.inserted()

        };

        CountingListener countingListener = BulkOpListener.newCountingListener();
        listener = BulkOpListener.composite(countingListener, listener);
        database.putAll(objects, listener);
        return new IngestResults(countingListener.inserted(), countingListener.found());
    }

    private Iterator<RevObject> streamToObjects(final InputStream in) {
        return new AbstractIterator<RevObject>() {
            @Override
View Full Code Here

Examples of org.modeshape.jcr.cache.document.SessionNode.Insertions.inserted()

                }
                NodeKey childKey = ref.getKey();
                // Are nodes inserted before this node?
                Insertions insertions = insertionsByBeforeKey.remove(childKey);
                if (insertions != null) {
                    for (ChildReference inserted : insertions.inserted()) {
                        newChildren.add(inserted);
                    }
                }
                if (removals.remove(childKey)) {
                    // The node is removed ...
View Full Code Here

Examples of org.modeshape.jcr.cache.document.SessionNode.Insertions.inserted()

                    Insertions insertionsBeforeActive = insertionsByBeforeKey.get(activeReference.getKey());
                    if (insertionsBeforeActive == null) {
                        toBeInsertedInOrder.addFirst(activeReference);
                        continue;
                    }
                    for (ChildReference referenceBeforeActive : insertionsBeforeActive.inserted()) {
                        if (!toBeInsertedInOrder.contains(referenceBeforeActive)) {
                            toBeInsertedInOrder.add(referenceBeforeActive);
                        }
                    }
                    toBeInsertedInOrder.add(activeReference);
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.