Package io.trino.plugin.deltalake
Record Class DeltaLakeTable.DeltaLakeColumn
java.lang.Object
java.lang.Record
io.trino.plugin.deltalake.DeltaLakeTable.DeltaLakeColumn
- Enclosing class:
DeltaLakeTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationExpressionrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DeltaLakeColumn
public DeltaLakeColumn(String name, Object type, boolean nullable, @Nullable String comment, @Nullable Map<String, Object> metadata, Optional<String> generationExpression) Creates an instance of aDeltaLakeColumnrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentnullable- the value for thenullablerecord componentcomment- the value for thecommentrecord componentmetadata- the value for themetadatarecord componentgenerationExpression- the value for thegenerationExpressionrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
generationExpression
Returns the value of thegenerationExpressionrecord component.- Returns:
- the value of the
generationExpressionrecord component
-