Search in sources :

Example 1 with DeduplicationService

use of org.locationtech.geogig.storage.DeduplicationService in project GeoGig by boundlessgeo.

the class SendPack method getRemoteRepo.

/**
     * @param remote the remote to get
     * @return an interface for the remote repository
     */
@VisibleForTesting
public Optional<IRemoteRepo> getRemoteRepo(Remote remote) {
    Hints remoteHints = new Hints();
    remoteHints.set(Hints.REMOTES_READ_ONLY, Boolean.FALSE);
    Repository localRepository = repository();
    DeduplicationService deduplicationService = context.deduplicationService();
    return RemoteUtils.newRemote(GlobalContextBuilder.builder.build(remoteHints), remote, localRepository, deduplicationService);
}
Also used : Repository(org.locationtech.geogig.repository.Repository) Hints(org.locationtech.geogig.repository.Hints) DeduplicationService(org.locationtech.geogig.storage.DeduplicationService) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Example 2 with DeduplicationService

use of org.locationtech.geogig.storage.DeduplicationService in project GeoGig by boundlessgeo.

the class CreateDeduplicator method _call.

@Override
protected Deduplicator _call() {
    DeduplicationService deduplicationService;
    deduplicationService = context.deduplicationService();
    return deduplicationService.createDeduplicator();
}
Also used : DeduplicationService(org.locationtech.geogig.storage.DeduplicationService)

Example 3 with DeduplicationService

use of org.locationtech.geogig.storage.DeduplicationService in project GeoGig by boundlessgeo.

the class LsRemote method getRemoteRepo.

/**
     * @param remote the remote to get
     * @return an interface for the remote repository
     */
public Optional<IRemoteRepo> getRemoteRepo(Remote remote) {
    Repository localRepository = repository();
    DeduplicationService deduplicationService = context.deduplicationService();
    return RemoteUtils.newRemote(GlobalContextBuilder.builder.build(Hints.readOnly()), remote, localRepository, deduplicationService);
}
Also used : Repository(org.locationtech.geogig.repository.Repository) DeduplicationService(org.locationtech.geogig.storage.DeduplicationService)

Aggregations

DeduplicationService (org.locationtech.geogig.storage.DeduplicationService)3 Repository (org.locationtech.geogig.repository.Repository)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Hints (org.locationtech.geogig.repository.Hints)1