org.vivoweb.harvester.util
Class Merge

java.lang.Object
  extended by org.vivoweb.harvester.util.Merge

public class Merge
extends java.lang.Object

Merge multiple rdf files into one

Author:
Christopher Haines (hainesc@ctrip.ufl.edu)

Field Summary
protected static org.slf4j.Logger log
          SLF4J Logger
 
Constructor Summary
Merge(ArgList argList)
          Constructor
Merge(RecordHandler input, RecordHandler output, java.lang.String regex)
          Constructor
Merge(java.lang.String[] args)
          Constructor
 
Method Summary
 void execute()
          Runs the merge
static void main(java.lang.String... args)
          Main method
static void merge(RecordHandler input, RecordHandler output, java.util.regex.Pattern regex)
          Merge records in input using regex and write to output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log
SLF4J Logger

Constructor Detail

Merge

public Merge(RecordHandler input,
             RecordHandler output,
             java.lang.String regex)
Constructor

Parameters:
input - input recordhandler
output - output recordhandler
regex - regex for finding primary records (with a grouping for the subsection to use to find sub-records)

Merge

public Merge(java.lang.String[] args)
      throws java.io.IOException
Constructor

Parameters:
args - commandline arguments
Throws:
java.io.IOException - error creating task

Merge

public Merge(ArgList argList)
      throws java.io.IOException
Constructor

Parameters:
argList - arguments
Throws:
java.io.IOException - error connecting to record handler
Method Detail

merge

public static void merge(RecordHandler input,
                         RecordHandler output,
                         java.util.regex.Pattern regex)
                  throws java.io.IOException
Merge records in input using regex and write to output

Parameters:
input - input recordhandler
output - output recordhandler
regex - regex for finding primary records (with a grouping for the subsection to use to find sub-records)
Throws:
java.io.IOException - error in record handling

execute

public void execute()
             throws java.io.IOException
Runs the merge

Throws:
java.io.IOException - error executing

main

public static void main(java.lang.String... args)
Main method

Parameters:
args - commandline arguments