|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.sql.Column
org.apache.spark.sql.ColumnName
public class ColumnName
:: Experimental :: A convenient class used for constructing schema.
| Constructor Summary | |
|---|---|
ColumnName(String name)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.spark.sql.Column |
|---|
alias, and, apply, 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, isNotNull, isNull, leq, like, lt, minus, mod, multiply, notEqual, or, otherwise, over, plus, rlike, startsWith, startsWith, substr, substr, toString, unapply, when |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.spark.Logging |
|---|
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning |
| Constructor Detail |
|---|
public ColumnName(String name)
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||