Package com.cupoftea.csv.lazy
Class CsvOpenCsvPartitionReader
java.lang.Object
com.cupoftea.csv.lazy.CsvOpenCsvPartitionReader
- All Implemented Interfaces:
PartitionReader,Closeable,AutoCloseable
Fallback streaming partition reader using OpenCSV for complex quoting or non-standard encodings.
-
Constructor Summary
ConstructorsConstructorDescriptionCsvOpenCsvPartitionReader(File file, CSVImporterConfiguration config, int batchSize) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cupoftea.lazy.PartitionReader
aggregateDirect, hasAppliedFilters, supportsDirectAggregation
-
Constructor Details
-
CsvOpenCsvPartitionReader
public CsvOpenCsvPartitionReader(File file, CSVImporterConfiguration config, int batchSize) throws IOException - Throws:
IOException
-
-
Method Details
-
nextBatch
Description copied from interface:PartitionReaderReads the next batch of rows from this partition as aCupOfTeaDataFrame. Returnsnullwhen this partition has been completely exhausted.- Specified by:
nextBatchin interfacePartitionReader- Returns:
- next batch DataFrame, or null if end of partition reached
- Throws:
IOException- if an I/O error occurs while reading
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacePartitionReader- Throws:
IOException
-