pub type SequencesResource = Resource<Sequence>;Expand description
A sequence stores a table with up to 400 columns indexed by row number. There can be at most 400 numeric columns and 200 string columns. Each of the columns has a pre-defined type: a string, integer, or floating point number.
Aliased Type§
pub struct SequencesResource {
pub api_client: Arc<ApiClient>,
/* private fields */
}Fields§
§api_client: Arc<ApiClient>A reference to the shared API Client.
Implementations§
Source§impl SequencesResource
impl SequencesResource
Sourcepub async fn insert_rows(&self, rows: &[InsertSequenceRows]) -> Result<()>
pub async fn insert_rows(&self, rows: &[InsertSequenceRows]) -> Result<()>
Sourcepub async fn retrieve_rows(
&self,
query: RetrieveSequenceRows,
) -> Result<RetrieveSequenceRowsResponse>
pub async fn retrieve_rows( &self, query: RetrieveSequenceRows, ) -> Result<RetrieveSequenceRowsResponse>
Sourcepub async fn retrieve_last_row(
&self,
query: RetrieveLastSequenceRow,
) -> Result<RetrieveSequenceRowsResponse>
pub async fn retrieve_last_row( &self, query: RetrieveLastSequenceRow, ) -> Result<RetrieveSequenceRowsResponse>
Retrieve the last row from a sequence. The last row is the one with the highest row number, not necessarily the one that was ingested the most recently.
§Arguments
query- Sequence row retrieval query.
Sourcepub async fn delete_rows(&self, query: &[DeleteSequenceRows]) -> Result<()>
pub async fn delete_rows(&self, query: &[DeleteSequenceRows]) -> Result<()>
Trait Implementations§
Source§impl Create<AddSequence, Sequence> for SequencesResource
impl Create<AddSequence, Sequence> for SequencesResource
Source§fn create(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn create( &self, creates: &[TCreate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Create a list of resources. Read more
Source§fn create_from(
&self,
creates: &[impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn create_from( &self, creates: &[impl Into<TCreate> + Sync + Clone], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Create a list of resources, converting from a different type. Read more
Source§fn create_ignore_duplicates(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
fn create_ignore_duplicates(
&self,
creates: &[TCreate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
Create a list of resources, ignoring any that fail with general “conflict” errors. Read more
Source§fn create_from_ignore_duplicates<'a, T: 'a>(
&self,
creates: &'a [impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
fn create_from_ignore_duplicates<'a, T: 'a>(
&self,
creates: &'a [impl Into<TCreate> + Sync + Clone],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TCreate: EqIdentity,
Create a list of resources, converting from a different type, and ignoring any that fail
with general “conflict” errors. Read more
Source§impl<R> DeleteWithIgnoreUnknownIds<IdentityList<R>> for SequencesResource
impl<R> DeleteWithIgnoreUnknownIds<IdentityList<R>> for SequencesResource
Source§impl FilterWithRequest<SequenceFilterRequest, Sequence> for SequencesResource
impl FilterWithRequest<SequenceFilterRequest, Sequence> for SequencesResource
Source§fn filter(
&self,
filter: TFilter,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter( &self, filter: TFilter, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources. Read more
Source§fn filter_all(
&self,
filter: TFilter,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all( &self, filter: TFilter, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources, following cursors until they are exhausted. Read more
Source§fn filter_all_stream(
&self,
filter: TFilter,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn filter_all_stream( &self, filter: TFilter, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
Filter resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§fn filter_all_partitioned(
&self,
filter: TFilter,
num_partitions: u32,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all_partitioned( &self, filter: TFilter, num_partitions: u32, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources using partitioned reads, following cursors until all partitions are
exhausted. Read more
Source§impl<R> RetrieveWithIgnoreUnknownIds<IdentityList<R>, Sequence> for SequencesResource
impl<R> RetrieveWithIgnoreUnknownIds<IdentityList<R>, Sequence> for SequencesResource
Source§impl SearchItems<'_, SequenceFilter, SequenceSearch, Sequence> for SequencesResource
impl SearchItems<'_, SequenceFilter, SequenceSearch, Sequence> for SequencesResource
Source§impl Update<Patch<PatchSequence>, Sequence> for SequencesResource
impl Update<Patch<PatchSequence>, Sequence> for SequencesResource
Source§fn update(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources. Read more
Source§fn update_from<'a, T>(
&self,
updates: &'a [T],
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Update a list of resources by converting to the update from a different type. Read more
Source§fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
fn update_ignore_unknown_ids(
&self,
updates: &[TUpdate],
) -> impl Future<Output = Result<Vec<TResponse>>> + Sendwhere
TUpdate: EqIdentity,
TResponse: Send,
Update a list of resources, ignoring any that fail due to items missing in CDF. Read more