Package org.apache.jena.riot.system
Class FactoryRDFCaching
- java.lang.Object
-
- org.apache.jena.riot.system.FactoryRDFStd
-
- org.apache.jena.riot.system.FactoryRDFCaching
-
- All Implemented Interfaces:
FactoryRDF
public class FactoryRDFCaching extends FactoryRDFStd
Adds some caching of created nodes - the caching is tuned to RIOT parser usage
-
-
Field Summary
Fields Modifier and Type Field Description static intDftNodeCacheSize
-
Constructor Summary
Constructors Constructor Description FactoryRDFCaching()FactoryRDFCaching(int cacheSize, LabelToNode labelMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodecreateStringLiteral(java.lang.String lexical)NodecreateTypedLiteral(java.lang.String lexical, RDFDatatype datatype)NodecreateURI(java.lang.String uriStr)org.apache.jena.atlas.lib.cache.CacheInfostats()-
Methods inherited from class org.apache.jena.riot.system.FactoryRDFStd
createBlankNode, createBlankNode, createBlankNode, createLangLiteral, createQuad, createTriple, reset
-
-
-
-
Field Detail
-
DftNodeCacheSize
public static final int DftNodeCacheSize
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FactoryRDFCaching
public FactoryRDFCaching()
-
FactoryRDFCaching
public FactoryRDFCaching(int cacheSize, LabelToNode labelMapping)
-
-
Method Detail
-
createURI
public Node createURI(java.lang.String uriStr)
- Specified by:
createURIin interfaceFactoryRDF- Overrides:
createURIin classFactoryRDFStd
-
createTypedLiteral
public Node createTypedLiteral(java.lang.String lexical, RDFDatatype datatype)
- Specified by:
createTypedLiteralin interfaceFactoryRDF- Overrides:
createTypedLiteralin classFactoryRDFStd
-
createStringLiteral
public Node createStringLiteral(java.lang.String lexical)
- Specified by:
createStringLiteralin interfaceFactoryRDF- Overrides:
createStringLiteralin classFactoryRDFStd
-
stats
public org.apache.jena.atlas.lib.cache.CacheInfo stats()
-
-