< back to index

480px | 640px | 800px | 1024px | full

GORA-109: Pig Adapter for Gora

may-2015 under development

Apache Gora is an Object Datastore Mapper which has its own data model. At the same time, Apache Pig has its own data model too. Because of this, it is needed an adaptation between both data models.

The aim of this document is to analyze, determine and propose a suitable mapping between both data models.

Data models

Gora's data entities are generated from Apache Avro schemas, and inherits the same datatypes defined in Avro.

Pig has its own data model.

GoraPig
Primitive/Simple types null
boolean
int (32-bit)
long (64-bit)
float (32-bit)
double (64-bit)
bytes (8-bit)
string (unicode)
null
boolean
int (32-bit)
long (64-bit)
float (32-bit)
double (64-bit)
bytearray
chararray (string UTF-8)
datetime
biginteger
bigdecimal
Complex types record
enum
array
map
union
fixed
tuple
bag
map

Important details