|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.rio.BasicRioLoader
com.bigdata.rdf.rio.PresortRioLoader
public class PresortRioLoader
Statement handler for the RIO RDF Parser that writes on a
StatementBuffer.
| Field Summary | |
|---|---|
protected IStatementBuffer |
buffer
Used to buffer RDF Values and Statements emitted by
the RDF parser (the value is supplied by the ctor). |
| Fields inherited from interface com.bigdata.rdf.rio.IRioLoader |
|---|
DEBUG, INFO, log |
| Constructor Summary | |
|---|---|
PresortRioLoader(IStatementBuffer buffer)
Sets up parser to load RDF. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.bigdata.rdf.rio.BasicRioLoader |
|---|
addRioLoaderListener, before, cleanUp, getInsertRate, getInsertTime, getParser, getStatementsAdded, loadRdf, loadRdf, loadRdf2, notifyListeners, removeRioLoaderListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IStatementBuffer buffer
Values and Statements emitted by
the RDF parser (the value is supplied by the ctor).
| Constructor Detail |
|---|
public PresortRioLoader(IStatementBuffer buffer)
buffer - The buffer used to collect, sort, and write statements onto
the database.| Method Detail |
|---|
protected void success()
success in class BasicRioLoaderprotected void error(Exception ex)
BasicRioLoader
error 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 RDFHandler
public void endRDF()
throws RDFHandlerException
endRDF in interface RDFHandlerRDFHandlerException
public void handleComment(String arg0)
throws RDFHandlerException
handleComment in interface RDFHandlerRDFHandlerException
public void handleNamespace(String arg0,
String arg1)
throws RDFHandlerException
handleNamespace in interface RDFHandlerRDFHandlerException
public void startRDF()
throws RDFHandlerException
startRDF in interface RDFHandlerRDFHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||