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 SummaryNested classes/interfaces inherited from interface org.apache.spark.internal.Loggingorg.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Columnalias, 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, transform, try_cast, try_cast, when, withFieldMethods inherited from interface org.apache.spark.internal.LogginginitializeForcefully, 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, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
- 
Constructor Details- 
ColumnName
 
- 
- 
Method Details- 
arrayCreates a newStructFieldof type array.- Parameters:
- dataType- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
binaryCreates a newStructFieldof type binary.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
dateCreates a newStructFieldof type date.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
decimalCreates a newStructFieldof type decimal.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
decimalCreates a newStructFieldof type decimal.- Parameters:
- precision- (undocumented)
- scale- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
mapCreates a newStructFieldof type map.- Parameters:
- keyType- (undocumented)
- valueType- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
map
- 
stringCreates a newStructFieldof type string.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
structCreates a newStructFieldof type struct.- Parameters:
- fields- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
structCreates a newStructFieldof type struct.- Parameters:
- structType- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
timestampCreates a newStructFieldof type timestamp.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
 
-