Package org.apache.nifi.sql
Record Class ScalarType
java.lang.Object
java.lang.Record
org.apache.nifi.sql.ScalarType
- All Implemented Interfaces:
ColumnType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypeprivate final Class<?> The field for thescalarTyperecord component.static final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarTypestatic final ScalarType -
Constructor Summary
ConstructorsConstructorDescriptionScalarType(Class<?> scalarType) Creates an instance of aScalarTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Class<?> Returns the value of thescalarTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
scalarType
The field for thescalarTyperecord component. -
STRING
-
INTEGER
-
LONG
-
BOOLEAN
-
SHORT
-
BYTE
-
CHARACTER
-
DOUBLE
-
FLOAT
-
DECIMAL
-
BIGINT
-
DATE
-
TIME
-
TIMESTAMP
-
UUID
-
OBJECT
-
-
Constructor Details
-
ScalarType
Creates an instance of aScalarTyperecord class.- Parameters:
scalarType- the value for thescalarTyperecord 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). -
scalarType
Returns the value of thescalarTyperecord component.- Returns:
- the value of the
scalarTyperecord component
-