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,org.apache.spark.sql.internal.TableValuedFunctionArgument
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newStructFieldof type array.binary()Creates a newStructFieldof type binary.date()Creates a newStructFieldof type date.decimal()Creates a newStructFieldof type decimal.decimal(int precision, int scale) Creates a newStructFieldof type decimal.Creates a newStructFieldof type map.string()Creates a newStructFieldof type string.struct(StructType structType) Creates a newStructFieldof type struct.struct(scala.collection.immutable.Seq<StructField> fields) Creates a newStructFieldof type struct.Creates a newStructFieldof 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, geq, getField, getItem, gt, hashCode, ilike, isin, isin, isin, isInCollection, isInCollection, isNaN, isNotNull, isNull, leq, like, lt, minus, mod, multiply, name, node, notEqual, or, otherwise, outer, over, over, plus, rlike, startsWith, startsWith, substr, substr, toString, try_cast, try_cast, when, withFieldMethods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, 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 newStructFieldof type array.- Parameters:
dataType- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
binary
Creates a newStructFieldof type binary.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
date
Creates a newStructFieldof type date.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
decimal
Creates a newStructFieldof type decimal.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
decimal
Creates a newStructFieldof type decimal.- Parameters:
precision- (undocumented)scale- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
map
Creates a newStructFieldof type map.- Parameters:
keyType- (undocumented)valueType- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
map
-
string
Creates a newStructFieldof type string.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
struct
Creates a newStructFieldof type struct.- Parameters:
fields- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
struct
Creates a newStructFieldof type struct.- Parameters:
structType- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
timestamp
Creates a newStructFieldof type timestamp.- Returns:
- (undocumented)
- Since:
- 1.3.0
-