PartitionResolver Interface
public interface PartitionResolver
This is an interface to be implemented for partitioning scenarios and register it at the document client level in the Azure Cosmos DB database service.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
resolveForCreate(Object document)
Gets the collection Self Link or ID based link on which create operation should be directed |
abstract java.lang.Iterable<java.lang.String> |
resolveForRead(Object partitionKey)
Gets an iterator of strings representing Self |
Method Details
resolveForCreate
public abstract String resolveForCreate(Object document)
Gets the collection Self Link or ID based link on which create operation should be directed
Parameters:
Returns:
resolveForRead
public abstract Iterable
Gets an iterator of strings representing SelfLink(s) or ID based link(s) on which read/query operation should be directed
Parameters:
Returns:
Applies to
Azure SDK for Java
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по