Struct aws_sdk_dynamodb::output::query_output::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for QueryOutput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn items(self, input: HashMap<String, AttributeValue>) -> Self
pub fn items(self, input: HashMap<String, AttributeValue>) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
sourcepub fn set_items(
self,
input: Option<Vec<HashMap<String, AttributeValue>>>
) -> Self
pub fn set_items(
self,
input: Option<Vec<HashMap<String, AttributeValue>>>
) -> Self
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The number of items in the response.
If you used a QueryFilter
in the request, then Count
is the number of items returned after the filter was applied, and ScannedCount
is the number of matching items before the filter was applied.
If you did not use a filter in the request, then Count
and ScannedCount
are the same.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of items in the response.
If you used a QueryFilter
in the request, then Count
is the number of items returned after the filter was applied, and ScannedCount
is the number of matching items before the filter was applied.
If you did not use a filter in the request, then Count
and ScannedCount
are the same.
sourcepub fn scanned_count(self, input: i32) -> Self
pub fn scanned_count(self, input: i32) -> Self
The number of items evaluated, before any QueryFilter
is applied. A high ScannedCount
value with few, or no, Count
results indicates an inefficient Query
operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.
If you did not use a filter in the request, then ScannedCount
is the same as Count
.
sourcepub fn set_scanned_count(self, input: Option<i32>) -> Self
pub fn set_scanned_count(self, input: Option<i32>) -> Self
The number of items evaluated, before any QueryFilter
is applied. A high ScannedCount
value with few, or no, Count
results indicates an inefficient Query
operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.
If you did not use a filter in the request, then ScannedCount
is the same as Count
.
sourcepub fn last_evaluated_key(self, k: impl Into<String>, v: AttributeValue) -> Self
pub fn last_evaluated_key(self, k: impl Into<String>, v: AttributeValue) -> Self
Adds a key-value pair to last_evaluated_key
.
To override the contents of this collection use set_last_evaluated_key
.
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.
If LastEvaluatedKey
is empty, then the "last page" of results has been processed and there is no more data to be retrieved.
If LastEvaluatedKey
is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey
is empty.
sourcepub fn set_last_evaluated_key(
self,
input: Option<HashMap<String, AttributeValue>>
) -> Self
pub fn set_last_evaluated_key(
self,
input: Option<HashMap<String, AttributeValue>>
) -> Self
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.
If LastEvaluatedKey
is empty, then the "last page" of results has been processed and there is no more data to be retrieved.
If LastEvaluatedKey
is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey
is empty.
sourcepub fn consumed_capacity(self, input: ConsumedCapacity) -> Self
pub fn consumed_capacity(self, input: ConsumedCapacity) -> Self
The capacity units consumed by the Query
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
sourcepub fn set_consumed_capacity(self, input: Option<ConsumedCapacity>) -> Self
pub fn set_consumed_capacity(self, input: Option<ConsumedCapacity>) -> Self
The capacity units consumed by the Query
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
sourcepub fn build(self) -> QueryOutput
pub fn build(self) -> QueryOutput
Consumes the builder and constructs a QueryOutput
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more