Package org.locationtech.geogig.storage

Examples of org.locationtech.geogig.storage.BulkOpListener


    private List<Future<Integer>> insertBlobs(final FeatureSource source, final Query baseQuery,
            final ExecutorService executorService, final ProgressListener listener,
            final @Nullable Long collectionSize, int nTasks, RevTreeBuilder2 builder) {

        int partitionSize = 0;
        BulkOpListener bulkOpListener;
        if (collectionSize == null) {
            nTasks = 1;
            partitionSize = Integer.MAX_VALUE;
            bulkOpListener = BulkOpListener.NOOP_LISTENER;
        } else {
            final int total = collectionSize.intValue();
            partitionSize = total / nTasks;
            bulkOpListener = new BulkOpListener() {
                int inserted = 0;

                @Override
                public synchronized void inserted(ObjectId object,
                        @Nullable Integer storageSizeBytes) {
View Full Code Here


     * @return the number of objects parsed from the input stream
     */
    public IngestResults ingest(final InputStream in, final Callback callback) {
        Iterator<RevObject> objects = streamToObjects(in);

        BulkOpListener listener = new BulkOpListener() {
            @Override
            public void inserted(final ObjectId objectId, @Nullable Integer storageSizeBytes) {
                callback.callback(new Supplier<RevObject>() {
                    @Override
                    public RevObject get() {
View Full Code Here

            return deleted;
        }

        public long deleteAll(Iterator<ObjectId> ids, BulkOpListener listener, ObjectDatabase db) {

            final BulkOpListener invalidatingListener = new BulkOpListener() {

                final Cache<ObjectId, RevObject> cache = cacheProvider.get().get();

                @Override
                public void deleted(ObjectId id) {
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.storage.BulkOpListener

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.