pub struct IngestOptions /* private fields */ Options for ingesting files: the options of /insert/records/fromfiles.
Each setter sets its option as well as its value; an option without a setter can be given with set_option.
Implementations
impl IngestOptions
pub fn bad_record_table_name(&self) -> Option<&str>
pub fn set_bad_record_table_name( &mut self, bad_record_table_name: &str, ) -> &mut Self
Sets the table bad records go to; an empty name is ignored, with a warning.
pub fn bad_record_table_limit(&self) -> i64
pub fn set_bad_record_table_limit( &mut self, bad_record_table_limit: i64, ) -> &mut Self
The format of each column named, as a pair such as (“date”, “%Y-%m-%d”).
Sets the format of each column named, sent as a JSON object such as “column”:“date”:“%Y-%m-%d”; an empty list is ignored, with a warning.
pub fn columns_to_load(&self) -> Option<&[String]>
pub fn set_columns_to_load( &mut self, columns_to_load: Vec<String>, ) -> Result<&mut Self, KineticaError>
Sets the columns to load, sent as a JSON array, each once.
Fails if a column is also one to skip.
pub fn columns_to_skip(&self) -> Option<&[String]>
pub fn set_columns_to_skip( &mut self, columns_to_skip: Vec<String>, ) -> Result<&mut Self, KineticaError>
Sets the columns to skip, sent as a JSON array, each once.
Fails if a column is also one to load.
Sets the default format of each kind of column, sent as a JSON object; an empty list is ignored, with a warning.
pub fn error_handling_mode(&self) -> Option<ErrorHandlingMode>
pub fn set_error_handling_mode( &mut self, error_handling_mode: ErrorHandlingMode, ) -> &mut Self
pub fn set_file_type(&mut self, file_type: FileType) -> &mut Self
pub fn primary_keys(&self) -> Option<&[String]>
pub fn set_primary_keys(&mut self, primary_keys: Vec<String>) -> &mut Self
Sets the primary key columns, sent joined by commas; an empty list is ignored, with a warning.
pub fn shard_keys(&self) -> Option<&[String]>
pub fn set_shard_keys(&mut self, shard_keys: Vec<String>) -> &mut Self
Sets the shard key columns, sent joined by commas; an empty list is ignored, with a warning.
pub fn text_comment_string(&self) -> Option<&str>
pub fn set_text_comment_string( &mut self, text_comment_string: &str, ) -> &mut Self
pub fn text_delimiter(&self) -> Option<&str>
pub fn set_text_delimiter(&mut self, text_delimiter: &str) -> &mut Self
pub fn text_escape_character(&self) -> Option<&str>
pub fn set_text_escape_character( &mut self, text_escape_character: &str, ) -> &mut Self
pub fn is_text_has_header(&self) -> bool
pub fn set_text_has_header(&mut self, text_has_header: bool) -> &mut Self
pub fn text_header_property_delimiter(&self) -> Option<&str>
pub fn set_text_header_property_delimiter( &mut self, text_header_property_delimiter: &str, ) -> &mut Self
pub fn text_null_string(&self) -> Option<&str>
pub fn set_text_null_string(&mut self, text_null_string: &str) -> &mut Self
pub fn text_quote_character(&self) -> Option<&str>
pub fn set_text_quote_character( &mut self, text_quote_character: &str, ) -> &mut Self
pub fn is_truncate_table(&self) -> bool
pub fn set_truncate_table(&mut self, truncate_table: bool) -> &mut Self
pub fn type_inference_mode(&self) -> Option<TypeInferenceMode>
pub fn set_type_inference_mode( &mut self, type_inference_mode: TypeInferenceMode, ) -> &mut Self
pub fn set_option(&mut self, key: &str, value: impl ToString) -> &mut Self
Sets any option, by name, over what the setters set.
Trait Implementations
impl Clone for IngestOptions
fn clone(&self) -> IngestOptions
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for IngestOptions
impl Default for IngestOptions
fn default() -> IngestOptions
impl Eq for IngestOptions
impl PartialEq for IngestOptions
fn eq(&self, other: &IngestOptions) -> bool
self and other values to be equal, and is used by ==.