Constructor and Description |
---|
ColumnName(String name) |
Modifier and Type | Method and Description |
---|---|
StructField |
array(DataType dataType)
Creates a new
StructField of type array. |
StructField |
binary()
Creates a new
StructField of type binary. |
StructField |
date()
Creates a new
StructField of type date. |
StructField |
decimal()
Creates a new
StructField of type decimal. |
StructField |
decimal(int precision,
int scale)
Creates a new
StructField of type decimal. |
StructField |
map(DataType keyType,
DataType valueType)
Creates a new
StructField of type map. |
StructField |
map(MapType mapType) |
StructField |
string()
Creates a new
StructField of type string. |
StructField |
struct(scala.collection.Seq<StructField> fields)
Creates a new
StructField of type struct. |
StructField |
struct(StructType structType)
Creates a new
StructField of type struct. |
StructField |
timestamp()
Creates a new
StructField of type timestamp. |
alias, and, apply, as, as, as, as, as, as, asc, between, bitwiseAND, bitwiseOR, bitwiseXOR, cast, cast, contains, desc, divide, endsWith, endsWith, eqNullSafe, equals, equalTo, explain, geq, getField, getItem, gt, hashCode, in, in, isin, isin, isNaN, isNotNull, isNull, leq, like, lt, minus, mod, multiply, notEqual, or, otherwise, over, plus, rlike, startsWith, startsWith, substr, substr, toString, unapply, when
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public StructField string()
StructField
of type string.public StructField date()
StructField
of type date.public StructField decimal()
StructField
of type decimal.public StructField decimal(int precision, int scale)
StructField
of type decimal.precision
- (undocumented)scale
- (undocumented)public StructField timestamp()
StructField
of type timestamp.public StructField binary()
StructField
of type binary.public StructField array(DataType dataType)
StructField
of type array.dataType
- (undocumented)public StructField map(DataType keyType, DataType valueType)
StructField
of type map.keyType
- (undocumented)valueType
- (undocumented)public StructField map(MapType mapType)
public StructField struct(scala.collection.Seq<StructField> fields)
StructField
of type struct.fields
- (undocumented)public StructField struct(StructType structType)
StructField
of type struct.structType
- (undocumented)