|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataStore
Contains all the actual data required for a plot.
To extract usable data for a plot, a suitable DataSpec
object
is also required.
Because instances of this class manage the data, by keeping track of
the DataStore
s in an application you can control where
the memory is used. All the other objects connected with a plot,
for instance the PlotLayer
s
and DataSpec
s, are cheap
to produce and have small memory footprints, so can be created and
destroyed as required.
As a rule therefore, DataStore objects should be managed by a single class,
and references not kept to them by any other potentially long-lived objects.
Obtain an instance of this class from a DataStoreFactory
.
Method Summary | |
---|---|
TupleSequence |
getTupleSequence(DataSpec spec)
Returns the data described by a given DataSpec as a sequence of tuples. |
boolean |
hasData(DataSpec spec)
Indicates whether this store has the data described by a given DataSpec. |
Method Detail |
---|
boolean hasData(DataSpec spec)
spec
- plot data specification objectTupleSequence getTupleSequence(DataSpec spec)
hasData(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the
given DataSpec; if not, behaviour is undefined.
spec
- plot data specification object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |