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

Method projected_file_schema

datafusion/datasource-avro/src/source.rs:70–83  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

68 }
69
70 fn projected_file_schema(&self) -> SchemaRef {
71 let file_schema = self.table_schema.file_schema();
72 if self.projection.file_indices.is_empty() {
73 return Arc::clone(file_schema);
74 }
75
76 Arc::new(Schema::new(
77 self.projection
78 .file_indices
79 .iter()
80 .map(|idx| file_schema.field(*idx).clone())
81 .collect::<Vec<_>>(),
82 ))
83 }
84
85 fn writer_projection_for_schema(
86 &self,

Callers 1

openMethod · 0.80

Calls 7

newFunction · 0.85
file_schemaMethod · 0.45
is_emptyMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected