/
NativeStoreSchema.java
53 lines (43 loc) · 2.28 KB
/
NativeStoreSchema.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*******************************************************************************/
package org.eclipse.rdf4j.sail.nativerdf.config;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.ValueFactory;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.sail.nativerdf.NativeStore;
/**
* Defines constants for the NativeStore schema which is used by {@link NativeStoreFactory}s to initialize
* {@link NativeStore}s.
*
* @author Arjohn Kampman
*/
public class NativeStoreSchema {
/** The NativeStore schema namespace (<tt>http://www.openrdf.org/config/sail/native#</tt>). */
public static final String NAMESPACE = "http://www.openrdf.org/config/sail/native#";
/** <tt>http://www.openrdf.org/config/sail/native#tripleIndexes</tt> */
public final static IRI TRIPLE_INDEXES;
/** <tt>http://www.openrdf.org/config/sail/native#forceSync</tt> */
public final static IRI FORCE_SYNC;
/** <tt>http://www.openrdf.org/config/sail/native#valueCacheSize</tt> */
public final static IRI VALUE_CACHE_SIZE;
/** <tt>http://www.openrdf.org/config/sail/native#valueIDCacheSize</tt> */
public final static IRI VALUE_ID_CACHE_SIZE;
/** <tt>http://www.openrdf.org/config/sail/native#namespaceCacheSize</tt> */
public final static IRI NAMESPACE_CACHE_SIZE;
/** <tt>http://www.openrdf.org/config/sail/native#namespaceIDCacheSize</tt> */
public final static IRI NAMESPACE_ID_CACHE_SIZE;
static {
ValueFactory factory = SimpleValueFactory.getInstance();
TRIPLE_INDEXES = factory.createIRI(NAMESPACE, "tripleIndexes");
FORCE_SYNC = factory.createIRI(NAMESPACE, "forceSync");
VALUE_CACHE_SIZE = factory.createIRI(NAMESPACE, "valueCacheSize");
VALUE_ID_CACHE_SIZE = factory.createIRI(NAMESPACE, "valueIDCacheSize");
NAMESPACE_CACHE_SIZE = factory.createIRI(NAMESPACE, "namespaceCacheSize");
NAMESPACE_ID_CACHE_SIZE = factory.createIRI(NAMESPACE, "namespaceIDCacheSize");
}
}