pub struct Index {Show 15 fields
pub id: u32,
pub schema_id: u32,
pub database_id: u32,
pub name: String,
pub owner: u32,
pub index_table_id: u32,
pub primary_table_id: u32,
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>,
}
Fields§
§id: u32
§schema_id: u32
§database_id: u32
§name: String
§owner: u32
§index_table_id: u32
§primary_table_id: u32
§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: u32
Use 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>
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.
source§impl Index
impl Index
pub fn get_id(&self) -> u32
pub fn get_schema_id(&self) -> u32
pub fn get_database_id(&self) -> u32
pub fn get_name(&self) -> &String
pub fn get_owner(&self) -> u32
pub fn get_index_table_id(&self) -> u32
pub fn get_primary_table_id(&self) -> u32
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>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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> 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