@InternalUseOnly @Deprecated public class ValueStore extends AbstractValueFactory
| Modifier and Type | Field and Description |
|---|---|
static int |
NAMESPACE_CACHE_SIZE
Deprecated.
The default namespace cache size.
|
static int |
NAMESPACE_ID_CACHE_SIZE
Deprecated.
The default namespace id cache size.
|
static int |
VALUE_CACHE_SIZE
Deprecated.
The default value cache size.
|
static int |
VALUE_ID_CACHE_SIZE
Deprecated.
The default value id cache size.
|
| Constructor and Description |
|---|
ValueStore(File dataDir)
Deprecated.
|
ValueStore(File dataDir,
boolean forceSync)
Deprecated.
|
ValueStore(File dataDir,
boolean forceSync,
int valueCacheSize,
int valueIDCacheSize,
int namespaceCacheSize,
int namespaceIDCacheSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency()
Deprecated.
Checks that every value has exactly one ID.
|
void |
clear()
Deprecated.
Removes all values from the ValueStore.
|
void |
close()
Deprecated.
Closes the ValueStore, releasing any file references, etc.
|
NativeBNode |
createBNode(String nodeID)
Deprecated.
Creates a new blank node with the given node identifier.
|
NativeIRI |
createIRI(String uri)
Deprecated.
Creates a new IRI from the supplied string-representation.
|
NativeIRI |
createIRI(String namespace,
String localName)
Deprecated.
Creates a new IRI from the supplied namespace and local name.
|
NativeLiteral |
createLiteral(String value)
Deprecated.
Creates a new literal with the supplied label.
|
NativeLiteral |
createLiteral(String value,
IRI datatype)
Deprecated.
Creates a new literal with the supplied label and datatype.
|
NativeLiteral |
createLiteral(String value,
String language)
Deprecated.
Creates a new literal with the supplied label and language attribute.
|
int |
getID(Value value)
Deprecated.
Gets the ID for the specified value.
|
NativeBNode |
getNativeBNode(BNode bnode)
Deprecated.
Creates a NativeBNode that is equal to the supplied bnode.
|
NativeLiteral |
getNativeLiteral(Literal l)
Deprecated.
Creates an NativeLiteral that is equal to the supplied literal.
|
NativeResource |
getNativeResource(Resource resource)
Deprecated.
|
NativeIRI |
getNativeURI(IRI uri)
Deprecated.
Creates a NativeURI that is equal to the supplied URI.
|
NativeValue |
getNativeValue(Value value)
Deprecated.
|
Lock |
getReadLock()
Deprecated.
Gets a read lock on this value store that can be used to prevent values from being removed while the lock is
active.
|
ValueStoreRevision |
getRevision()
Deprecated.
|
NativeValue |
getValue(int id)
Deprecated.
Gets the value for the specified ID.
|
static void |
main(String[] args)
Deprecated.
|
int |
storeValue(Value value)
Deprecated.
Stores the supplied value and returns the ID that has been assigned to it.
|
void |
sync()
Deprecated.
Synchronizes any changes that are cached in memory to disk.
|
createBNode, createFPLiteral, createFPLiteral, createIntegerLiteral, createIntegerLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral, createNumericLiteral, createStatement, createStatement, createTriple, initBNodeParamscreateLiteral, createLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateLiteral, createStatement, createStatement, createURI, createURIpublic static final int VALUE_CACHE_SIZE
public static final int VALUE_ID_CACHE_SIZE
public static final int NAMESPACE_CACHE_SIZE
public static final int NAMESPACE_ID_CACHE_SIZE
public ValueStore(File dataDir) throws IOException
IOExceptionpublic ValueStore(File dataDir, boolean forceSync) throws IOException
IOExceptionpublic ValueStore(File dataDir, boolean forceSync, int valueCacheSize, int valueIDCacheSize, int namespaceCacheSize, int namespaceIDCacheSize) throws IOException
IOExceptionpublic ValueStoreRevision getRevision()
public Lock getReadLock() throws InterruptedException
InterruptedExceptionpublic NativeValue getValue(int id) throws IOException
id - A value ID.IOException - If an I/O error occurred.public int getID(Value value) throws IOException
value - A value.NativeValue.UNKNOWN_ID if no such ID could be found.IOException - If an I/O error occurred.public int storeValue(Value value) throws IOException
value - The Value to store.IOException - If an I/O error occurred.public void clear()
throws IOException
IOException - If an I/O error occurred.public void sync()
throws IOException
IOException - If an I/O error occurred.public void close()
throws IOException
IOException - If an I/O error occurred.public void checkConsistency()
throws SailException,
IOException
IOExceptionSailExceptionpublic NativeIRI createIRI(String uri)
ValueFactorycreateIRI in interface ValueFactorycreateIRI in class AbstractValueFactoryuri - A string-representation of a IRI.public NativeIRI createIRI(String namespace, String localName)
ValueFactorycreateIRI(namespace+localName), but allows the ValueFactory to reuse supplied
namespace and local name strings whenever possible. Note that the values returned by IRI.getNamespace()
and IRI.getLocalName() are not necessarily the same as the values that are supplied to this method.createIRI in interface ValueFactorycreateIRI in class AbstractValueFactorynamespace - The IRI's namespace.localName - The IRI's local name.public NativeBNode createBNode(String nodeID)
ValueFactorycreateBNode in interface ValueFactorycreateBNode in class AbstractValueFactorynodeID - The blank node identifier.public NativeLiteral createLiteral(String value)
ValueFactoryLiteral.getDatatype() for the returned
object must be xsd:string.createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactoryvalue - The literal's label, must not be null.public NativeLiteral createLiteral(String value, String language)
ValueFactoryLiteral.getDatatype() for the returned object must be
rdf:langString.createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactoryvalue - The literal's label, must not be null.language - The literal's language attribute, must not be null.public NativeLiteral createLiteral(String value, IRI datatype)
ValueFactorycreateLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactoryvalue - The literal's label, must not be null.datatype - The literal's datatype. If it is null, the datatype
xsd:string will be assigned to this
literal.public NativeValue getNativeValue(Value value)
public NativeResource getNativeResource(Resource resource)
public NativeIRI getNativeURI(IRI uri)
public NativeBNode getNativeBNode(BNode bnode)
public NativeLiteral getNativeLiteral(Literal l)
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.