StacClient.ReplacePartitionType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ReplacePartitionType(String, RequestContent, RequestContext) |
[Protocol Method] Updates partition type for a GeoCatalog Collection. This will determine the partitioning scheme for items within the database, and can only be set before any items are loaded. Ideal partitioning schemes result in partitions of roughly 100k items each. The default partitioning scheme is "none" which does not partition items.
|
| ReplacePartitionType(String, PartitionKind, CancellationToken) |
Updates partition type for a GeoCatalog Collection. This will determine the partitioning scheme for items within the database, and can only be set before any items are loaded. Ideal partitioning schemes result in partitions of roughly 100k items each. The default partitioning scheme is "none" which does not partition items. |
ReplacePartitionType(String, RequestContent, RequestContext)
- Source:
- StacClient.cs
[Protocol Method] Updates partition type for a GeoCatalog Collection. This will determine the partitioning scheme for items within the database, and can only be set before any items are loaded. Ideal partitioning schemes result in partitions of roughly 100k items each. The default partitioning scheme is "none" which does not partition items.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response ReplacePartitionType(string collectionId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member ReplacePartitionType : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.ReplacePartitionType : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function ReplacePartitionType (collectionId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response
Parameters
- collectionId
- String
Unique identifier for the STAC collection.
- content
- RequestContent
The content to send as the body of the request.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
collectionId or content is null.
collectionId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
ReplacePartitionType(String, PartitionKind, CancellationToken)
- Source:
- StacClient.cs
Updates partition type for a GeoCatalog Collection. This will determine the partitioning scheme for items within the database, and can only be set before any items are loaded. Ideal partitioning schemes result in partitions of roughly 100k items each. The default partitioning scheme is "none" which does not partition items.
public virtual Azure.Response ReplacePartitionType(string collectionId, Azure.Analytics.PlanetaryComputer.PartitionKind body, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplacePartitionType : string * Azure.Analytics.PlanetaryComputer.PartitionKind * System.Threading.CancellationToken -> Azure.Response
override this.ReplacePartitionType : string * Azure.Analytics.PlanetaryComputer.PartitionKind * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function ReplacePartitionType (collectionId As String, body As PartitionKind, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- collectionId
- String
Unique identifier for the STAC collection.
- body
- PartitionKind
Partition type configuration determining how items are partitioned in storage.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
collectionId or body is null.
collectionId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.