Package org.apache.spark.sql.types
Class DateType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.DateType
The date type represents a valid date in the proleptic Gregorian calendar. Valid range is
 [0001-01-01, 9999-12-31].
 
 Please use the singleton DataTypes.DateType to refer the type.
- Since:
- 1.3.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract static booleanstatic StringintThe default size of a value of the DateType is 4 bytes.abstract static booleanstatic Stringjson()static Stringabstract static intabstract static ObjectproductElement(int n) static StringproductElementName(int n) static scala.collection.Iterator<String>static scala.collection.Iterator<Object>static Stringstatic Stringstatic Stringsql()static StringtypeName()Methods inherited from class org.apache.spark.sql.types.DataTypecatalogString, COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql, typeName
- 
Constructor Details- 
DateTypepublic DateType()
 
- 
- 
Method Details- 
typeName
- 
json
- 
prettyJson
- 
simpleString
- 
catalogString
- 
sql
- 
canEqual
- 
equals
- 
productAritypublic abstract static int productArity()
- 
productElement
- 
productIterator
- 
productPrefix
- 
productElementName
- 
productElementNames
- 
defaultSizepublic int defaultSize()The default size of a value of the DateType is 4 bytes.- Specified by:
- defaultSizein class- DataType
- Returns:
- (undocumented)
 
 
-