Skip to main content
pub struct TypePropertiesBuilder  /* private fields */ 

Builder for Kinetica type properties map

Example

Implementations

Source

pub fn new() -> Self

Source

pub fn column( self, name: impl Into<String>, props: KineticaColumnProperties, ) -> Self

Adds column properties for the given column name

Properties accumulate: calling this (or column_property or any shorthand such as primary_key) again for the same column appends to that column’s list rather than replacing it, so .primary_key(“id”).shard_key(“id”) yields [“primary_key”, “shard_key”]. A property already present on the column is not added a second time; the first-seen order is kept.

Source

pub fn column_property( self, name: impl Into<String>, property: impl Into<String>, ) -> Self

Adds a single property for a column

Appends to the column’s existing properties (see column); a property already present is not repeated.

Source

pub fn primary_key(self, name: impl Into<String>) -> Self

Shorthand: marks a column as primary key

Source

pub fn timestamp(self, name: impl Into<String>) -> Self

Shorthand: marks a column as timestamp

Source

pub fn data(self, name: impl Into<String>) -> Self

Shorthand: marks a column as data

Source

pub fn shard_key(self, name: impl Into<String>) -> Self

Shorthand: marks a column as shard key

Builds the HashMap expected by Kinetica APIs

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