Class RdfSourceFactoryImpl
java.lang.Object
net.sansa_stack.spark.io.rdf.input.impl.RdfSourceFactoryImpl
- All Implemented Interfaces:
RdfSourceFactory
Implementation of a source factory based on spark/hadoop.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.jena.riot.Lang lang) static RdfSourceFactoryfrom(org.apache.spark.sql.SparkSession sparkSession) static org.apache.hadoop.fs.FileSystemReturn a collection to which RdfSources can be added from which a union rdd can be obtainedstatic org.apache.jena.riot.LangprobeLang(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sansa_stack.spark.io.rdf.input.api.RdfSourceFactory
get, get, get, get
-
Field Details
-
sparkSession
protected org.apache.spark.sql.SparkSession sparkSession
-
-
Constructor Details
-
RdfSourceFactoryImpl
public RdfSourceFactoryImpl(org.apache.spark.sql.SparkSession sparkSession)
-
-
Method Details
-
from
-
create
public RdfSourceFromResource create(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.jena.riot.Lang lang) throws Exception - Specified by:
createin interfaceRdfSourceFactory- Throws:
Exception
-
newRdfSourceCollection
Description copied from interface:RdfSourceFactoryReturn a collection to which RdfSources can be added from which a union rdd can be obtained- Specified by:
newRdfSourceCollectionin interfaceRdfSourceFactory
-
probeLang
public static org.apache.jena.riot.Lang probeLang(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem) throws IOException - Throws:
IOException
-
getDefaultFileSystem
- Throws:
IOException
-