|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.StepDataStore
public class StepDataStore
Wrapper data store implementation that dispenses all column data as evenly spaced subsamples by row.
Constructor Summary | |
---|---|
StepDataStore(DataStore base,
int step)
Constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StepDataStore(DataStore base, int step)
base
- base data store to which most behaviour is delegatedstep
- stride indicating the size of the subsample;
step=1 means all rows, step=2 means every other one etcMethod Detail |
---|
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 boolean hasData(DataSpec spec)
DataStore
hasData
in interface DataStore
spec
- plot data specification object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |