pub struct JsonArray { /* private fields */ }Expand description
A specialized array for JSON data stored as JSONB binary format
Implementations§
Source§impl JsonArray
impl JsonArray
Sourcepub fn try_from_iter<I, S>(iter: I) -> Result<Self, ArrowError>
pub fn try_from_iter<I, S>(iter: I) -> Result<Self, ArrowError>
Create a new JsonArray from an iterator of JSON strings
Sourcepub fn into_inner(self) -> LargeBinaryArray
pub fn into_inner(self) -> LargeBinaryArray
Get the underlying LargeBinaryArray
Sourcepub fn inner(&self) -> &LargeBinaryArray
pub fn inner(&self) -> &LargeBinaryArray
Get a reference to the underlying LargeBinaryArray
Sourcepub fn value(&self, i: usize) -> Result<String, ArrowError>
pub fn value(&self, i: usize) -> Result<String, ArrowError>
Get the value at index i as decoded JSON string
Sourcepub fn value_bytes(&self, i: usize) -> &[u8] ⓘ
pub fn value_bytes(&self, i: usize) -> &[u8] ⓘ
Get the value at index i as raw JSONB bytes
Sourcepub fn json_path(
&self,
i: usize,
path: &str,
) -> Result<Option<String>, ArrowError>
pub fn json_path( &self, i: usize, path: &str, ) -> Result<Option<String>, ArrowError>
Get JSONPath value from the JSON at index i
Sourcepub fn to_arrow_json(&self) -> ArrayRef
pub fn to_arrow_json(&self) -> ArrayRef
Convert to Arrow string array (JSON as UTF-8)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_null(&self, i: usize) -> bool
Trait Implementations§
Source§impl TryFrom<&GenericByteArray<GenericStringType<i32>>> for JsonArray
impl TryFrom<&GenericByteArray<GenericStringType<i32>>> for JsonArray
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Source§impl TryFrom<&GenericByteArray<GenericStringType<i64>>> for JsonArray
impl TryFrom<&GenericByteArray<GenericStringType<i64>>> for JsonArray
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericByteArray<GenericStringType<i32>>> for JsonArray
impl TryFrom<GenericByteArray<GenericStringType<i32>>> for JsonArray
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericByteArray<GenericStringType<i64>>> for JsonArray
impl TryFrom<GenericByteArray<GenericStringType<i64>>> for JsonArray
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for JsonArray
impl RefUnwindSafe for JsonArray
impl Send for JsonArray
impl Sync for JsonArray
impl Unpin for JsonArray
impl UnwindSafe for JsonArray
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