MCPcopy Create free account
hub / github.com/apache/arrow / ExportField

Method ExportField

cpp/src/arrow/c/bridge.cc:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182struct SchemaExporter {
183 Status ExportField(const Field& field) {
184 export_.name_ = field.name();
185 flags_ = field.nullable() ? ARROW_FLAG_NULLABLE : 0;
186
187 const DataType* type = UnwrapExtension(field.type().get());
188 RETURN_NOT_OK(ExportFormat(*type));
189 RETURN_NOT_OK(ExportChildren(type->fields()));
190 RETURN_NOT_OK(ExportMetadata(field.metadata().get()));
191 return Status::OK();
192 }
193
194 Status ExportType(const DataType& orig_type) {
195 flags_ = ARROW_FLAG_NULLABLE;

Callers 2

ExportChildrenMethod · 0.80
ExportFieldFunction · 0.80

Calls 7

nullableMethod · 0.80
OKFunction · 0.50
nameMethod · 0.45
getMethod · 0.45
typeMethod · 0.45
fieldsMethod · 0.45
metadataMethod · 0.45

Tested by

no test coverage detected