Converts a Row to another Row given a sequence of expression that define each column of the
new row. If the schema of the input row is specified, then the given expression will be bound
to that schema.
In contrast to a normal projection, a MutableProjection reuses the same underlying row object
each time an input row is added. This significantly reduces the cost of calculating the
projection, but means that it is not safe to hold on to a reference to a Row after next()
has been called on the Iterator that produced it. Instead, the user must call Row.copy()
and hold on to the returned Row before calling next().
Converts a Row to another Row given a sequence of expression that define each column of the new row. If the schema of the input row is specified, then the given expression will be bound to that schema.
In contrast to a normal projection, a MutableProjection reuses the same underlying row object each time an input row is added. This significantly reduces the cost of calculating the projection, but means that it is not safe to hold on to a reference to a Row after
next()
has been called on the Iterator that produced it. Instead, the user must callRow.copy()
and hold on to the returned Row before callingnext()
.