Package org.apache.arrow.datafusion
Class ListingTableConfig.Builder
java.lang.Object
org.apache.arrow.datafusion.ListingTableConfig.Builder
- Enclosing class:
- ListingTableConfig
A Builder for
ListingTableConfig instances-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newListingTableConfig.BuilderCreate a newListingTableConfig.Builder -
Method Summary
Modifier and TypeMethodDescriptionbuild(SessionContext context) Create the listing table config.withListingOptions(ListingOptions options) Specify theListingOptionsto use
-
Constructor Details
-
Builder
Create a newListingTableConfig.Builder- Parameters:
tablePath- The path where data files are stored. This may be a file system path or a URL with a scheme. When no scheme is provided, glob expressions may be used to filter files.
-
Builder
Create a newListingTableConfig.Builder- Parameters:
tablePaths- The paths where data files are stored. This may be an array of file system paths or an array of URLs with a scheme. When no scheme is provided, glob expressions may be used to filter files.
-
-
Method Details
-
withListingOptions
Specify theListingOptionsto use- Parameters:
options- TheListingOptionsto use- Returns:
- this Builder instance
-
build
Create the listing table config. This is async as the schema may need to be inferred- Parameters:
context- TheSessionContextto use when inferring the schema- Returns:
- Future that will complete with the table config
-