pub struct PutRecord { /* private fields */ }
Expand description
Fluent builder constructing a request to PutRecord
.
Used for data ingestion into the FeatureStore
. The PutRecord
API writes to both the OnlineStore
and OfflineStore
. If the record is the latest record for the recordIdentifier
, the record is written to both the OnlineStore
and OfflineStore
. If the record is a historic record, it is written only to the OfflineStore
.
Implementations
sourceimpl PutRecord
impl PutRecord
sourcepub async fn send(self) -> Result<PutRecordOutput, SdkError<PutRecordError>>
pub async fn send(self) -> Result<PutRecordOutput, SdkError<PutRecordError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn feature_group_name(self, input: impl Into<String>) -> Self
pub fn feature_group_name(self, input: impl Into<String>) -> Self
The name of the feature group that you want to insert the record into.
sourcepub fn set_feature_group_name(self, input: Option<String>) -> Self
pub fn set_feature_group_name(self, input: Option<String>) -> Self
The name of the feature group that you want to insert the record into.
sourcepub fn record(self, input: FeatureValue) -> Self
pub fn record(self, input: FeatureValue) -> Self
Appends an item to Record
.
To override the contents of this collection use set_record
.
List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:
-
Use
GetRecord
to retrieve the latest record. -
Update the record returned from
GetRecord
. -
Use
PutRecord
to update feature values.
sourcepub fn set_record(self, input: Option<Vec<FeatureValue>>) -> Self
pub fn set_record(self, input: Option<Vec<FeatureValue>>) -> Self
List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:
-
Use
GetRecord
to retrieve the latest record. -
Update the record returned from
GetRecord
. -
Use
PutRecord
to update feature values.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PutRecord
impl Send for PutRecord
impl Sync for PutRecord
impl Unpin for PutRecord
impl !UnwindSafe for PutRecord
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