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 booleanIf this is an unmapped instructions.static ColumnInstructionspartitionField(int partitionFieldId) Create column instructions for a partition field.abstract OptionalIntThe partition field id.static ColumnInstructionsschemaField(int fieldId) Create column instructions for a schema field byfield id.abstract OptionalIntThe schema field id.The schema field name.static ColumnInstructionsschemaFieldName(String fieldName) Create column instructions for a schema field by field name.static ColumnInstructionsunmapped()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
Schemaevolution. 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.
-