Package io.deephaven.iceberg.util
Class ColumnInstructions
java.lang.Object
io.deephaven.iceberg.util.ColumnInstructions
The instructions for mapping a Deephaven column in
Resolver.columnInstructions()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
If this is an unmapped instructions.static ColumnInstructions
partitionField
(int partitionFieldId) Create column instructions for a partition field.abstract OptionalInt
The partition field id.static ColumnInstructions
schemaField
(int fieldId) Create column instructions for a schema field byfield id
.abstract OptionalInt
The schema field id.The schema field name.static ColumnInstructions
schemaFieldName
(String fieldName) Create column instructions for a schema field by field name.static ColumnInstructions
unmapped()
Create an unmapped column instructions, where neither schema field nor partition field is referenced.
-
Constructor Details
-
ColumnInstructions
public ColumnInstructions()
-
-
Method Details
-
unmapped
Create an unmapped column instructions, where neither schema field nor partition field is referenced.- Returns:
- the column instructions
-
schemaField
Create column instructions for a schema field byfield id
.- Parameters:
fieldId
- the field id- Returns:
- the column instructions
-
schemaFieldName
Create column instructions for a schema field by field name.Warning: referencing a field by name is discouraged, as it is not guaranteed to be a stable reference across
Schema
evolution. This is provided as a convenience.- Parameters:
fieldName
- the field name- Returns:
- the column instructions
-
partitionField
Create column instructions for a partition field.- Parameters:
partitionFieldId
- the partition field id- Returns:
- the column instructions
-
schemaFieldId
The schema field id. -
schemaFieldName
The schema field name. -
partitionFieldId
The partition field id. -
isUnmapped
public final boolean isUnmapped()If this is an unmapped instructions. That is, there is no reference to a schema field nor partition field.
-