|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.load.AbstractRDFTaskFactory<S,T>
public class AbstractRDFTaskFactory<S extends Statement,T extends Runnable>
Factory for tasks for loading RDF resources into a database or validating RDF resources against a database.
| Field Summary | |
|---|---|
protected AbstractTripleStore |
db
The database on which the data will be written. |
boolean |
deleteAfter
Delete files after successful processing when true. |
RDFFormat |
fallback
An attempt will be made to determine the interchange syntax using RDFFormat. |
protected static org.apache.log4j.Logger |
log
|
boolean |
verifyData
Validation of RDF by the RIO parser is disabled unless this is true. |
| Constructor Summary | |
|---|---|
protected |
AbstractRDFTaskFactory(AbstractTripleStore db,
boolean verifyData,
boolean deleteAfter,
RDFFormat fallback,
IStatementBufferFactory bufferFactory)
|
| Method Summary | |
|---|---|
long |
elapsed()
The elapsed time, counting only the time between notifyStart() and notifyEnd(). |
IStatementBufferFactory<S> |
getBufferFactory()
|
RDFFormat |
getRDFFormat(String filename)
Guess at the RDFFormat. |
T |
newTask(String resource)
|
void |
notifyEnd()
Notify that the factory is done running tasks (for now). |
void |
notifyStart()
Notify that the factory will begin running tasks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected final AbstractTripleStore db
public final RDFFormat fallback
RDFFormat. If no determination can be made then the loader
will presume that the files are in the format specified by this
parameter (if any). Files whose format can not be determined will be
logged as errors.
public final boolean verifyData
public final boolean deleteAfter
true.
| Constructor Detail |
|---|
protected AbstractRDFTaskFactory(AbstractTripleStore db,
boolean verifyData,
boolean deleteAfter,
RDFFormat fallback,
IStatementBufferFactory bufferFactory)
| Method Detail |
|---|
public void notifyStart()
beginTime used by elapsed() to report the run time
of the tasks.
public void notifyEnd()
elapsed().
public long elapsed()
notifyStart() and notifyEnd().
public IStatementBufferFactory<S> getBufferFactory()
public RDFFormat getRDFFormat(String filename)
RDFFormat.
filename - Some filename.
RDFFormat -or- null iff
fallback is null and the no format
was recognized for the filename
public T newTask(String resource)
throws Exception
newTask in interface ITaskFactory<T extends Runnable>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||