Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::DescriptorTblBuilder Class Reference

#include <desc-tbl-builder.h>

Collaboration diagram for impala::DescriptorTblBuilder:

Public Member Functions

 DescriptorTblBuilder (ObjectPool *object_pool)
 
TupleDescBuilderDeclareTuple ()
 
DescriptorTblBuild ()
 

Private Attributes

ObjectPoolobj_pool_
 Owned by caller. More...
 
std::vector< TupleDescBuilder * > tuples_descs_
 

Detailed Description

Aids in the construction of a DescriptorTbl by declaring tuples and slots associated with those tuples. TupleIds are monotonically increasing from 0 for each DeclareTuple, and SlotIds increase similarly, but are always greater than all TupleIds. Unlike FE, slots are not reordered based on size, and padding is not addded. Example usage: DescriptorTblBuilder builder; builder.DeclareTuple() << TYPE_TINYINT << TYPE_TIMESTAMP; // gets TupleId 0 builder.DeclareTuple() << TYPE_FLOAT; // gets TupleId 1 DescriptorTbl desc_tbl = builder.Build();

Definition at line 36 of file desc-tbl-builder.h.

Constructor & Destructor Documentation

impala::DescriptorTblBuilder::DescriptorTblBuilder ( ObjectPool object_pool)

Definition at line 25 of file desc-tbl-builder.cc.

Member Function Documentation

Member Data Documentation

ObjectPool* impala::DescriptorTblBuilder::obj_pool_
private

Owned by caller.

Definition at line 45 of file desc-tbl-builder.h.

Referenced by Build(), and DeclareTuple().

std::vector<TupleDescBuilder*> impala::DescriptorTblBuilder::tuples_descs_
private

Definition at line 47 of file desc-tbl-builder.h.

Referenced by Build(), and DeclareTuple().


The documentation for this class was generated from the following files: