Package org.apache.nifi.sql
Record Class ArrayType
java.lang.Object
java.lang.Record
org.apache.nifi.sql.ArrayType
- All Implemented Interfaces:
ColumnType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ColumnTypeThe field for theelementTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArrayType(ColumnType elementType) Creates an instance of aArrayTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.org.apache.calcite.rel.type.RelDataTypegetRelationalDataType(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory) Converts the column into theRelDataTypethat Calcite requiresfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
elementType
The field for theelementTyperecord component.
-
-
Constructor Details
-
ArrayType
Creates an instance of aArrayTyperecord class.- Parameters:
elementType- the value for theelementTyperecord component
-
-
Method Details
-
getRelationalDataType
public org.apache.calcite.rel.type.RelDataType getRelationalDataType(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory) Description copied from interface:ColumnTypeConverts the column into theRelDataTypethat Calcite requires- Specified by:
getRelationalDataTypein interfaceColumnType- Parameters:
typeFactory- the type factory to use for creating the RelDataType- Returns:
- the appropriate RelDataType for Calcite
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-