|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.CachedDataStoreFactory
public class CachedDataStoreFactory
DataStoreFactory implementation that reads columns and caches them
for later use.
The actual storage mechanism is provided by an externally supplied
CachedColumnFactory
.
Constructor Summary | |
---|---|
CachedDataStoreFactory(CachedColumnFactory colFact)
Constructor. |
Method Summary | |
---|---|
DataStore |
readDataStore(DataSpec[] dataSpecs,
DataStore prevStore)
Generates a DataStore capable of supplying the data for a given list of DataSpec objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedDataStoreFactory(CachedColumnFactory colFact)
colFact
- object which provides the storage for caching
arrays of typed dataMethod Detail |
---|
public DataStore readDataStore(DataSpec[] dataSpecs, DataStore prevStore) throws IOException, InterruptedException
DataStoreFactory
prevStore
argument may optionally supply the
result of a previous invocation of this method.
The implementation may choose to make use of the internal state
of such an instance for efficiency, for instance by re-using data
that has already been read.
Since the bulk data is managed by the DataStore object,
care should be taken about what happens to the DataStore
objects supplied to and returned from this method.
In particular, code both invoking and implementing this method should
usually make sure not to keep a reference to the prevStore
argument.
This method may perform the actual reading, and therefore take time. It is not intended to be invoked on the event dispatch thread.
readDataStore
in interface DataStoreFactory
dataSpecs
- data specifications; some elements may be nullprevStore
- previously obtained DataStore, or null
IOException
InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |