pub struct BinaryPrefixPlusCounterGenerator { /* private fields */ }
Expand description
Generate a sequence of binary strings with a prefix and a counter
The counter will be encoded (little-endian) as a u8, u16, u32, or u64 and added to the prefix As long as more than 256 values are generated then the resulting array will have variable width
Implementations§
Trait Implementations§
Source§impl ArrayGenerator for BinaryPrefixPlusCounterGenerator
impl ArrayGenerator for BinaryPrefixPlusCounterGenerator
Source§fn generate(
&mut self,
length: RowCount,
_rng: &mut Xoshiro256PlusPlus,
) -> Result<Arc<dyn Array>, ArrowError>
fn generate( &mut self, length: RowCount, _rng: &mut Xoshiro256PlusPlus, ) -> Result<Arc<dyn Array>, ArrowError>
Generate an array of the given length Read more
Source§fn data_type(&self) -> &DataType
fn data_type(&self) -> &DataType
Get the data type of the array that this generator produces Read more
Source§fn element_size_bytes(&self) -> Option<ByteCount>
fn element_size_bytes(&self) -> Option<ByteCount>
Get the size of each element in bytes Read more
Source§fn generate_default(
&mut self,
length: RowCount,
) -> Result<Arc<dyn Array>, ArrowError>
fn generate_default( &mut self, length: RowCount, ) -> Result<Arc<dyn Array>, ArrowError>
Generate an array of the given length using a new RNG with the default seed Read more
Auto Trait Implementations§
impl Freeze for BinaryPrefixPlusCounterGenerator
impl RefUnwindSafe for BinaryPrefixPlusCounterGenerator
impl Send for BinaryPrefixPlusCounterGenerator
impl Sync for BinaryPrefixPlusCounterGenerator
impl Unpin for BinaryPrefixPlusCounterGenerator
impl UnwindSafe for BinaryPrefixPlusCounterGenerator
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