MCPcopy Create free account
hub / github.com/apache/datafusion / get_col

Function get_col

datafusion/datasource-avro/src/source.rs:277–282  ·  view source on GitHub ↗
(
        batch: &'a RecordBatch,
        col: (usize, &Field),
    )

Source from the content-addressed store, hash-verified

275 }
276
277 fn get_col<'a, T: 'static>(
278 batch: &'a RecordBatch,
279 col: (usize, &Field),
280 ) -> Option<&'a T> {
281 batch.column(col.0).as_any().downcast_ref::<T>()
282 }
283
284 #[test]
285 fn test_avro_basic() {

Callers

nothing calls this directly

Calls 2

columnMethod · 0.80
as_anyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…