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

Method Reconstruct

cpp/src/parquet/schema_test.cc:1905–1920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1903class TestSchemaElementConstruction : public ::testing::Test {
1904 public:
1905 TestSchemaElementConstruction* Reconstruct(
1906 const SchemaElementConstructionArguments& c) {
1907 // Make node, create serializable Thrift object from it ...
1908 node_ = PrimitiveNode::Make(c.name, Repetition::REQUIRED, c.logical_type,
1909 c.physical_type, c.physical_length);
1910 element_.reset(new format::SchemaElement);
1911 node_->ToParquet(element_.get());
1912
1913 // ... then set aside some values for later inspection.
1914 name_ = c.name;
1915 expect_converted_type_ = c.expect_converted_type;
1916 converted_type_ = c.converted_type;
1917 expect_logicalType_ = c.expect_logicalType;
1918 check_logicalType_ = c.check_logicalType;
1919 return this;
1920 }
1921
1922 TestSchemaElementConstruction* LegacyReconstruct(
1923 const LegacySchemaElementConstructionArguments& c) {

Callers 1

TEST_FFunction · 0.45

Calls 4

ToParquetMethod · 0.80
MakeFunction · 0.70
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected