Package org.apache.spark.sql
Class ColumnName
Object
org.apache.spark.sql.Column
org.apache.spark.sql.ColumnName
- All Implemented Interfaces:
org.apache.spark.internal.Logging
A convenient class used for constructing schema.
- Since:
- 1.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newStructField
of type array.binary()
Creates a newStructField
of type binary.date()
Creates a newStructField
of type date.decimal()
Creates a newStructField
of type decimal.decimal
(int precision, int scale) Creates a newStructField
of type decimal.Creates a newStructField
of type map.string()
Creates a newStructField
of type string.struct
(StructType structType) Creates a newStructField
of type struct.struct
(scala.collection.immutable.Seq<StructField> fields) Creates a newStructField
of type struct.Creates a newStructField
of type timestamp.Methods inherited from class org.apache.spark.sql.Column
alias, and, apply, as, as, as, as, as, as, asc, asc_nulls_first, asc_nulls_last, between, bitwiseAND, bitwiseOR, bitwiseXOR, cast, cast, contains, desc, desc_nulls_first, desc_nulls_last, divide, dropFields, endsWith, endsWith, eqNullSafe, equals, equalTo, explain, expr, geq, getField, getItem, gt, hashCode, ilike, isin, isin, isInCollection, isInCollection, isNaN, isNotNull, isNull, leq, like, lt, minus, mod, multiply, name, notEqual, or, otherwise, over, over, plus, rlike, startsWith, startsWith, substr, substr, toString, try_cast, try_cast, unapply, when, withField
Methods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Constructor Details
-
ColumnName
-
-
Method Details
-
array
Creates a newStructField
of type array.- Parameters:
dataType
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
binary
Creates a newStructField
of type binary.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
date
Creates a newStructField
of type date.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
decimal
Creates a newStructField
of type decimal.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
decimal
Creates a newStructField
of type decimal.- Parameters:
precision
- (undocumented)scale
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
map
Creates a newStructField
of type map.- Parameters:
keyType
- (undocumented)valueType
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
map
-
string
Creates a newStructField
of type string.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
struct
Creates a newStructField
of type struct.- Parameters:
fields
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
struct
Creates a newStructField
of type struct.- Parameters:
structType
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
timestamp
Creates a newStructField
of type timestamp.- Returns:
- (undocumented)
- Since:
- 1.3.0
-