public class AbstractRDFTaskFactory<S extends org.openrdf.model.Statement,T extends Runnable> extends Object implements ITaskFactory<T>
Modifier and Type | Field and Description |
---|---|
protected AbstractTripleStore |
db
The database on which the data will be written.
|
boolean |
deleteAfter
Delete files after successful processing when
true . |
org.openrdf.rio.RDFFormat |
fallback
An attempt will be made to determine the interchange syntax using
RDFFormat . |
protected static org.apache.log4j.Logger |
log |
RDFParserOptions |
parserOptions
RDFParser options.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractRDFTaskFactory(AbstractTripleStore db,
RDFParserOptions parserOptions,
boolean deleteAfter,
org.openrdf.rio.RDFFormat fallback,
IStatementBufferFactory bufferFactory) |
Modifier and Type | Method and Description |
---|---|
long |
elapsed()
The elapsed time, counting only the time between
notifyStart() and notifyEnd() . |
IStatementBufferFactory<S> |
getBufferFactory() |
org.openrdf.rio.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.
|
protected static final org.apache.log4j.Logger log
protected final AbstractTripleStore db
public final org.openrdf.rio.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 RDFParserOptions parserOptions
public final boolean deleteAfter
true
.protected AbstractRDFTaskFactory(AbstractTripleStore db, RDFParserOptions parserOptions, boolean deleteAfter, org.openrdf.rio.RDFFormat fallback, IStatementBufferFactory bufferFactory)
public void notifyStart()
public void notifyEnd()
elapsed()
.public long elapsed()
notifyStart()
and notifyEnd()
.public IStatementBufferFactory<S> getBufferFactory()
public org.openrdf.rio.RDFFormat getRDFFormat(String filename)
RDFFormat
.filename
- Some filename.RDFFormat
-or- null
iff
fallback
is null
and the no format
was recognized for the filenameCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.