Package org.apache.nifi.sql
Class ColumnSchema
java.lang.Object
org.apache.nifi.sql.ColumnSchema
A schema that describes a single column in a
NiFiTable-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ColumnTypeprivate final Stringprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionColumnSchema(String name, Class<?> type, boolean nullable) Convenience method to create a schema for a column with a scalar value.ColumnSchema(String name, ColumnType type, boolean nullable) Creates a column schema with the given name and type that is optionally nullable -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()boolean(package private) org.apache.calcite.rel.type.RelDataTypetoRelationalDataType(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory) toString()
-
Field Details
-
name
-
columnType
-
nullable
private final boolean nullable
-
-
Constructor Details
-
ColumnSchema
Convenience method to create a schema for a column with a scalar value.
This is equivalent to calling
new ColumnSchema(name, new ScalarType(type), nullable);- Parameters:
name- the name of the columntype- the type of the columnnullable- whether or not the column supports null values
-
ColumnSchema
Creates a column schema with the given name and type that is optionally nullable- Parameters:
name- the name of the columntype- the type of the columnnullable- whether or not the column supports null values
-
-
Method Details
-
getName
-
isNullable
public boolean isNullable() -
toRelationalDataType
org.apache.calcite.rel.type.RelDataType toRelationalDataType(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory) -
equals
-
hashCode
public int hashCode() -
toString
-