All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.cosmos.util.UtilBridgeInternal Maven / Gradle / Ivy

Go to download

This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API

There is a newer version: 4.61.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.cosmos.util;

import com.azure.cosmos.implementation.CosmosPagedFluxOptions;
import com.azure.cosmos.implementation.Warning;
import com.azure.cosmos.models.FeedResponse;
import reactor.core.publisher.Flux;

import java.util.function.Function;

import static com.azure.cosmos.implementation.Warning.INTERNAL_USE_ONLY_WARNING;

/**
 * DO NOT USE.
 * This is meant to be used only internally as a bridge access to classes in
 * com.azure.cosmos.util package
 **/
@Warning(value = INTERNAL_USE_ONLY_WARNING)
public final class UtilBridgeInternal {

    private UtilBridgeInternal() {}

    @Warning(value = INTERNAL_USE_ONLY_WARNING)
    public static  CosmosPagedFlux createCosmosPagedFlux(Function>> pagedFluxOptionsFluxFunction) {
        return new CosmosPagedFlux<>(pagedFluxOptionsFluxFunction);
    }

    @Warning(value = INTERNAL_USE_ONLY_WARNING)
    public static  CosmosPagedIterable createCosmosPagedIterable(CosmosPagedFlux cosmosPagedFlux) {
        return new CosmosPagedIterable<>(cosmosPagedFlux);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy