[−][src]Enum datafusion::scalar::ScalarValue
Represents a dynamically typed, nullable single value.
This is the single-valued counter-part of arrow’s Array
.
Variants
true or false value
32bit float
64bit float
signed 8bit int
signed 16bit int
signed 32bit int
signed 64bit int
unsigned 8bit int
unsigned 16bit int
unsigned 32bit int
unsigned 64bit int
utf-8 encoded string.
utf-8 encoded string representing a LargeString's arrow type.
List(Option<Vec<ScalarValue>>, DataType)
list of nested ScalarValue
Implementations
impl ScalarValue
[src]
pub fn get_datatype(&self) -> DataType
[src]
Getter for the DataType
of the value
pub fn is_null(&self) -> bool
[src]
whether this value is null or not.
pub fn to_array(&self) -> ArrayRef
[src]
Converts a scalar value into an 1-row array.
pub fn try_from_array(array: &ArrayRef, index: usize) -> Result<Self>
[src]
Converts a value in array
at index
into a ScalarValue
Trait Implementations
impl Clone for ScalarValue
[src]
fn clone(&self) -> ScalarValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScalarValue
[src]
impl Display for ScalarValue
[src]
impl From<bool> for ScalarValue
[src]
impl From<f32> for ScalarValue
[src]
impl From<f64> for ScalarValue
[src]
impl From<i16> for ScalarValue
[src]
impl From<i32> for ScalarValue
[src]
impl From<i64> for ScalarValue
[src]
impl From<i8> for ScalarValue
[src]
impl From<u16> for ScalarValue
[src]
impl From<u32> for ScalarValue
[src]
impl From<u64> for ScalarValue
[src]
impl From<u8> for ScalarValue
[src]
impl PartialEq<ScalarValue> for ScalarValue
[src]
fn eq(&self, other: &ScalarValue) -> bool
[src]
fn ne(&self, other: &ScalarValue) -> bool
[src]
impl StructuralPartialEq for ScalarValue
[src]
impl<'_> TryFrom<&'_ DataType> for ScalarValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnwindSafe for ScalarValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,