Class RddRdfLoaderRegistryImpl

java.lang.Object
net.sansa_stack.spark.io.rdf.input.impl.RddRdfLoaderRegistryImpl
All Implemented Interfaces:
RddRdfLoaderRegistry

public class RddRdfLoaderRegistryImpl extends Object implements 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

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.jena.ext.com.google.common.collect.Table<org.apache.jena.riot.Lang,Class<?>,RddRdfLoader<?>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> RddRdfLoader<T>
    find(org.apache.jena.riot.Lang lang, Class<T> rdfType)
    Search the registry for a loader that can supply a resource of language 'lang' as records of type rdfType.
    get()
     
    static void
     
    <T> void
    register(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)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • registry

      protected org.apache.jena.ext.com.google.common.collect.Table<org.apache.jena.riot.Lang,Class<?>,RddRdfLoader<?>> registry
  • Constructor Details

    • RddRdfLoaderRegistryImpl

      public RddRdfLoaderRegistryImpl()
  • Method Details

    • get

      public static RddRdfLoaderRegistry get()
    • loadDefaults

      public static void loadDefaults(RddRdfLoaderRegistry registry)
    • register

      public <T> void register(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<T> loader)
      Description copied from interface: RddRdfLoaderRegistry
      Registration where the (underlying hadoop inputformat-based) loader loads items of type X and the result type is also X
      Specified by:
      register in interface RddRdfLoaderRegistry
    • registerMapped

      public <T, X> void registerMapped(org.apache.jena.riot.Lang lang, Class<T> targetType, RddRdfLoader<X> loader)
      Description copied from interface: RddRdfLoaderRegistry
      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)
      Specified by:
      registerMapped in interface RddRdfLoaderRegistry
    • find

      public <T> RddRdfLoader<T> find(org.apache.jena.riot.Lang lang, Class<T> rdfType)
      Description copied from interface: RddRdfLoaderRegistry
      Search 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:
      find in interface RddRdfLoaderRegistry