public abstract class BaseTransformServiceImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CHUNK_SIZE |
static java.lang.String |
KEY_IS_NOT_SET_PLACE_HOLDER |
protected ReferenceIdToKeyCache |
referenceIdToKeyCache |
Modifier | Constructor and Description |
---|---|
protected |
BaseTransformServiceImpl(io.sphere.sdk.client.SphereClient ctpClient,
ReferenceIdToKeyCache referenceIdToKeyCache) |
Modifier and Type | Method and Description |
---|---|
protected <U extends io.sphere.sdk.models.Resource<U> & io.sphere.sdk.models.WithKey> |
cacheResourceReferenceKeys(java.util.List<U> results) |
protected void |
cacheResourceReferenceKeys(java.util.Set<ResourceKeyId> results) |
protected java.util.List<ResourceIdsGraphQlRequest> |
createResourceIdsGraphQlRequests(java.util.List<java.util.List<java.lang.String>> chunkedIds,
GraphQlQueryResources resourceType) |
protected java.util.concurrent.CompletableFuture<java.lang.Void> |
fetchAndFillReferenceIdToKeyCache(java.util.Set<java.lang.String> ids,
GraphQlQueryResources requestType) |
protected io.sphere.sdk.client.SphereClient |
getCtpClient() |
protected java.util.Set<java.lang.String> |
getNonCachedReferenceIds(java.util.Set<java.lang.String> referenceIds) |
public static final int CHUNK_SIZE
public static final java.lang.String KEY_IS_NOT_SET_PLACE_HOLDER
protected final ReferenceIdToKeyCache referenceIdToKeyCache
protected BaseTransformServiceImpl(@Nonnull io.sphere.sdk.client.SphereClient ctpClient, @Nonnull ReferenceIdToKeyCache referenceIdToKeyCache)
protected io.sphere.sdk.client.SphereClient getCtpClient()
protected java.util.concurrent.CompletableFuture<java.lang.Void> fetchAndFillReferenceIdToKeyCache(@Nonnull java.util.Set<java.lang.String> ids, @Nonnull GraphQlQueryResources requestType)
@Nonnull protected java.util.List<ResourceIdsGraphQlRequest> createResourceIdsGraphQlRequests(@Nonnull java.util.List<java.util.List<java.lang.String>> chunkedIds, @Nonnull GraphQlQueryResources resourceType)
@Nonnull protected java.util.Set<java.lang.String> getNonCachedReferenceIds(@Nonnull java.util.Set<java.lang.String> referenceIds)
protected void cacheResourceReferenceKeys(java.util.Set<ResourceKeyId> results)
protected <U extends io.sphere.sdk.models.Resource<U> & io.sphere.sdk.models.WithKey> void cacheResourceReferenceKeys(java.util.List<U> results)