Review Board 1.7.22


SchemaTuple in Pig

Review Request #4651 - Created April 5, 2012 and updated

Jonathan Coveney
PIG-2632
Reviewers
pig
julien
pig
This work builds on Dmitriy's PrimitiveTuple work. The idea is that, knowing the Schema on the frontend, we can code generate Tuples which can be used for fun and profit. In rudimentary tests, the memory efficiency is 2-4x better, and it's ~15% smaller serialized (heavily heavily depends on the data, though). Need to do get/set tests, but assuming that it's on par (or even faster) than Tuple, the memory gain is huge.

Need to clean up the code and add tests.

Right now, it generates a SchemaTuple for every inputSchema and outputSchema given to UDF's. The next step is to make a SchemaBag, where I think the serialization savings will be really huge.

Needs tests and comments, but I want the code to settle a bit.

 
trunk/build.xml
Revision 1310666 New Change
[20] 679 lines
[+20]
680
                <include name="hbase-${hbase.version}.jar" />
680
                <include name="hbase-${hbase.version}.jar" />
681
                <include name="commons*.jar" />
681
                <include name="commons*.jar" />
682
                <include name="log4j*.jar" />
682
                <include name="log4j*.jar" />
683
                <include name="jsp-api*.jar" />
683
                <include name="jsp-api*.jar" />
684
                <include name="zookeeper*.jar" />
684
                <include name="zookeeper*.jar" />

    
   
685
                <include name="mahout-core-${mahout.core.version}.jar" />
685
            </zipgroupfileset>
686
            </zipgroupfileset>
686
            <fileset file="${basedir}/conf/pig-default.properties" />
687
            <fileset file="${basedir}/conf/pig-default.properties" />
687
            <fileset file="${basedir}/src/main/jruby/pigudf.rb" />
688
            <fileset file="${basedir}/src/main/jruby/pigudf.rb" />
688
            <exclude name="hadoop-site.xml" />
689
            <exclude name="hadoop-site.xml" />
689
        </jar>
690
        </jar>
[+20] [20] 969 lines
trunk/ivy.xml
Diff Revision 1 Diff Revision 2
 
trunk/bin/pig
Diff Revision 1 Diff Revision 2
 
trunk/ivy/libraries.properties
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/expressionOperators/POUserFunc.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/BinInterSedes.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/FieldIsNullException.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/PrimitiveTuple.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/SchemaTuple.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/SchemaTupleClassGenerator.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/SchemaTupleFactory.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/Tuple.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/TupleFactory.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/TypeAwareTuple.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/data/utils/SedesHelper.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/impl/PigContext.java
Diff Revision 1 Diff Revision 2
 
trunk/src/org/apache/pig/newplan/logical/expression/UserFuncExpression.java
Diff Revision 1 Diff Revision 2
 
  1. trunk/build.xml: Loading...
  2. trunk/ivy.xml: Loading...
  3. trunk/bin/pig: Loading...
  4. trunk/ivy/libraries.properties: Loading...
  5. trunk/src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/expressionOperators/POUserFunc.java: Loading...
  6. trunk/src/org/apache/pig/data/BinInterSedes.java: Loading...
  7. trunk/src/org/apache/pig/data/FieldIsNullException.java: Loading...
  8. trunk/src/org/apache/pig/data/PrimitiveTuple.java: Loading...
  9. trunk/src/org/apache/pig/data/SchemaTuple.java: Loading...
  10. trunk/src/org/apache/pig/data/SchemaTupleClassGenerator.java: Loading...
  11. trunk/src/org/apache/pig/data/SchemaTupleFactory.java: Loading...
  12. trunk/src/org/apache/pig/data/Tuple.java: Loading...
  13. trunk/src/org/apache/pig/data/TupleFactory.java: Loading...
  14. trunk/src/org/apache/pig/data/TypeAwareTuple.java: Loading...
  15. trunk/src/org/apache/pig/data/utils/SedesHelper.java: Loading...
  16. trunk/src/org/apache/pig/impl/PigContext.java: Loading...
  17. trunk/src/org/apache/pig/newplan/logical/expression/UserFuncExpression.java: Loading...