toTransient() and nonTransient()
Can someone edit this to give examples of what these functions are supposed to do. I seem to get back the original dataset.
That is essentially what they do, from the surface. A little deeper, they change whether the content of the dataset, is serializable or not. The content in TransientDatasets
is not serializable, meaning they are not persistent. I would need to rely on Phil or perhaps someone from IA to say what expressions return a TransientDataset
. The exception being the recorder()
expression from the Tool Kit, which is noted as returning one.
I personally have not come up with a need for these two expressions, but I am sure that Phil saw a need for them and so they exist.
@lrose, thanks. What exactly does 'serializable' mean in this context?
@Transistor It means that the class implements the Serializable
interface. Which tells the JVM that the state of an object can be serialized into and consequently deserialized from a byte stream. Which means the state of the object can persisted for later use.