pub struct CreateTableRequest {
pub catalog_name: String,
pub namespace_name: String,
pub name: String,
pub schema: Option<Vec<ColumnDefinition>>,
pub table_type: TableType,
pub data_source_format: Option<DataSourceFormat>,
pub primary_key: Option<Vec<String>>,
pub storage_root: Option<String>,
pub storage_options: Option<StorageOptions>,
pub comment: Option<String>,
pub properties: Option<HashMap<String, String>>,
}Expand description
テーブル作成リクエスト。
Fields§
§catalog_name: StringCatalog 名(既定: “default”)。
namespace_name: StringNamespace 名(既定: “default”)。
name: Stringテーブル名。
schema: Option<Vec<ColumnDefinition>>スキーマ。
table_type: TableTypeテーブル種別(既定: Managed)。
data_source_format: Option<DataSourceFormat>データソース形式(None の場合は Alopex)。
primary_key: Option<Vec<String>>主キー。
storage_root: Option<String>ストレージルート。
storage_options: Option<StorageOptions>ストレージオプション。
comment: Option<String>コメント。
properties: Option<HashMap<String, String>>カスタムプロパティ(None の場合は空の HashMap)。
Implementations§
Source§impl CreateTableRequest
impl CreateTableRequest
Sourcepub fn with_catalog_name(self, catalog_name: impl Into<String>) -> Self
pub fn with_catalog_name(self, catalog_name: impl Into<String>) -> Self
Catalog 名を指定する。
Sourcepub fn with_namespace_name(self, namespace_name: impl Into<String>) -> Self
pub fn with_namespace_name(self, namespace_name: impl Into<String>) -> Self
Namespace 名を指定する。
Sourcepub fn with_schema(self, schema: Vec<ColumnDefinition>) -> Self
pub fn with_schema(self, schema: Vec<ColumnDefinition>) -> Self
スキーマを指定する。
Sourcepub fn with_table_type(self, table_type: TableType) -> Self
pub fn with_table_type(self, table_type: TableType) -> Self
テーブル種別を指定する。
Sourcepub fn with_data_source_format(
self,
data_source_format: DataSourceFormat,
) -> Self
pub fn with_data_source_format( self, data_source_format: DataSourceFormat, ) -> Self
データソース形式を指定する。
Sourcepub fn with_primary_key(self, primary_key: Vec<String>) -> Self
pub fn with_primary_key(self, primary_key: Vec<String>) -> Self
主キーを指定する。
Sourcepub fn with_storage_root(self, storage_root: impl Into<String>) -> Self
pub fn with_storage_root(self, storage_root: impl Into<String>) -> Self
ストレージルートを指定する。
Sourcepub fn with_storage_options(self, storage_options: StorageOptions) -> Self
pub fn with_storage_options(self, storage_options: StorageOptions) -> Self
ストレージオプションを指定する。
Sourcepub fn with_comment(self, comment: impl Into<String>) -> Self
pub fn with_comment(self, comment: impl Into<String>) -> Self
コメントを指定する。
Sourcepub fn with_properties(self, properties: HashMap<String, String>) -> Self
pub fn with_properties(self, properties: HashMap<String, String>) -> Self
カスタムプロパティを指定する。
Trait Implementations§
Source§impl Clone for CreateTableRequest
impl Clone for CreateTableRequest
Source§fn clone(&self) -> CreateTableRequest
fn clone(&self) -> CreateTableRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateTableRequest
impl RefUnwindSafe for CreateTableRequest
impl Send for CreateTableRequest
impl Sync for CreateTableRequest
impl Unpin for CreateTableRequest
impl UnwindSafe for CreateTableRequest
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
Mutably borrows from an owned value. Read more