Class RddRowSetWriterUtils

java.lang.Object
net.sansa_stack.spark.io.rdf.output.RddRowSetWriterUtils

public class RddRowSetWriterUtils extends Object
Static util methods to write JavaResultSetSpark instances out using hadoop. With isValidLang(Lang) lang instances can be checked early for whether they are supported.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isValidLang(org.apache.jena.riot.Lang lang)
    Check if the given lang has a registered hadoop writer
    static void
    requireValidLang(org.apache.jena.riot.Lang lang)
    Raises an IllegalArgumentException if writing out using the given lang is unsupported.
    static void
    write(JavaResultSetSpark rs, org.apache.hadoop.fs.Path path, org.apache.jena.riot.Lang lang)
     
    static void
    write(org.apache.spark.rdd.RDD<org.apache.jena.sparql.engine.binding.Binding> rdd, org.apache.hadoop.fs.Path path, List<org.apache.jena.sparql.core.Var> vars, org.apache.jena.riot.Lang lang)
     

    Methods inherited from class java.lang.Object

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

    • RddRowSetWriterUtils

      public RddRowSetWriterUtils()
  • Method Details

    • isValidLang

      public static boolean isValidLang(org.apache.jena.riot.Lang lang)
      Check if the given lang has a registered hadoop writer
    • requireValidLang

      public static void requireValidLang(org.apache.jena.riot.Lang lang)
      Raises an IllegalArgumentException if writing out using the given lang is unsupported.
    • write

      public static void write(JavaResultSetSpark rs, org.apache.hadoop.fs.Path path, org.apache.jena.riot.Lang lang)
    • write

      public static void write(org.apache.spark.rdd.RDD<org.apache.jena.sparql.engine.binding.Binding> rdd, org.apache.hadoop.fs.Path path, List<org.apache.jena.sparql.core.Var> vars, org.apache.jena.riot.Lang lang)