Package org.apache.spark.sql.types
Class StringType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.StringType
The data type representing
String values. Please use the singleton DataTypes.StringType.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract static booleanstatic StringintThe default size of a value of the StringType is 20 bytes.abstract static booleanstatic Stringjson()static Stringabstract static intabstract static ObjectproductElement(int n) static scala.collection.Iterator<Object>static Stringstatic Stringstatic Stringsql()static StringtypeName()Methods inherited from class org.apache.spark.sql.types.DataType
catalogString, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql, typeName
-
Constructor Details
-
StringType
public StringType()
-
-
Method Details
-
typeName
-
json
-
prettyJson
-
simpleString
-
catalogString
-
sql
-
canEqual
-
equals
-
productElement
-
productArity
public abstract static int productArity() -
productIterator
-
productPrefix
-
defaultSize
public int defaultSize()The default size of a value of the StringType is 20 bytes.- Specified by:
defaultSizein classDataType- Returns:
- (undocumented)
-