pub struct Index {Show 16 fields
pub id: IndexId,
pub schema_id: SchemaId,
pub database_id: DatabaseId,
pub name: String,
pub owner: u32,
pub index_table_id: TableId,
pub primary_table_id: TableId,
pub index_item: Vec<ExprNode>,
pub index_column_properties: Vec<IndexColumnProperties>,
pub initialized_at_epoch: Option<u64>,
pub created_at_epoch: Option<u64>,
pub stream_job_status: i32,
pub index_columns_len: u32,
pub initialized_at_cluster_version: Option<String>,
pub created_at_cluster_version: Option<String>,
pub create_type: i32,
}Fields§
§id: IndexId§schema_id: SchemaId§database_id: DatabaseId§name: String§owner: u32§index_table_id: TableId§primary_table_id: TableId§index_item: Vec<ExprNode>Only InputRef type index is supported Now.
The index of InputRef is the column index of the primary table.
index_column_properties: Vec<IndexColumnProperties>§initialized_at_epoch: Option<u64>§created_at_epoch: Option<u64>§stream_job_status: i32§index_columns_len: u32Use to record the prefix len of the index_item to reconstruct index columns provided by users.
initialized_at_cluster_version: Option<String>Cluster version (tracked by git commit) when initialized/created
created_at_cluster_version: Option<String>§create_type: i32Whether it should use background ddl or block until backfill finishes.
Implementations§
Source§impl Index
impl Index
Sourcepub fn initialized_at_epoch(&self) -> u64
pub fn initialized_at_epoch(&self) -> u64
Returns the value of initialized_at_epoch, or the default value if initialized_at_epoch is unset.
Sourcepub fn created_at_epoch(&self) -> u64
pub fn created_at_epoch(&self) -> u64
Returns the value of created_at_epoch, or the default value if created_at_epoch is unset.
Sourcepub fn stream_job_status(&self) -> StreamJobStatus
pub fn stream_job_status(&self) -> StreamJobStatus
Returns the enum value of stream_job_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stream_job_status(&mut self, value: StreamJobStatus)
pub fn set_stream_job_status(&mut self, value: StreamJobStatus)
Sets stream_job_status to the provided enum value.
Sourcepub fn initialized_at_cluster_version(&self) -> &str
pub fn initialized_at_cluster_version(&self) -> &str
Returns the value of initialized_at_cluster_version, or the default value if initialized_at_cluster_version is unset.
Sourcepub fn created_at_cluster_version(&self) -> &str
pub fn created_at_cluster_version(&self) -> &str
Returns the value of created_at_cluster_version, or the default value if created_at_cluster_version is unset.
Sourcepub fn create_type(&self) -> CreateType
pub fn create_type(&self) -> CreateType
Returns the enum value of create_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_create_type(&mut self, value: CreateType)
pub fn set_create_type(&mut self, value: CreateType)
Sets create_type to the provided enum value.
Source§impl Index
impl Index
pub fn get_id(&self) -> IndexId
pub fn get_schema_id(&self) -> SchemaId
pub fn get_database_id(&self) -> DatabaseId
pub fn get_name(&self) -> &String
pub fn get_owner(&self) -> u32
pub fn get_index_table_id(&self) -> TableId
pub fn get_primary_table_id(&self) -> TableId
pub fn get_index_item(&self) -> &Vec<ExprNode>
pub fn get_index_column_properties(&self) -> &Vec<IndexColumnProperties>
pub fn get_initialized_at_epoch(&self) -> Result<&u64, PbFieldNotFound>
pub fn get_created_at_epoch(&self) -> Result<&u64, PbFieldNotFound>
pub fn get_stream_job_status(&self) -> Result<StreamJobStatus, PbFieldNotFound>
pub fn get_index_columns_len(&self) -> u32
pub fn get_initialized_at_cluster_version( &self, ) -> Result<&String, PbFieldNotFound>
pub fn get_created_at_cluster_version(&self) -> Result<&String, PbFieldNotFound>
pub fn get_create_type(&self) -> Result<CreateType, PbFieldNotFound>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for Index
impl Message for Index
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request