Struct gapi_grpc::google::firestore::v1::PartitionQueryRequest[][src]

pub struct PartitionQueryRequest {
    pub parent: String,
    pub partition_count: i64,
    pub page_token: String,
    pub page_size: i32,
    pub query_type: Option<QueryType>,
}

The request for [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery].

Fields

parent: String

Required. The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents. Document resource names are not supported; only database resource names can be specified.

partition_count: i64

The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer.

For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.

page_token: String

The next_page_token value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets.

For example, two subsequent calls using a page_token may return:

To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W

page_size: i32

The maximum number of partitions to return in this call, subject to partition_count.

For example, if partition_count = 10 and page_size = 8, the first call to PartitionQuery will return up to 8 partitions and a next_page_token if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in partition_count.

query_type: Option<QueryType>

The query to partition.

Trait Implementations

impl Clone for PartitionQueryRequest[src]

impl Debug for PartitionQueryRequest[src]

impl Default for PartitionQueryRequest[src]

impl Message for PartitionQueryRequest[src]

impl PartialEq<PartitionQueryRequest> for PartitionQueryRequest[src]

impl StructuralPartialEq for PartitionQueryRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for PartitionQueryRequest

impl Send for PartitionQueryRequest

impl Sync for PartitionQueryRequest

impl Unpin for PartitionQueryRequest

impl UnwindSafe for PartitionQueryRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]