Struct parquet::data_type::ByteArray [−][src]
pub struct ByteArray { /* fields omitted */ }Rust representation for BYTE_ARRAY and FIXED_LEN_BYTE_ARRAY Parquet physical types. Value is backed by a byte buffer.
Methods
impl ByteArray[src]
impl ByteArraypub fn new() -> Self[src]
pub fn new() -> SelfCreates new byte array with no data set.
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeGets length of the underlying byte buffer.
pub fn data(&self) -> &[u8][src]
pub fn data(&self) -> &[u8]Returns slice of data.
pub fn set_data(&mut self, data: ByteBufferPtr)[src]
pub fn set_data(&mut self, data: ByteBufferPtr)Set data from another byte buffer.
pub fn slice(&self, start: usize, len: usize) -> Self[src]
pub fn slice(&self, start: usize, len: usize) -> SelfReturns ByteArray instance with slice of values for a data.
Trait Implementations
impl Clone for ByteArray[src]
impl Clone for ByteArrayfn clone(&self) -> ByteArray[src]
fn clone(&self) -> ByteArrayReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for ByteArray[src]
impl Debug for ByteArrayfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Vec<u8>> for ByteArray[src]
impl From<Vec<u8>> for ByteArrayimpl<'a> From<&'a str> for ByteArray[src]
impl<'a> From<&'a str> for ByteArrayimpl From<ByteBufferPtr> for ByteArray[src]
impl From<ByteBufferPtr> for ByteArrayfn from(ptr: ByteBufferPtr) -> ByteArray[src]
fn from(ptr: ByteBufferPtr) -> ByteArrayPerforms the conversion.
impl From<ByteBuffer> for ByteArray[src]
impl From<ByteBuffer> for ByteArrayfn from(buf: ByteBuffer) -> ByteArray[src]
fn from(buf: ByteBuffer) -> ByteArrayPerforms the conversion.
impl Default for ByteArray[src]
impl Default for ByteArrayimpl PartialEq for ByteArray[src]
impl PartialEq for ByteArrayfn eq(&self, other: &ByteArray) -> bool[src]
fn eq(&self, other: &ByteArray) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Rand for ByteArray[src]
impl Rand for ByteArrayfn rand<R: Rng>(rng: &mut R) -> Self[src]
fn rand<R: Rng>(rng: &mut R) -> Self🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Generates a random instance of this type using the specified source of randomness. Read more
impl AsBytes for ByteArray[src]
impl AsBytes for ByteArray