Class RddRdfLoaderRegistryImpl
java.lang.Object
net.sansa_stack.spark.io.rdf.input.impl.RddRdfLoaderRegistryImpl
- All Implemented Interfaces:
RddRdfLoaderRegistry
A registry for RddRdfLoaders that can supply input of a specific
Lang
to an RDD of a requested type (Triples, Quads, Datasets, ett).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jena.ext.com.google.common.collect.Table<org.apache.jena.riot.Lang,Class<?>, RddRdfLoader<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RddRdfLoader<T>Search the registry for a loader that can supply a resource of language 'lang' as records of type rdfType.static RddRdfLoaderRegistryget()static voidloadDefaults(RddRdfLoaderRegistry registry) <T> voidregister(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<T> loader) Registration where the (underlying hadoop inputformat-based) loader loads items of type X and the result type is also X<T,X> void registerMapped(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<X> loader) Registration where the (underlying hadoop inputformat-based) loader loads items of type X (such as triples) but the result is mapped to type Y (such as quads)
-
Field Details
-
registry
protected org.apache.jena.ext.com.google.common.collect.Table<org.apache.jena.riot.Lang,Class<?>, registryRddRdfLoader<?>>
-
-
Constructor Details
-
RddRdfLoaderRegistryImpl
public RddRdfLoaderRegistryImpl()
-
-
Method Details
-
get
-
loadDefaults
-
register
public <T> void register(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<T> loader) Description copied from interface:RddRdfLoaderRegistryRegistration where the (underlying hadoop inputformat-based) loader loads items of type X and the result type is also X- Specified by:
registerin interfaceRddRdfLoaderRegistry
-
registerMapped
public <T,X> void registerMapped(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<X> loader) Description copied from interface:RddRdfLoaderRegistryRegistration where the (underlying hadoop inputformat-based) loader loads items of type X (such as triples) but the result is mapped to type Y (such as quads)- Specified by:
registerMappedin interfaceRddRdfLoaderRegistry
-
find
Description copied from interface:RddRdfLoaderRegistrySearch the registry for a loader that can supply a resource of language 'lang' as records of type rdfType. Returns null if no such loader is found.- Specified by:
findin interfaceRddRdfLoaderRegistry
-