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);
}
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();
}
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);
}
Aggregations