public class CharType extends DataType implements scala.Product, scala.Serializable
Constructor and Description |
---|
CharType(int length) |
Modifier and Type | Method and Description |
---|---|
abstract static R |
apply(T1 v1) |
int |
defaultSize()
The default size of a value of this data type, used internally for size estimation.
|
int |
length() |
String |
toString() |
String |
typeName()
Name of the type used in JSON serialization.
|
static boolean |
unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
Enables matching against AtomicType for expressions:
|
canWrite, catalogString, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql
public abstract static R apply(T1 v1)
public int length()
public int defaultSize()
DataType
defaultSize
in class DataType
public String typeName()
DataType
public String toString()
toString
in class Object
public static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
case Cast(child @ AtomicType(), StringType) =>
...
e
- (undocumented)