Trait arrow_array::types::ByteArrayType
source · pub trait ByteArrayType:
'static
+ Send
+ Sync
+ ByteArrayTypeSealed {
type Offset: OffsetSizeTrait;
type Native: ByteArrayNativeType + AsRef<Self::Native> + AsRef<[u8]> + ?Sized;
const PREFIX: &'static str;
const DATA_TYPE: DataType;
// Required method
fn validate(
offsets: &OffsetBuffer<Self::Offset>,
values: &Buffer,
) -> Result<(), ArrowError>;
}
Expand description
A trait over the variable-size byte array types
Required Associated Types§
sourcetype Offset: OffsetSizeTrait
type Offset: OffsetSizeTrait
Type of offset i.e i32/i64
Required Associated Constants§
Required Methods§
sourcefn validate(
offsets: &OffsetBuffer<Self::Offset>,
values: &Buffer,
) -> Result<(), ArrowError>
fn validate( offsets: &OffsetBuffer<Self::Offset>, values: &Buffer, ) -> Result<(), ArrowError>
Verifies that every consecutive pair of offsets
denotes a valid slice of values
Object Safety§
This trait is not object safe.