Class UnivocityRxUtils

java.lang.Object
net.sansa_stack.hadoop.format.univocity.csv.csv.UnivocityRxUtils

public class UnivocityRxUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record>
    readCsvRecords(String path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
    Create a flowable to a CSV file via hadoop.
    static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record>
    readCsvRecords(Callable<? extends InputStream> inSupp, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
    Create a flowable to a CSV file from a supplier of input streams
    static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record>
    readCsvRecords(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
    Create a flowable to a CSV file via hadoop.
    static io.reactivex.rxjava3.core.Flowable<String[]>
    readCsvRows(String path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
     
    static io.reactivex.rxjava3.core.Flowable<String[]>
    readCsvRows(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
     

    Methods inherited from class java.lang.Object

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

    • UnivocityRxUtils

      public UnivocityRxUtils()
  • Method Details

    • readCsvRecords

      public static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record> readCsvRecords(String path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
      Create a flowable to a CSV file via hadoop. Allows for retrieval of headers.
      Parameters:
      path - A path (string) to a csv file
      fileSystem - The hadoop filesystem
      parserFactory - A factory for creating parsers over an input stream
      Returns:
      A cold flowable over the csv data
    • readCsvRecords

      public static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record> readCsvRecords(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
      Create a flowable to a CSV file via hadoop. Allows for retrieval of headers.
      Parameters:
      path - A path to a csv file
      fileSystem - The hadoop filesystem
      parserFactory - A factory for creating parsers over an input stream
      Returns:
      A cold flowable over the csv data
    • readCsvRows

      public static io.reactivex.rxjava3.core.Flowable<String[]> readCsvRows(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
    • readCsvRows

      public static io.reactivex.rxjava3.core.Flowable<String[]> readCsvRows(String path, org.apache.hadoop.fs.FileSystem fileSystem, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
    • readCsvRecords

      public static io.reactivex.rxjava3.core.Flowable<com.univocity.parsers.common.record.Record> readCsvRecords(Callable<? extends InputStream> inSupp, org.aksw.commons.model.csvw.univocity.UnivocityParserFactory parserFactory)
      Create a flowable to a CSV file from a supplier of input streams
      Parameters:
      inSupp - A supplier of input streams
      parserFactory - A factory for creating parsers over an input stream
      Returns:
      A cold flowable over the csv data