public class DefaultExtensionFactory extends Object implements IExtensionFactory
IExtensionFactory
. The following extensions are supported:
DateTimeExtension
xsd:dateTime
values into
the statement indices.XSDStringExtension
xsd:string
literals into the statement indices.DerivedNumericsExtension
Constructor and Description |
---|
DefaultExtensionFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
_init(IDatatypeURIResolver resolver,
ILexiconConfiguration<BigdataValue> config,
Collection<IExtension<? extends BigdataValue>> extensions)
Give subclasses a chance to add extensions.
|
Iterator<IExtension<? extends BigdataValue>> |
getExtensions()
Return the supported extensions.
|
void |
init(IDatatypeURIResolver resolver,
ILexiconConfiguration<BigdataValue> config)
This will be called very early in the IExtensionFactory lifecycle so that
the
BlobIV s for the IExtension 's datatype URIs will be on
hand when needed. |
public void init(IDatatypeURIResolver resolver, ILexiconConfiguration<BigdataValue> config)
IExtensionFactory
BlobIV
s for the IExtension
's datatype URIs will be on
hand when needed. Also gets other relevant configuration information from
the lexicon such as whether or not to inline xsd:datetimes and what
timezone to use to do so.init
in interface IExtensionFactory
resolver
- The interface used to resolve an URI
to an
BigdataURI
.config
- The ILexiconConfiguration
.protected void _init(IDatatypeURIResolver resolver, ILexiconConfiguration<BigdataValue> config, Collection<IExtension<? extends BigdataValue>> extensions)
resolver
- IDatatypeURIResolver
from
init(IDatatypeURIResolver, ILexiconConfiguration)
.config
- The ILexiconConfiguration
from
init(IDatatypeURIResolver, ILexiconConfiguration)
.extensions
- The extensions that have already been registered.init(IDatatypeURIResolver, ILexiconConfiguration)
public Iterator<IExtension<? extends BigdataValue>> getExtensions()
IExtensionFactory
getExtensions
in interface IExtensionFactory
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.