public class InMemoryStrategy extends Strategy
An import strategy that attempts to read the entire netCDF dataset into memory.
Instances are immutable.
DEFAULT, IN_MEMORY, MERGED_FILE_FLAT_FIELDS, UNMERGED_FILE_FLAT_FIELDS| Modifier and Type | Method and Description |
|---|---|
DataImpl |
getData(NetcdfAdapter adapter)
Returns a VisAD data object corresponding to the netCDF dataset.
|
static InMemoryStrategy |
instance()
Returns an instance of this class.
|
public static InMemoryStrategy instance()
public DataImpl getData(NetcdfAdapter adapter) throws java.io.IOException, VisADException, java.rmi.RemoteException, BadFormException, java.lang.OutOfMemoryError
Returns a VisAD data object corresponding to the netCDF dataset.
This implementation uses the data-merging of Merger.instance().
getData in class Strategyadapter - The netCDF-to-VisAD adapter.VisADException - if a problem occurs in core VisAD -- probably
because a VisAD object couldn't be created.java.io.IOException - if a data access I/O failure occurs.BadFormException - if the netCDF dataset doesn't conform to
conventions implicit in constructing
View.java.lang.OutOfMemoryError - if the netCDF dataset couldn't be imported into
memory.java.rmi.RemoteException - if a Java RMI failure occurs.