@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, createIntegerLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral, createStatement, createStatement, createTriple, initBNodeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createLiteral, createStatement, createStatement, createURI, createURI
public 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
IOException
public ValueStore(File dataDir, boolean forceSync) throws IOException
IOException
public ValueStore(File dataDir, boolean forceSync, int valueCacheSize, int valueIDCacheSize, int namespaceCacheSize, int namespaceIDCacheSize) throws IOException
IOException
public ValueStoreRevision getRevision()
public Lock getReadLock() throws InterruptedException
InterruptedException
public 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
IOException
SailException
public NativeIRI createIRI(String uri)
ValueFactory
createIRI
in interface ValueFactory
createIRI
in class AbstractValueFactory
uri
- A string-representation of a IRI.public NativeIRI createIRI(String namespace, String localName)
ValueFactory
createIRI(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 ValueFactory
createIRI
in class AbstractValueFactory
namespace
- The IRI's namespace.localName
- The IRI's local name.public NativeBNode createBNode(String nodeID)
ValueFactory
createBNode
in interface ValueFactory
createBNode
in class AbstractValueFactory
nodeID
- The blank node identifier.public NativeLiteral createLiteral(String value)
ValueFactory
Literal.getDatatype()
for the returned
object must be XSD.STRING
.createLiteral
in interface ValueFactory
createLiteral
in class AbstractValueFactory
value
- The literal's label, must not be null.public NativeLiteral createLiteral(String value, String language)
ValueFactory
Literal.getDatatype()
for the returned object must be RDF.LANGSTRING
.createLiteral
in interface ValueFactory
createLiteral
in class AbstractValueFactory
value
- 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)
ValueFactory
createLiteral
in interface ValueFactory
createLiteral
in class AbstractValueFactory
value
- 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.