Class UnivocityRxUtils
java.lang.Object
net.sansa_stack.hadoop.format.univocity.csv.csv.UnivocityRxUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 streamsstatic 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)
-
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 filefileSystem- The hadoop filesystemparserFactory- 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 filefileSystem- The hadoop filesystemparserFactory- 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
-
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 streamsparserFactory- A factory for creating parsers over an input stream- Returns:
- A cold flowable over the csv data
-