DataStore
, DataStoreFactory
public class SimpleDataStoreFactory extends java.lang.Object implements DataStoreFactory, DataStore
Constructor | Description |
---|---|
SimpleDataStoreFactory() |
Modifier and Type | Method | Description |
---|---|---|
TupleSequence |
getTupleSequence(DataSpec spec) |
Returns the data described by a given DataSpec as a sequence of
tuples.
|
static uk.ac.starlink.table.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.
|
public boolean hasData(DataSpec spec)
DataStore
public DataStore readDataStore(DataSpec[] specs, DataStore prevStore)
readDataStore
in interface DataStoreFactory
specs
- data specifications; some elements may be nullprevStore
- previously obtained DataStore, or nullpublic 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 objectpublic static uk.ac.starlink.table.DomainMapper[] getUserCoordMappers(DataSpec dataSpec, int icoord)
dataSpec
- data specification objecticoord
- index of coordinate in dataSpec
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.