Skip to main content
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

Source

pub fn new() -> Self

Options with nothing set.

Source

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.

Source

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”).

Source

pub fn set_column_formats( &mut self, column_formats: Vec<(String, (String, String))>, ) -> &mut Self

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.

Source

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.

Source

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.

Source

pub fn set_default_column_formats( &mut self, default_column_formats: Vec<(String, String)>, ) -> &mut Self

Sets the default format of each kind of column, sent as a JSON object; an empty list is ignored, with a warning.

Source

pub fn set_error_handling_mode( &mut self, error_handling_mode: ErrorHandlingMode, ) -> &mut Self

Source

pub fn set_file_type(&mut self, file_type: FileType) -> &mut Self

Source

pub fn primary_keys(&self) -> Option<&[String]>

Source

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.

Source

pub fn shard_keys(&self) -> Option<&[String]>

Source

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.

Source

pub fn set_text_comment_string( &mut self, text_comment_string: &str, ) -> &mut Self

Source

pub fn set_text_delimiter(&mut self, text_delimiter: &str) -> &mut Self

Source

pub fn set_text_escape_character( &mut self, text_escape_character: &str, ) -> &mut Self

Source

pub fn set_text_has_header(&mut self, text_has_header: bool) -> &mut Self

Source

pub fn set_text_header_property_delimiter( &mut self, text_header_property_delimiter: &str, ) -> &mut Self

Source

pub fn set_text_null_string(&mut self, text_null_string: &str) -> &mut Self

Source

pub fn set_text_quote_character( &mut self, text_quote_character: &str, ) -> &mut Self

Source

pub fn set_truncate_table(&mut self, truncate_table: bool) -> &mut Self

Source

pub fn set_type_inference_mode( &mut self, type_inference_mode: TypeInferenceMode, ) -> &mut Self

Source

pub fn set_option(&mut self, key: &str, value: impl ToString) -> &mut Self

Sets any option, by name, over what the setters set.

The options to send.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Source

fn eq(&self, other: &IngestOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.