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

Function struct_fields

arrow-json/src/reader/struct_array.rs:270–275  ·  view source on GitHub ↗
(data_type: &DataType)

Source from the content-addressed store, hash-verified

268}
269
270fn struct_fields(data_type: &DataType) -> &Fields {
271 match &data_type {
272 DataType::Struct(f) => f,
273 _ => unreachable!(),
274 }
275}
276
277fn build_field_index(fields: &Fields) -> Option<HashMap<String, usize>> {
278 // Heuristic threshold: for small field counts, linear scan avoids HashMap overhead.

Callers 2

newMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected