MCPcopy Create free account
hub / github.com/apache/arrow-rs / with_skip_validation

Method with_skip_validation

arrow-ipc/src/reader.rs:542–545  ·  view source on GitHub ↗

Specifies if validation should be skipped when reading data (defaults to `false`) Note this API is somewhat "funky" as it allows the caller to skip validation without having to use `unsafe` code. If this is ever made public it should be made clearer that this is a potentially unsafe by using an `unsafe` function that takes a boolean flag. # Safety Relies on the caller only passing a flag with `

(mut self, skip_validation: UnsafeFlag)

Source from the content-addressed store, hash-verified

540 /// Relies on the caller only passing a flag with `true` value if they are
541 /// certain that the data is valid
542 pub(crate) fn with_skip_validation(mut self, skip_validation: UnsafeFlag) -> Self {
543 self.skip_validation = skip_validation;
544 self
545 }
546
547 /// Read the record batch, consuming the reader
548 fn read_record_batch(mut self) -> Result<RecordBatch, ArrowError> {

Callers 6

get_dictionary_valuesFunction · 0.45
read_record_batchMethod · 0.45
next_ipc_messageMethod · 0.45
read_ipc_skip_validationFunction · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected