public class PresortRioLoader extends BasicRioLoader implements RDFHandler
StatementBuffer.| Modifier and Type | Field and Description |
|---|---|
protected IStatementBuffer<?> |
buffer
|
defaultGraph, log, stmtsAdded| Constructor and Description |
|---|
PresortRioLoader(IStatementBuffer<?> buffer)
Sets up parser to load RDF.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF() |
protected void |
error(Exception ex)
Invoked if the parse fails (default is NOP).
|
void |
handleComment(String arg0) |
void |
handleNamespace(String arg0,
String arg1) |
void |
handleStatement(Statement stmt) |
RDFHandler |
newRDFHandler()
Note: YOU MUST override this method to install a different
RDFHandler. |
void |
startRDF() |
protected void |
success()
bulk insert the buffered data into the store.
|
addRioLoaderListener, before, cleanUp, getInsertRate, getInsertTime, getParser, getStatementsAdded, loadRdf, loadRdf, loadRdf2, notifyListeners, removeRioLoaderListenerprotected final IStatementBuffer<?> buffer
public PresortRioLoader(IStatementBuffer<?> buffer)
buffer - The buffer used to collect, sort, and write statements onto
the database.protected void success()
success in class BasicRioLoaderprotected void error(Exception ex)
BasicRioLoadererror in class BasicRioLoaderpublic RDFHandler newRDFHandler()
BasicRioLoaderRDFHandler. The default is the BasicRDFHandler which
does NOTHING.newRDFHandler in class BasicRioLoaderpublic void handleStatement(Statement stmt)
handleStatement in interface RDFHandlerpublic void endRDF()
throws RDFHandlerException
endRDF in interface RDFHandlerRDFHandlerExceptionpublic void handleComment(String arg0) throws RDFHandlerException
handleComment in interface RDFHandlerRDFHandlerExceptionpublic void handleNamespace(String arg0, String arg1) throws RDFHandlerException
handleNamespace in interface RDFHandlerRDFHandlerExceptionpublic void startRDF()
throws RDFHandlerException
startRDF in interface RDFHandlerRDFHandlerExceptionCopyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.