pub struct NexmarkInputOptions {
pub events: u64,
pub threads: usize,
pub batch_size_per_thread: u64,
pub max_step_size_per_thread: 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_per_thread: u64Maximum number of events to submit in a single step, per thread.
This should really be per worker thread, not per generator thread, but the connector does not know how many worker threads there are.
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
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
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
key and return true if they are equal.