Record Class ColumnInfo
java.lang.Object
java.lang.Record
io.trino.plugin.memory.ColumnInfo
-
Constructor Summary
ConstructorsConstructorDescriptionColumnInfo(ColumnHandle handle, String name, Type type, boolean nullable, Optional<String> comment) Creates an instance of aColumnInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ColumnInfo
public ColumnInfo(ColumnHandle handle, String name, Type type, boolean nullable, Optional<String> comment) Creates an instance of aColumnInforecord class.- Parameters:
handle- the value for thehandlerecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentnullable- the value for thenullablerecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
getMetadata
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
handle
Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
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
-