Class NativeStoreProvider
- java.lang.Object
-
- org.eclipse.rdf4j.federated.endpoint.provider.NativeStoreProvider
-
- All Implemented Interfaces:
EndpointProvider<NativeRepositoryInformation>
public class NativeStoreProvider extends Object implements EndpointProvider<NativeRepositoryInformation>
Provider for an Endpoint that uses a RDF4JNativeStoreas underlying repository. For optimization purposes theSailSourceEvaluationStrategyFactoryis used to allow for evaluation of prepared queries without prior optimization. Note that NativeStores are always classified as 'Local'.If the repository location denotes an absolute path, the native store directory must already exist. If a relative path is used, the repository is created on the fly (if necessary).
- Author:
- Andreas Schwarte
-
-
Constructor Summary
Constructors Constructor Description NativeStoreProvider(File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NativeStorecreateNativeStore(File store)Create aNativeStoreand apply theSailSourceEvaluationStrategyFactory.EndpointloadEndpoint(NativeRepositoryInformation repoInfo)
-
-
-
Constructor Detail
-
NativeStoreProvider
public NativeStoreProvider(File baseDir)
-
-
Method Detail
-
loadEndpoint
public Endpoint loadEndpoint(NativeRepositoryInformation repoInfo) throws FedXException
- Specified by:
loadEndpointin interfaceEndpointProvider<NativeRepositoryInformation>- Throws:
FedXException
-
createNativeStore
protected NativeStore createNativeStore(File store)
Create aNativeStoreand apply theSailSourceEvaluationStrategyFactory.- Parameters:
store-- Returns:
- the store
-
-