This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.hive; | |
| import org.apache.hadoop.hive.ql.exec.*; | |
| import org.apache.hadoop.io.*; | |
| public class CreatePerson extends UDF{ | |
| private static class Person{ | |
| private String id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.hive; | |
| import org.apache.hadoop.hive.ql.exec.UDF; | |
| import org.apache.hadoop.hive.serde2.io.DoubleWritable; | |
| import java.util.*; | |
| import org.apache.hadoop.io.Text; | |
| import org.apache.hadoop.io.IntWritable; | |
| public class Multiply extends UDF{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import org.apache.pig.EvalFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.data.DataType; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import org.apache.pig.impl.logicalLayer.schema.Schema; | |
| import org.apache.pig.impl.logicalLayer.FrontendException; | |
| import java.io.IOException; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig2; | |
| import org.apache.pig.EvalFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.data.DataType; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import org.apache.pig.impl.logicalLayer.schema.Schema; | |
| import org.apache.pig.impl.logicalLayer.FrontendException; | |
| import java.io.IOException; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import java.io.IOException; | |
| import org.apache.pig.FilterFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| public class MyMatches extends FilterFunc{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import org.apache.pig.LoadFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.data.DataByteArray; | |
| import org.apache.pig.data.TupleFactory; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit; | |
| import org.apache.hadoop.mapreduce.Job; | |
| import org.apache.hadoop.mapreduce.RecordReader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import org.apache.pig.StoreFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.data.TupleFactory; | |
| import org.apache.pig.data.DataByteArray; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit; | |
| import org.apache.hadoop.mapreduce.Job; | |
| import org.apache.hadoop.mapreduce.RecordWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import org.apache.pig.EvalFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import java.io.IOException; | |
| import org.apache.pig.data.TupleFactory; | |
| import org.apache.pig.data.DataType; | |
| import org.apache.pig.impl.logicalLayer.schema.Schema; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.hadoophacks.pig; | |
| import org.apache.pig.EvalFunc; | |
| import org.apache.pig.data.Tuple; | |
| import org.apache.pig.backend.executionengine.ExecException; | |
| import org.apache.pig.data.DataBag; | |
| import org.apache.pig.FuncSpec; | |
| import java.io.IOException; | |
| import org.apache.pig.impl.logicalLayer.schema.Schema; | |
| import org.apache.pig.impl.logicalLayer.FrontendException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <project> | |
| <!-- | |
| <target name="clean"> | |
| <delete dir="build"/> | |
| </target> | |
| <target name="compile"> | |
| <mkdir dir="build/classes"/> | |
| <javac srcdir="src" destdir="build/classes"/> | |
| </target> |