Package io.deephaven.iceberg.util
Class InferenceInstructions
java.lang.Object
io.deephaven.iceberg.util.InferenceInstructions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
The Deephaven column namer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
If inference should fail if any of the Iceberg fields fail to map to Deephaven columns.The namer factory.static InferenceInstructions
of
(org.apache.iceberg.Schema schema) Creates a default inference instructions forschema
.abstract org.apache.iceberg.Schema
schema()
The schema to use forinference
.abstract Optional<org.apache.iceberg.PartitionSpec>
spec()
The partition spec to use forinference
.
-
Constructor Details
-
InferenceInstructions
public InferenceInstructions()
-
-
Method Details
-
builder
-
of
Creates a default inference instructions forschema
.- Parameters:
schema
- the schema- Returns:
- the inference instructions
-
schema
public abstract org.apache.iceberg.Schema schema()The schema to use forinference
. The resultingdefinition
will have columns in the same order as defined by thisSchema
. -
spec
The partition spec to use forinference
. Theidentity
transforms of thisPartitionSpec
will be used to make the resultingdefinition
have the relevantPartitioning
columns.Warning: inferring using a partition spec for general-purpose use is dangerous. This is only meant to be applied in situations where callers are working with a fixed set of data files that have this spec (or a superset of this spec); or, when the caller is able to guarantee that all current and future data files will have this spec (or a superset of this spec).
-
namerFactory
The namer factory. Defaults tofieldName("_")
, which will create Deephaven column name by joining together thefield names
with an underscore andlegalize
the name if necessary. -
failOnUnsupportedTypes
@Default public boolean failOnUnsupportedTypes()If inference should fail if any of the Iceberg fields fail to map to Deephaven columns. By default, isfalse
.
-