com.mongodb.hadoop.pig.udf.GenMinKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongo-hadoop-pig Show documentation
Show all versions of mongo-hadoop-pig Show documentation
The MongoDB Connector for Hadoop is a plugin for Hadoop that provides the ability to use MongoDB as an input source and/or an output destination.
The newest version!
package com.mongodb.hadoop.pig.udf;
import com.mongodb.hadoop.pig.udf.types.PigBoxedMinKey;
import org.apache.pig.data.Tuple;
import java.io.IOException;
/**
* Pig UDF that always returns MinKey().
*/
public class GenMinKey extends ByteArrayTypeEvalFunc {
@Override
public PigBoxedMinKey exec(final Tuple input) throws IOException {
return new PigBoxedMinKey();
}
}