org.archive.hadoop.ArchiveMetadataLoader Maven / Gradle / Ivy
The newest version!
package org.archive.hadoop;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Logger;
import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.pig.FileInputLoadFunc;
import org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit;
import org.apache.pig.data.Tuple;
import org.apache.pig.data.TupleFactory;
import org.archive.resource.MetaData;
/**
* Pig Storage Loader for Archive meta data.
*
* @author brad
*
*/
public class ArchiveMetadataLoader extends FileInputLoadFunc {
private final static Logger LOG =
Logger.getLogger(ArchiveMetadataLoader.class.getName());
ResourceRecordReader reader;
protected TupleFactory mTupleFactory = TupleFactory.getInstance();
private ArrayList
© 2015 - 2024 Weber Informatics LLC | Privacy Policy