|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.rio.BasicRioLoader
public class BasicRioLoader
Parses data but does not load it into the indices.
| Field Summary |
|---|
| Fields inherited from interface com.bigdata.rdf.rio.IRioLoader |
|---|
DEBUG, INFO, log |
| Constructor Summary | |
|---|---|
BasicRioLoader(BigdataValueFactory valueFactory)
|
|
| Method Summary | |
|---|---|
void |
addRioLoaderListener(RioLoaderListener l)
Register a listener. |
protected void |
before()
Invoked before parse (default is NOP). |
protected void |
cleanUp()
Invoked from finally clause after parse regardless of success or failure. |
protected void |
error(Exception ex)
Invoked if the parse fails (default is NOP). |
long |
getInsertRate()
|
long |
getInsertTime()
|
protected RDFParser |
getParser(RDFFormat rdfFormat)
Choose the parser based on the RDFFormat specified to the
constructor. |
long |
getStatementsAdded()
|
void |
loadRdf(InputStream is,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
Parse RDF data. |
void |
loadRdf(Reader reader,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
Parse RDF data. |
protected void |
loadRdf2(Object source,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
Core implementation. |
RDFHandler |
newRDFHandler()
Note: YOU MUST override this method to install a different RDFHandler. |
protected void |
notifyListeners()
|
void |
removeRioLoaderListener(RioLoaderListener l)
Remove a listener. |
protected void |
success()
Invoked after successful parse (default is NOP). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicRioLoader(BigdataValueFactory valueFactory)
| Method Detail |
|---|
public final long getStatementsAdded()
getStatementsAdded in interface IRioLoaderpublic final long getInsertTime()
getInsertTime in interface IRioLoaderpublic final long getInsertRate()
getInsertRate in interface IRioLoaderpublic final void addRioLoaderListener(RioLoaderListener l)
IRioLoader
addRioLoaderListener in interface IRioLoaderl - The listener.public final void removeRioLoaderListener(RioLoaderListener l)
IRioLoader
removeRioLoaderListener in interface IRioLoaderl - The listener.protected final void notifyListeners()
protected final RDFParser getParser(RDFFormat rdfFormat)
RDFFormat specified to the
constructor.
RDFFormat?
public final void loadRdf(InputStream is,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
throws Exception
IRioLoader
loadRdf in interface IRioLoaderis - The source from which the data will be read.rdfFormat - The interchange format.verifyData - Verification is enabled when true.
Exception
public final void loadRdf(Reader reader,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
throws Exception
IRioLoader
loadRdf in interface IRioLoaderreader - The source from which the data will be read.baseURI - The base URL for those data.rdfFormat - The interchange format.verifyData - Verification is enabled when true.
Exception
protected void loadRdf2(Object source,
String baseURI,
RDFFormat rdfFormat,
boolean verifyData)
throws Exception
source - A Reader or InputStream.baseURI - rdfFormat - verifyData -
Exceptionprotected void before()
protected void success()
protected void error(Exception ex)
protected void cleanUp()
public RDFHandler newRDFHandler()
RDFHandler. The default is the BasicRDFHandler which
does NOTHING.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||