#[non_exhaustive]pub struct SpigotBuilder { /* private fields */ }Expand description
A builder for Spigot.
Implementations§
Source§impl SpigotBuilder
impl SpigotBuilder
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the transform node.
This field is required.Sourcepub fn inputs(self, input: impl Into<String>) -> Self
pub fn inputs(self, input: impl Into<String>) -> Self
Appends an item to inputs.
To override the contents of this collection use set_inputs.
The data inputs identified by their node names.
Sourcepub fn set_inputs(self, input: Option<Vec<String>>) -> Self
pub fn set_inputs(self, input: Option<Vec<String>>) -> Self
The data inputs identified by their node names.
Sourcepub fn get_inputs(&self) -> &Option<Vec<String>>
pub fn get_inputs(&self) -> &Option<Vec<String>>
The data inputs identified by their node names.
Sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
This field is required.Sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
Sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
Sourcepub fn topk(self, input: i32) -> Self
pub fn topk(self, input: i32) -> Self
Specifies a number of records to write starting from the beginning of the dataset.
Sourcepub fn set_topk(self, input: Option<i32>) -> Self
pub fn set_topk(self, input: Option<i32>) -> Self
Specifies a number of records to write starting from the beginning of the dataset.
Sourcepub fn get_topk(&self) -> &Option<i32>
pub fn get_topk(&self) -> &Option<i32>
Specifies a number of records to write starting from the beginning of the dataset.
Sourcepub fn prob(self, input: f64) -> Self
pub fn prob(self, input: f64) -> Self
The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1 indicates that each row read from the dataset should be included in the sample output.
Sourcepub fn set_prob(self, input: Option<f64>) -> Self
pub fn set_prob(self, input: Option<f64>) -> Self
The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1 indicates that each row read from the dataset should be included in the sample output.
Trait Implementations§
Source§impl Clone for SpigotBuilder
impl Clone for SpigotBuilder
Source§fn clone(&self) -> SpigotBuilder
fn clone(&self) -> SpigotBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpigotBuilder
impl Debug for SpigotBuilder
Source§impl Default for SpigotBuilder
impl Default for SpigotBuilder
Source§fn default() -> SpigotBuilder
fn default() -> SpigotBuilder
Source§impl PartialEq for SpigotBuilder
impl PartialEq for SpigotBuilder
Source§fn eq(&self, other: &SpigotBuilder) -> bool
fn eq(&self, other: &SpigotBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpigotBuilder
Auto Trait Implementations§
impl Freeze for SpigotBuilder
impl RefUnwindSafe for SpigotBuilder
impl Send for SpigotBuilder
impl Sync for SpigotBuilder
impl Unpin for SpigotBuilder
impl UnsafeUnpin for SpigotBuilder
impl UnwindSafe for SpigotBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more