Container Interface
Implements
public interface Container
implements Annotation
Annotation for Cosmos Container
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract boolean |
autoCreateContainer()
To set if create container automatically |
abstract boolean |
autoScale()
To enable auto scale for container RU limit |
abstract String |
containerName()
To set container name |
abstract String[] |
hierarchicalPartitionKeyPaths()
To set the partition key definition for container Should only be used for hierarchical partition key scenario. |
abstract String |
partitionKeyPath()
To set the partition key definition for container Should only be used for nested partition key scenario. |
abstract String |
ru()
To set request unit |
abstract int |
timeToLive()
To set the ttl of container level |
Method Details
autoCreateContainer
public abstract boolean autoCreateContainer()
To set if create container automatically
Returns:
autoScale
public abstract boolean autoScale()
To enable auto scale for container RU limit
Returns:
containerName
public abstract String containerName()
To set container name
Returns:
hierarchicalPartitionKeyPaths
public abstract String[] hierarchicalPartitionKeyPaths()
To set the partition key definition for container Should only be used for hierarchical partition key scenario. For general partition key support, use the PartitionKey annotation By default PartitionKey annotation will take precedence, unless not specified.
Returns:
partitionKeyPath
public abstract String partitionKeyPath()
To set the partition key definition for container Should only be used for nested partition key scenario. For general partition key support, use the PartitionKey annotation By default PartitionKey annotation will take precedence, unless not specified.
Returns:
ru
public abstract String ru()
To set request unit
Returns:
timeToLive
public abstract int timeToLive()
To set the ttl of container level
Returns:
Applies to
Azure SDK for Java