|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.SimpleDataStoreFactory
public class SimpleDataStoreFactory
DataStoreFactory implementation that does no caching. It reads the data as required every time. This has low memory requirements. It may also be faster to use for one-pass plots, but probably not if the same column is used for multiple purposes.
Constructor Summary | |
---|---|
SimpleDataStoreFactory()
|
Method Summary | |
---|---|
TupleSequence |
getTupleSequence(DataSpec spec)
Returns the data described by a given DataSpec as a sequence of tuples. |
static DomainMapper[] |
getUserCoordMappers(DataSpec dataSpec,
int icoord)
Utility method to work out the domain mappers for a given coordinate of a DataSpec. |
boolean |
hasData(DataSpec spec)
Indicates whether this store has the data described by a given DataSpec. |
DataStore |
readDataStore(DataSpec[] specs,
DataStore prevStore)
Executes instantly and returns this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDataStoreFactory()
Method Detail |
---|
public boolean hasData(DataSpec spec)
DataStore
hasData
in interface DataStore
spec
- plot data specification objectpublic DataStore readDataStore(DataSpec[] specs, DataStore prevStore)
readDataStore
in interface DataStoreFactory
specs
- data specifications; some elements may be nullprevStore
- previously obtained DataStore, or null
public TupleSequence getTupleSequence(DataSpec spec)
DataStore
DataStore.hasData(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the
given DataSpec; if not, behaviour is undefined.
getTupleSequence
in interface DataStore
spec
- plot data specification object
public static DomainMapper[] getUserCoordMappers(DataSpec dataSpec, int icoord)
dataSpec
- data specification objecticoord
- index of coordinate in dataSpec
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |