public class SimpleDataStoreFactory extends Object implements DataStoreFactory, DataStore
Constructor and Description |
---|
SimpleDataStoreFactory(TupleRunner runner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TupleRunner |
getTupleRunner()
Returns an object that manages iteration over tuples.
|
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.
|
DataStore |
readDataStore(DataSpec[] specs,
DataStore prevStore)
Executes instantly and returns this object.
|
public SimpleDataStoreFactory(TupleRunner runner)
runner
- tuple runner dispensed with DataStorespublic 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 TupleRunner getTupleRunner()
DataStore
getTupleRunner
in interface DataStore
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.