关注 spark技术分享,
撸spark源码 玩spark最佳实践

TextFileFormat

TextFileFormat

TextFileFormat is a TextBasedFileFormat for text format.

TextFileFormat uses text options while loading a dataset.

Table 1. TextFileFormat’s Options
Option Default Value Description

compression

Compression codec that can be either one of the known aliases or a fully-qualified class name.

wholetext

false

Enables loading a file as a single row (i.e. not splitting by “\n”)

prepareWrite Method

Note
prepareWrite is part of FileFormat Contract that is used when FileFormatWriter is requested to write the result of a structured query.

prepareWrite…​FIXME

Building Partitioned Data Reader — buildReader Method

Note
buildReader is part of FileFormat Contract to…​FIXME

buildReader…​FIXME

readToUnsafeMem Internal Method

readToUnsafeMem…​FIXME

Note
readToUnsafeMem is used exclusively when TextFileFormat is requested to buildReader
赞(0) 打赏
未经允许不得转载:spark技术分享 » TextFileFormat
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏