io
.
eels
.
schema
StructType
Related Docs:
object StructType
|
package schema
case class
StructType
(
fields:
Vector
[
Field
]
)
extends
DataType
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
DataType
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
StructType
Serializable
Serializable
Product
Equals
DataType
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
StructType
(
fields:
Vector
[
Field
]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
addField
(
field:
Field
)
:
StructType
def
addField
(
name:
String
)
:
StructType
def
addFieldIfNotExists
(
field:
Field
)
:
StructType
def
addFieldIfNotExists
(
name:
String
)
:
StructType
def
apply
(
name:
String
)
:
Option
[
Field
]
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
canonicalName
:
String
Definition Classes
DataType
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
concat
(
other:
StructType
)
:
StructType
def
contains
(
fieldName:
String
,
caseSensitive:
Boolean
=
true
)
:
Boolean
def
ddl
(
table:
String
)
:
String
val
dups
:
Iterable
[
String
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
field
(
name:
String
,
caseSensitive:
Boolean
=
true
)
:
Option
[
Field
]
def
field
(
pos:
Int
)
:
Field
def
fieldNames
()
:
Seq
[
String
]
val
fields
:
Vector
[
Field
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
indexOf
(
fieldName:
String
,
caseSensitive:
Boolean
)
:
Int
def
indexOf
(
fieldName:
String
)
:
Int
def
indexOf
(
field:
Field
,
caseSensitive:
Boolean
)
:
Int
def
indexOf
(
field:
Field
)
:
Int
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
matches
(
from:
DataType
)
:
Boolean
Definition Classes
DataType
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
partitions
:
Seq
[
Field
]
def
projection
(
fieldNames:
Seq
[
String
]
)
:
StructType
def
removeField
(
name:
String
,
caseSensitive:
Boolean
=
true
)
:
StructType
def
removeFields
(
names:
Seq
[
String
]
)
:
StructType
def
removeFields
(
first:
String
,
rest:
String
*
)
:
StructType
def
renameField
(
from:
String
,
to:
String
)
:
StructType
def
replaceField
(
sourceFieldName:
String
,
targetField:
Field
)
:
StructType
def
replaceFieldType
(
regex:
Regex
,
datatype:
DataType
)
:
StructType
def
replaceFieldType
(
from:
DataType
,
to:
DataType
)
:
StructType
def
show
()
:
String
val
size
:
Int
def
stripFromFieldNames
(
chars:
Seq
[
Char
]
)
:
StructType
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toLowerCase
()
:
StructType
def
updateFieldType
(
fieldName:
String
,
dataType:
DataType
)
:
StructType
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
DataType
Inherited from
AnyRef
Inherited from
Any
Ungrouped