What is spark.driver.maxResultSize?

assuming that a worker wants to send 4G of data to the driver, then having spark.driver.maxResultSize=1G, will cause the worker to send 4 messages (instead of 1 with unlimited spark.driver.maxResultSize). No. If estimated size of the data is larger than maxResultSize given job will be aborted. The goal here is to protect your application from … Read more

How should I communicate between activities? [duplicate]

Use Bundle please read sth more about it. http://developer.android.com/reference/android/os/Bundle.html 1) Use the Bundle from the Intent: Intent mIntent = new Intent(this, Example.class); Bundle extras = mIntent.getExtras(); extras.putString(key, value); 2) Create a new Bundle Intent mIntent = new Intent(this, Example.class); Bundle mBundle = new Bundle(); mBundle.extras.putString(key, value); mIntent.putExtras(mBundle); 3) Use the putExtra() shortcut method of the … Read more

Android – getTargetFragment and setTargetFragment – What are they used for

Use case = 2 fragments hosted by the same activity. Where startActivityForResult() establishes a relationship between 2 activities, setTargetFragment() defines the caller/called relationship between 2 fragments. setTargetFragment(target) lets the “called” fragment know where to send the result. onActivityResult() is called manually in this case. public class Caller extends Fragment Fragment called = Called.newInstance() called.setTargetFragment(this) public … Read more