The schema after converting T
to a Spark SQL row.
A set of expressions, one for each top-level field that can be used to extract the values from a raw object into an InternalRow.
An expression that will construct an object given an InternalRow.
A classtag for T
.
The process of resolution to a given schema throws away information about where a given field is being bound by ordinal instead of by name.
The process of resolution to a given schema throws away information about where a given field is being bound by ordinal instead of by name. This method checks to make sure this process has not been done already in places where we plan to do later composition of encoders.
Returns a copy of this encoder where the expressions used to construct an object from an input row have been bound to the ordinals of the given schema.
Returns a copy of this encoder where the expressions used to construct an object from an input row have been bound to the ordinals of the given schema. Note that you need to first call resolve before bind.
A classtag for T
.
A classtag for T
.
Returns this encoder where it has been bound to its own output (i.
Returns this encoder where it has been bound to its own output (i.e. no remaping of columns is performed).
Returns an object of type T
, extracting the required values from the provided row.
Returns an object of type T
, extracting the required values from the provided row. Note that
you must resolve
and bind
an encoder to a specific schema before you can call this
function.
An expression that will construct an object given an InternalRow.
Returns a new copy of this encoder, where the expressions used by fromRow
are resolved to the
given schema.
The schema after converting T
to a Spark SQL row.
The schema after converting T
to a Spark SQL row.
Returns a new encoder with input columns shifted by delta
ordinals
Returns an encoded version of t
as a Spark SQL row.
Returns an encoded version of t
as a Spark SQL row. Note that multiple calls to
toRow are allowed to return the same actual InternalRow object. Thus, the caller should
copy the result before making another call if required.
A set of expressions, one for each top-level field that can be used to extract the values from a raw object into an InternalRow.
A generic encoder for JVM objects.
The schema after converting
T
to a Spark SQL row.A set of expressions, one for each top-level field that can be used to extract the values from a raw object into an InternalRow.
An expression that will construct an object given an InternalRow.
A classtag for
T
.