CosmosContainer.<T>readAllItems Method

Definition

Overloads

<T>readAllItems(PartitionKey partitionKey, CosmosQueryRequestOptions options, Class<T> classType)

Reads all the items of a logical partition returning the results as CosmosPagedIterable<T>.

<T>readAllItems(PartitionKey partitionKey, Class<T> classType)

Reads all the items of a logical partition returning the results as CosmosPagedIterable<T>.

<T>readAllItems(PartitionKey partitionKey, CosmosQueryRequestOptions options, Class<T> classType)

Reads all the items of a logical partition returning the results as CosmosPagedIterable<T>.

public CosmosPagedIterable<T> <T>readAllItems(PartitionKey partitionKey, CosmosQueryRequestOptions options, Class<T> classType)

Parameters

partitionKey
PartitionKey

the partition key value of the documents that need to be read

options
CosmosQueryRequestOptions

the feed options.

classType
java.lang.Class<T>

the class type.

Returns

<T>readAllItems(PartitionKey partitionKey, Class<T> classType)

Reads all the items of a logical partition returning the results as CosmosPagedIterable<T>.

public CosmosPagedIterable<T> <T>readAllItems(PartitionKey partitionKey, Class<T> classType)

Parameters

partitionKey
PartitionKey

the partition key value of the documents that need to be read

classType
java.lang.Class<T>

the class type.

Returns

Applies to