Interface RddRdfLoaderRegistry

All Known Implementing Classes:
RddRdfLoaderRegistryImpl

public interface RddRdfLoaderRegistry
  • 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.
    <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)
  • Method Details

    • register

      <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
    • registerMapped

      <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)
    • find

      <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. Returns null if no such loader is found.