pub struct NexmarkInputOptions {
pub events: u64,
pub threads: usize,
pub batch_size_per_thread: u64,
pub max_step_size: u64,
}Expand description
Configuration for generating Nexmark input data.
Fields§
§events: u64Number of events to generate.
threads: usizeNumber of event generator threads.
It’s reasonable to choose the same number of generator threads as worker threads.
batch_size_per_thread: u64Number of events to generate and submit together, per thread.
Each thread generates this many records, which are then combined with
the records generated by the other threads, to form combined input
batches of size threads × batch_size_per_thread.
max_step_size: u64Maximum number of events to submit in a single step. This should be a
multiple of batch_size.
This stands in for max_batch_size from the connector configuration
because it must be a constant across all three of the nexmark tables.
Trait Implementations§
source§impl Clone for NexmarkInputOptions
impl Clone for NexmarkInputOptions
source§fn clone(&self) -> NexmarkInputOptions
fn clone(&self) -> NexmarkInputOptions
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NexmarkInputOptions
impl Debug for NexmarkInputOptions
source§impl Default for NexmarkInputOptions
impl Default for NexmarkInputOptions
source§impl<'de> Deserialize<'de> for NexmarkInputOptionswhere
NexmarkInputOptions: Default,
impl<'de> Deserialize<'de> for NexmarkInputOptionswhere
NexmarkInputOptions: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for NexmarkInputOptions
impl PartialEq for NexmarkInputOptions
source§impl Serialize for NexmarkInputOptions
impl Serialize for NexmarkInputOptions
source§impl<'__s> ToSchema<'__s> for NexmarkInputOptions
impl<'__s> ToSchema<'__s> for NexmarkInputOptions
impl Eq for NexmarkInputOptions
impl StructuralPartialEq for NexmarkInputOptions
Auto Trait Implementations§
impl Freeze for NexmarkInputOptions
impl RefUnwindSafe for NexmarkInputOptions
impl Send for NexmarkInputOptions
impl Sync for NexmarkInputOptions
impl Unpin for NexmarkInputOptions
impl UnwindSafe for NexmarkInputOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.