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§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>,
impl Eq for NexmarkInputOptions
Source§impl PartialEq for NexmarkInputOptions
impl PartialEq for NexmarkInputOptions
Source§impl Serialize for NexmarkInputOptions
impl Serialize for NexmarkInputOptions
impl StructuralPartialEq for NexmarkInputOptions
Auto Trait Implementations§
impl Forget for NexmarkInputOptions
impl Freeze for NexmarkInputOptions
impl Move for NexmarkInputOptions
impl RefUnwindSafe for NexmarkInputOptions
impl Send for NexmarkInputOptions
impl Sync for NexmarkInputOptions
impl Unpin for NexmarkInputOptions
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.