pub struct AlterTableRequest {Show 21 fields
pub session_id: String,
pub path: String,
pub add_columns: Vec<ColumnMeta>,
pub drop_columns: Vec<String>,
pub operation_params: Option<OperationParams>,
pub alter_columns: Vec<ColumnMeta>,
pub add_indexes: Vec<TableIndex>,
pub drop_indexes: Vec<String>,
pub alter_storage_settings: Option<StorageSettings>,
pub add_column_families: Vec<ColumnFamily>,
pub alter_column_families: Vec<ColumnFamily>,
pub alter_attributes: HashMap<String, String>,
pub set_compaction_policy: String,
pub alter_partitioning_settings: Option<PartitioningSettings>,
pub set_key_bloom_filter: i32,
pub set_read_replicas_settings: Option<ReadReplicasSettings>,
pub add_changefeeds: Vec<Changefeed>,
pub drop_changefeeds: Vec<String>,
pub rename_indexes: Vec<RenameIndexItem>,
pub ttl_action: Option<TtlAction>,
pub tiering_action: Option<TieringAction>,
}
Expand description
Alter table with given path
Fields§
§session_id: String
Session identifier
path: String
Full path
add_columns: Vec<ColumnMeta>
Columns (name, type) to add
drop_columns: Vec<String>
Columns to remove
operation_params: Option<OperationParams>
§alter_columns: Vec<ColumnMeta>
Columns to alter
add_indexes: Vec<TableIndex>
Add secondary indexes
drop_indexes: Vec<String>
Remove secondary indexes
alter_storage_settings: Option<StorageSettings>
Change table storage settings
add_column_families: Vec<ColumnFamily>
Add/alter column families
alter_column_families: Vec<ColumnFamily>
§alter_attributes: HashMap<String, String>
Alter attributes. Leave the value blank to drop an attribute. Cannot be used in combination with other fields (except session_id and path) at the moment.
set_compaction_policy: String
Set predefined named set of settings for table compaction [“default”, “small_table”, “log_table”]. Set “default” to use default preset.
alter_partitioning_settings: Option<PartitioningSettings>
Change table partitioning settings
set_key_bloom_filter: i32
Enable/disable bloom filter by key
set_read_replicas_settings: Option<ReadReplicasSettings>
Set read replicas settings for table
add_changefeeds: Vec<Changefeed>
Add change feeds
drop_changefeeds: Vec<String>
Remove change feeds (by its names)
rename_indexes: Vec<RenameIndexItem>
Rename existed index
ttl_action: Option<TtlAction>
Setup or remove time to live settings
tiering_action: Option<TieringAction>
Setup or remove tiering
Implementations§
Source§impl AlterTableRequest
impl AlterTableRequest
Sourcepub fn set_key_bloom_filter(&self) -> Status
pub fn set_key_bloom_filter(&self) -> Status
Returns the enum value of set_key_bloom_filter
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_set_key_bloom_filter(&mut self, value: Status)
pub fn set_set_key_bloom_filter(&mut self, value: Status)
Sets set_key_bloom_filter
to the provided enum value.
Trait Implementations§
Source§impl Clone for AlterTableRequest
impl Clone for AlterTableRequest
Source§fn clone(&self) -> AlterTableRequest
fn clone(&self) -> AlterTableRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AlterTableRequest
impl Debug for AlterTableRequest
Source§impl Default for AlterTableRequest
impl Default for AlterTableRequest
Source§impl<'de> Deserialize<'de> for AlterTableRequest
impl<'de> Deserialize<'de> for AlterTableRequest
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 AlterTableRequest
impl Message for AlterTableRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for AlterTableRequest
impl PartialEq for AlterTableRequest
Source§impl Serialize for AlterTableRequest
impl Serialize for AlterTableRequest
impl StructuralPartialEq for AlterTableRequest
Auto Trait Implementations§
impl Freeze for AlterTableRequest
impl RefUnwindSafe for AlterTableRequest
impl Send for AlterTableRequest
impl Sync for AlterTableRequest
impl Unpin for AlterTableRequest
impl UnwindSafe for AlterTableRequest
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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