Package org.apache.datafusion
Class CsvReadOptions
java.lang.Object
org.apache.datafusion.CsvReadOptions
Configuration knobs for CSV sources passed to
SessionContext.registerCsv(String, String, CsvReadOptions) and SessionContext.readCsv(String, CsvReadOptions).
Mirrors a subset of DataFusion's CsvReadOptions. All setters return this for
fluent chaining. Defaults match the Rust struct: hasHeader = true, delimiter =
',', quote = '"', fileExtension = ".csv", fileCompressionType =
UNCOMPRESSED, all other fields null (meaning the DataFusion default is used, or the
schema is inferred from the file).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment(byte b) delimiter(byte b) escape(byte b) fileExtension(String ext) hasHeader(boolean v) newlinesInValues(boolean v) quote(byte b) schema(org.apache.arrow.vector.types.pojo.Schema schema) schemaInferMaxRecords(long n) terminator(byte b)
-
Constructor Details
-
CsvReadOptions
public CsvReadOptions()
-
-
Method Details
-
hasHeader
-
delimiter
-
quote
-
terminator
-
escape
-
comment
-
newlinesInValues
-
schemaInferMaxRecords
-
fileExtension
-
fileCompressionType
-
schema
-