public class CosmosContainer extends CosmosResource
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<CosmosItemResponse> |
createItem(Object item)
Creates a cosmos item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
createItem(Object item,
CosmosItemRequestOptions options)
Creates a cosmos item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
createItem(Object item,
Object partitionKey)
Creates a cosmos item.
|
reactor.core.publisher.Mono<CosmosStoredProcedureResponse> |
createStoredProcedure(CosmosStoredProcedureSettings settings,
CosmosStoredProcedureRequestOptions options)
Creates a cosmos stored procedure.
|
reactor.core.publisher.Mono<CosmosTriggerResponse> |
createTrigger(CosmosTriggerSettings settings,
CosmosRequestOptions options)
Creates a Cosmos trigger.
|
reactor.core.publisher.Mono<CosmosUserDefinedFunctionResponse> |
createUserDefinedFunction(CosmosUserDefinedFunctionSettings settings,
CosmosRequestOptions options)
Creates a cosmos user defined function.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
delete()
Deletes the item container
After subscription the operation will be performed.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
delete(CosmosContainerRequestOptions requestOptions)
Deletes the item container
After subscription the operation will be performed.
|
CosmosDatabase |
getDatabase()
Gets the parent Database
|
CosmosItem |
getItem(String id)
Gets a CosmosItem object without making a service call
|
protected String |
getParentLink() |
protected String |
getURIPathSegment() |
reactor.core.publisher.Flux<FeedResponse<CosmosItem>> |
listItems()
Reads all cosmos items in the container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosItem>> |
listItems(FeedOptions options)
Reads all cosmos items in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> |
listStoredProcedures(FeedOptions options)
Reads all cosmos stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> |
listTriggers(FeedOptions options)
Reads all triggers in a container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> |
listUserDefinedFunctions(FeedOptions options)
Reads all cosmos user defined functions in the container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosItem>> |
queryItems(SqlQuerySpec querySpec,
FeedOptions options)
Query for documents in a items in a container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosItem>> |
queryItems(String query,
FeedOptions options)
Query for documents in a items in a container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> |
queryStoredProcedures(SqlQuerySpec querySpec,
FeedOptions options)
Query for stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> |
queryStoredProcedures(String query,
FeedOptions options)
Query for stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> |
queryTriggers(SqlQuerySpec querySpec,
FeedOptions options)
Query for triggers in the container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> |
queryTriggers(String query,
FeedOptions options)
Query for triggers in the container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> |
queryUserDefinedFunctions(SqlQuerySpec querySpec,
FeedOptions options)
Query for user defined functions in the container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> |
queryUserDefinedFunctions(String query,
FeedOptions options)
Query for user defined functions in the container.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
read()
Reads the document container
After subscription the operation will be performed.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
read(CosmosContainerRequestOptions requestOptions)
Reads the document container by the container link.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
replace(CosmosContainerSettings containerSettings,
CosmosContainerRequestOptions requestOptions)
Replaces a document container.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
upsertItem(Object item,
CosmosItemRequestOptions options)
Upserts a cosmos item.
|
getId, setId, validateResourcepublic reactor.core.publisher.Mono<CosmosContainerResponse> read()
Mono upon successful completion will contain a single cossmos container response with the read
container.
In case of failure the Mono will error.Mono containing the single cossmos container response with the read container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> read(CosmosContainerRequestOptions requestOptions)
Mono upon successful completion will contain a single cossmos container response with the read container.
In case of failure the Mono will error.Mono containing the single cossmos container response with the read container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> delete(CosmosContainerRequestOptions requestOptions)
Mono upon successful completion will contain a single cossmos container response for the deleted database.
In case of failure the Mono will error.requestOptions - the request options.Mono containing the single cossmos container response for the deleted database or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> delete()
Mono upon successful completion will contain a single cosmos container response for the deleted container.
In case of failure the Mono will error.Mono containing the single cossmos container response for the deleted container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> replace(CosmosContainerSettings containerSettings, CosmosContainerRequestOptions requestOptions)
Mono upon successful completion will contain a single cossmos container response with the replaced document container.
In case of failure the Mono will error.containerSettings - the item container settingsrequestOptions - the cosmos container request options.Mono containing the single cossmos container response with the replaced document container or an error.public reactor.core.publisher.Mono<CosmosItemResponse> createItem(Object item)
Mono upon successful completion will contain a single resource response with the created cosmos item.
In case of failure the Mono will error.item - the cosmos item represented as a POJO or cosmos item object.Mono containing the single resource response with the created cosmos item or an error.public reactor.core.publisher.Mono<CosmosItemResponse> createItem(Object item, Object partitionKey)
Mono upon successful completion will contain a single resource response with the created cosmos item.
In case of failure the Mono will error.item - the cosmos item represented as a POJO or cosmos item object.partitionKey - the partition keyMono containing the single resource response with the created cosmos item or an error.public reactor.core.publisher.Mono<CosmosItemResponse> createItem(Object item, CosmosItemRequestOptions options)
Mono upon successful completion will contain a single resource response with the created cosmos item.
In case of failure the Mono will error.item - the cosmos item represented as a POJO or cosmos item object.options - the request options.Mono containing the single resource response with the created cosmos item or an error.public reactor.core.publisher.Mono<CosmosItemResponse> upsertItem(Object item, CosmosItemRequestOptions options)
Mono upon successful completion will contain a single resource response with the upserted item.
In case of failure the Mono will error.item - the item represented as a POJO or Item object to upsert.options - the request options.Mono containing the single resource response with the upserted document or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosItem>> listItems()
Flux will contain one or several feed response of the read cosmos items.
In case of failure the Flux will error.Flux containing one or several feed response pages of the read cosmos items or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosItem>> listItems(FeedOptions options)
Flux will contain one or several feed response of the read cosmos items.
In case of failure the Flux will error.options - the feed options.Flux containing one or several feed response pages of the read cosmos items or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosItem>> queryItems(String query, FeedOptions options)
Flux will contain one or several feed response of the obtained items.
In case of failure the Flux will error.query - the query.options - the feed options.Flux containing one or several feed response pages of the obtained items or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosItem>> queryItems(SqlQuerySpec querySpec, FeedOptions options)
Flux will contain one or several feed response of the obtained items.
In case of failure the Flux will error.querySpec - the SQL query specification.options - the feed options.Flux containing one or several feed response pages of the obtained items or an error.public CosmosItem getItem(String id)
id - id of the itempublic reactor.core.publisher.Mono<CosmosStoredProcedureResponse> createStoredProcedure(CosmosStoredProcedureSettings settings, CosmosStoredProcedureRequestOptions options)
Mono upon successful completion will contain a single cosmos stored procedure response with the
created cosmos stored procedure.
In case of failure the Mono will error.settings - the cosmos stored procedure settings.options - the stored procedure request options.Mono containing the single cosmos stored procedure resource response or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> listStoredProcedures(FeedOptions options)
Flux will contain one or several feed response pages of the read cosmos stored procedure settings.
In case of failure the Flux will error.options - the feed options.Flux containing one or several feed response pages of the read cosmos stored procedures
settings or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> queryStoredProcedures(String query, FeedOptions options)
Flux will contain one or several feed response pages of the obtained stored procedures.
In case of failure the Flux will error.query - the the query.options - the feed options.Flux containing one or several feed response pages of the obtained stored procedures or
an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureSettings>> queryStoredProcedures(SqlQuerySpec querySpec, FeedOptions options)
Flux will contain one or several feed response pages of the obtained stored procedures.
In case of failure the Flux will error.querySpec - the SQL query specification.options - the feed options.Flux containing one or several feed response pages of the obtained stored procedures or
an error.public reactor.core.publisher.Mono<CosmosUserDefinedFunctionResponse> createUserDefinedFunction(CosmosUserDefinedFunctionSettings settings, CosmosRequestOptions options)
Mono upon successful completion will contain a single cosmos user defined function response.
In case of failure the Mono will error.settings - the cosmos user defined function settingsoptions - the cosmos request options.Mono containing the single resource response with the created user defined function or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> listUserDefinedFunctions(FeedOptions options)
Flux will contain one or several feed response pages of the read user defined functions.
In case of failure the Flux will error.options - the feed options.Flux containing one or several feed response pages of the read user defined functions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> queryUserDefinedFunctions(String query, FeedOptions options)
Flux will contain one or several feed response pages of the obtained user defined functions.
In case of failure the Flux will error.query - the query.options - the feed options.Flux containing one or several feed response pages of the obtained user defined functions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionSettings>> queryUserDefinedFunctions(SqlQuerySpec querySpec, FeedOptions options)
Flux will contain one or several feed response pages of the obtained user defined functions.
In case of failure the Flux will error.querySpec - the SQL query specification.options - the feed options.Flux containing one or several feed response pages of the obtained user defined functions or an error.public reactor.core.publisher.Mono<CosmosTriggerResponse> createTrigger(CosmosTriggerSettings settings, CosmosRequestOptions options)
Mono upon successful completion will contain a cosmos trigger response
In case of failure the Mono will error.options - the request options.Mono containing the single resource response with the created trigger or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> listTriggers(FeedOptions options)
Flux will contain one or several feed response pages of the read cosmos trigger settings.
In case of failure the Flux will error.options - the feed options.Flux containing one or several feed response pages of the read cosmos rigger settings or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> queryTriggers(String query, FeedOptions options)
Flux will contain one or several feed response pages of the obtained triggers.
In case of failure the Flux will error.query - the query.options - the feed options.Flux containing one or several feed response pages of the obtained triggers or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerSettings>> queryTriggers(SqlQuerySpec querySpec, FeedOptions options)
Flux will contain one or several feed response pages of the obtained triggers.
In case of failure the Flux will error.querySpec - the SQL query specification.options - the feed options.Flux containing one or several feed response pages of the obtained triggers or an error.public CosmosDatabase getDatabase()
protected String getURIPathSegment()
getURIPathSegment in class CosmosResourceprotected String getParentLink()
getParentLink in class CosmosResourceCopyright © 2019. All rights reserved.