Package io.deephaven.iceberg.util
Class InferenceInstructions
java.lang.Object
io.deephaven.iceberg.util.InferenceInstructions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceThe Deephaven column namer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanIf inference should fail if any of the Iceberg fields fail to map to Deephaven columns.The namer factory.static InferenceInstructionsof(org.apache.iceberg.Schema schema) Creates a default inference instructions forschema.final org.apache.iceberg.Schemaschema()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 final org.apache.iceberg.Schema schema()The schema to use forinference. The resultingdefinitionwill have columns in the same order as defined by thisSchema. Equality for this Schema is defined bySchemaProvider.sameSchemaAndId(Schema, Schema). -
spec
The partition spec to use forinference. Theidentitytransforms of thisPartitionSpecwill be used to make the resultingdefinitionhave the relevantPartitioningcolumns.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 nameswith an underscore andlegalizethe 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.
-