org.archive.hadoop.func.JSONViewEvalFunc Maven / Gradle / Ivy
package org.archive.hadoop.func;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Logger;
import org.apache.pig.EvalFunc;
import org.apache.pig.data.Tuple;
import org.apache.pig.data.TupleFactory;
import org.archive.format.json.JSONUtils;
import org.json.JSONException;
import org.json.JSONObject;
public class JSONViewEvalFunc extends EvalFunc {
private static final Logger LOG =
Logger.getLogger(JSONViewEvalFunc.class.getName());
protected TupleFactory mTupleFactory = TupleFactory.getInstance();
private ArrayList