InferenceResolver
The InferenceResolver
class provides a consolidated set of inference options for use in LoadTableOptions
. This class is most useful when the caller does not know the structure of the table being loaded, and thus wants the resultant table definition to be inferred from the Iceberg table schema.
Constructors
The InferenceResolver
class is constructed from its builder:
import io.deephaven.iceberg.util.InferenceResolver
resolver = InferenceResolver.builder()
.failOnUnsupportedTypes(failOnUnsupportedTypes)
.inferPartitioningColumns(inferPartitioningColumns)
.namerFactory(namerFactory)
.schema(schema)
.build()
failOnUnsupportedTypes
: Whether to fail if unsupported data types are encountered during inference.inferPartitioningColumns
: Whether to infer partitioning columns from the Iceberg table.namerFactory
: Theio.deephaven.iceberg.util.InferenceInstructions.Namer.Factory
to use for naming columns.schema
: Theio.deephaven.iceberg.util.SchemaProvider
to use when extracting the schema from the Iceberg table.
Methods
walk
: Walk the resolver with the specified visitor.