MCPcopy Create free account
hub / github.com/apache/impala / SetUp

Method SetUp

be/src/exec/row-batch-list-test.cc:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 RowDescriptor* desc_;
53
54 virtual void SetUp() {
55 DescriptorTblBuilder builder(fe.get(), &pool_);
56 builder.DeclareTuple() << TYPE_INT;
57 DescriptorTbl* desc_tbl = builder.Build();
58 vector<bool> nullable_tuples(1, false);
59 vector<TTupleId> tuple_id(1, (TTupleId) 0);
60 desc_ = pool_.Add(new RowDescriptor(*desc_tbl, tuple_id, nullable_tuples));
61 }
62
63 RowBatch* CreateRowBatch(int start, int end) {
64 int num_rows = end - start + 1;

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
BuildMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected