public class StructField extends Object
| Constructor and Description |
|---|
StructField(ColumnIdentifier columnIdentifier,
DataType dataType)
Creates a new StructField with nullable column.
|
StructField(ColumnIdentifier columnIdentifier,
DataType dataType,
boolean nullable)
Creates a new StructField.
|
StructField(String name,
DataType dataType)
Creates a new StructField with nullable column.
|
StructField(String name,
DataType dataType,
boolean nullable)
Creates a new StructField.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnIdentifier |
columnIdentifier()
Retrieves the column identifier.
|
DataType |
dataType()
Retrieves the column data type.
|
boolean |
equals(Object other)
Verifies if a StructField equals to this one.
|
int |
hashCode()
Calculates the hash code of this StructField Object.
|
String |
name()
Retrieves the column name.
|
boolean |
nullable()
Verifies if this column is nullable.
|
String |
toString()
Generates a String value to represent this StructField.
|
public StructField(ColumnIdentifier columnIdentifier, DataType dataType, boolean nullable)
columnIdentifier - A ColumnIdentifier presenting column namedataType - The column data typenullable - Whether the column is nullable or notpublic StructField(ColumnIdentifier columnIdentifier, DataType dataType)
columnIdentifier - A ColumnIdentifier presenting column namedataType - The column data typepublic StructField(String name, DataType dataType, boolean nullable)
name - The column namedataType - The column data typenullable - Whether the column is nullable or notpublic String name()
public ColumnIdentifier columnIdentifier()
public DataType dataType()
public boolean nullable()
public String toString()
public boolean equals(Object other)
© 2022 Snowflake Inc. All Rights Reserved