Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
desc-tbl-builder.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef IMPALA_TESTUTIL_ROW_DESC_BUILDER_H_
16 #define IMPALA_TESTUTIL_ROW_DESC_BUILDER_H_
17 
18 #include "runtime/runtime-state.h"
19 
20 namespace impala {
21 
22 class ObjectPool;
23 class TupleDescBuilder;
24 
30 //
37  public:
38  DescriptorTblBuilder(ObjectPool* object_pool);
39 
42 
43  private:
46 
47  std::vector<TupleDescBuilder*> tuples_descs_;
48 };
49 
51  public:
53  slot_types_.push_back(slot_type);
54  return *this;
55  }
56 
57  std::vector<ColumnType> slot_types() const { return slot_types_; }
58 
59  private:
60  std::vector<ColumnType> slot_types_;
61 };
62 
63 }
64 
65 #endif
std::vector< ColumnType > slot_types() const
DescriptorTblBuilder(ObjectPool *object_pool)
std::vector< TupleDescBuilder * > tuples_descs_
ObjectPool * obj_pool_
Owned by caller.
TupleDescBuilder & operator<<(ColumnType slot_type)
std::vector< ColumnType > slot_types_
TupleDescBuilder & DeclareTuple()