com.mongodb.hadoop.pig.udf.GenMaxKey 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.PigBoxedMaxKey;
import org.apache.pig.data.Tuple;
import java.io.IOException;
/**
* Pig UDF that always returns MaxKey().
*/
public class GenMaxKey extends ByteArrayTypeEvalFunc {
@Override
public PigBoxedMaxKey exec(final Tuple input) throws IOException {
return new PigBoxedMaxKey();
}
}