public static class ParquetTableSource.Builder extends Object
ParquetTableSource
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ParquetTableSource |
build()
Builds the ParquetTableSource for this builder.
|
ParquetTableSource.Builder |
forParquetSchema(org.apache.parquet.schema.MessageType parquetSchema)
Sets the Parquet schema of the files to read as a String.
|
ParquetTableSource.Builder |
path(String path)
Sets the path of Parquet files.
|
ParquetTableSource.Builder |
path(String path,
boolean recursive)
Sets the path of the Parquet files.
|
ParquetTableSource.Builder |
withConfiguration(Configuration config)
Sets a Hadoop
Configuration for the Parquet Reader. |
public ParquetTableSource.Builder path(String path)
path
- the path of the Parquet files.public ParquetTableSource.Builder path(String path, boolean recursive)
path
- The path of the Parquet filesrecursive
- Flag whether to enumeratepublic ParquetTableSource.Builder forParquetSchema(org.apache.parquet.schema.MessageType parquetSchema)
parquetSchema
- The parquet schema of the files to read as a String.public ParquetTableSource.Builder withConfiguration(Configuration config)
Configuration
for the Parquet Reader. If no configuration is
configured, an empty configuration is used.config
- The Hadoop Configuration for the Parquet reader.public ParquetTableSource build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.