scala - What are the advantages of SpecificMutableRow in Spark SQL? -


from comments seems:

a parent class mutable container objects reused when values changed, resulting in less garbage.

and

a row type holds array specialized container objects, of type mutablevalue, chosen based on datatypes of each column. intent decrease garbage when modifying values of primitive columns.

source - https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/specificmutablerow.scala

can explain how efficent? fact avoids boxing enough?

it avoids boxing in storage, helpful when combined specific interface (i.e. parquet reader or code generated expression evaluation).

the other advantage is reused (unlike generic row). many operations can operate on range of data without allocating objects.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -