- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FileSystemDatasetFactory
,NativeDatasetFactory
DatasetFactory provides a way to inspect a Dataset potential schema before materializing it.
Thus, the user can peek the schema for data sources and decide on a unified schema.
-
Method Summary
Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
inspect
Schema inspect()Get unified schema for the resulting Dataset.- Returns:
- the schema object inspected
-
finish
Dataset finish()Create a Dataset with auto-inferred schema. Which means, the schema of the resulting Dataset will be the same with callinginspect()
manually.- Returns:
- the Dataset instance
-
finish
Create a Dataset with predefined schema. Schema inference will not be performed.- Parameters:
schema
- a predefined schema- Returns:
- the Dataset instance
-