org.autoplot.datasource.capability.Caching

Caching allows datasets to cache other URIs along with the one requested. For example, a Jython script is executed resulting in four datasets being calculated. Since the URI must only correspond to one dataset, only one of the datasets is used, but instead of throwing out the result, we keep them around in case the client wants to plot a related URI.


reset

reset( ) → void

reset any internal storage, and any subsequent calls should return false to satisfies.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


resetURI

resetURI( String surl ) → void

Set the DataSource's URI to this new one. This must be a URI where satisifies() is true.

Parameters

surl - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


satisfies

satisfies( String surl ) → boolean

return true if the DataSource is able to quickly resolve the data set.

Parameters

surl - a String

Returns:

a boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]