Package org.apache.spark.sql.types
Class VarcharType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.StringType
org.apache.spark.sql.types.VarcharType
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.spark.sql.types.StringType
canEqual, catalogString, collationId, constraint, equals, hashCode, json, prettyJson, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix, simpleString, sql
Methods inherited from class org.apache.spark.sql.types.DataType
catalogString, COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
VarcharType
public VarcharType(int length)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1) -
length
public int length() -
defaultSize
public int defaultSize()Description copied from class:StringType
The default size of a value of the StringType is 20 bytes.- Overrides:
defaultSize
in classStringType
- Returns:
- (undocumented)
-
typeName
Description copied from class:StringType
Type name that is shown to the customer. If this is an UTF8_BINARY collation output isstring
due to backwards compatibility.- Overrides:
typeName
in classStringType
- Returns:
- (undocumented)
-
jsonValue
public org.json4s.JValue jsonValue()- Overrides:
jsonValue
in classStringType
-
toString
- Overrides:
toString
in classStringType
-