Class CompliantTextBatchReader
java.lang.Object
org.apache.drill.exec.store.easy.text.reader.CompliantTextBatchReader
- All Implemented Interfaces:
ManagedReader
Text reader, Complies with the RFC 4180 standard for text/csv files.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.impl.scan.v3.ManagedReader
ManagedReader.EarlyEofException
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCompliantTextBatchReader
(FileSchemaNegotiator schemaNegotiator, TextParsingSettings settings) Create and open the text reader. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Cleanup state once we are finished processing all the records.static TupleMetadata
boolean
next()
Generates the next record batch
-
Field Details
-
COLUMNS_COL
- See Also:
-
-
Constructor Details
-
CompliantTextBatchReader
public CompliantTextBatchReader(FileSchemaNegotiator schemaNegotiator, TextParsingSettings settings) throws ManagedReader.EarlyEofException Create and open the text reader.- Throws:
ManagedReader.EarlyEofException
-
-
Method Details
-
columnsSchema
-
next
public boolean next()Generates the next record batch- Specified by:
next
in interfaceManagedReader
- Returns:
- number of records in the batch
-
close
public void close()Cleanup state once we are finished processing all the records. This would internally close the input stream we are reading from.- Specified by:
close
in interfaceManagedReader
-