public static class OrcTableSource.Builder extends Object
OrcTableSource
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OrcTableSource |
build()
Builds the OrcTableSource for this builder.
|
OrcTableSource.Builder |
forOrcSchema(String orcSchema)
Sets the ORC schema of the files to read as a String.
|
OrcTableSource.Builder |
forOrcSchema(org.apache.orc.TypeDescription orcSchema)
Sets the ORC schema of the files to read as a
TypeDescription . |
OrcTableSource.Builder |
path(String path)
Sets the path of the ORC file(s).
|
OrcTableSource.Builder |
path(String path,
boolean recursive)
Sets the path of the ORC file(s).
|
OrcTableSource.Builder |
withBatchSize(int batchSize)
Sets the number of rows that are read in a batch.
|
OrcTableSource.Builder |
withConfiguration(Configuration config)
Sets a Hadoop
Configuration for the ORC reader. |
public OrcTableSource.Builder path(String path)
path
- The path of the ORC file(s).public OrcTableSource.Builder path(String path, boolean recursive)
path
- The path of the ORC file(s).recursive
- Flag whether the to enumeratepublic OrcTableSource.Builder forOrcSchema(String orcSchema)
orcSchema
- The ORC schema of the files to read as a String.public OrcTableSource.Builder forOrcSchema(org.apache.orc.TypeDescription orcSchema)
TypeDescription
.orcSchema
- The ORC schema of the files to read as a String.public OrcTableSource.Builder withConfiguration(Configuration config)
Configuration
for the ORC reader. If no configuration is
configured, an empty configuration is used.config
- The Hadoop Configuration for the ORC reader.public OrcTableSource.Builder withBatchSize(int batchSize)
batchSize
- The number of rows that are read in a batch.public OrcTableSource build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.