public abstract class ByteStoreStoragePolicy extends StoragePolicy
attemptMakeByteStore()
method must be implemented,
and the other methods are implemented in terms of that.ADAPTIVE, DISCARD, PREF_PROPERTY, PREFER_DISK, PREFER_MEMORY, SIDEWAYS
Constructor and Description |
---|
ByteStoreStoragePolicy() |
Modifier and Type | Method and Description |
---|---|
protected abstract ByteStore |
attemptMakeByteStore()
Returns a ByteStore object to hold data.
|
ByteStore |
makeByteStore()
Returns a new ByteStore object which can be used to
provide a destination for general purpose data storage.
|
RowStore |
makeConfiguredRowStore(StarTable meta)
Creates a new RowStore and primes it by calling
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable) on it. |
RowStore |
makeRowStore()
Returns a new
RowStore object which can be used to
provide a destination for random-access table storage. |
copyTable, getDefaultPolicy, randomTable, setDefaultPolicy
protected abstract ByteStore attemptMakeByteStore() throws java.io.IOException
java.io.IOException
public ByteStore makeByteStore()
StoragePolicy
makeByteStore
in class StoragePolicy
public RowStore makeRowStore()
StoragePolicy
RowStore
object which can be used to
provide a destination for random-access table storage.makeRowStore
in class StoragePolicy
public RowStore makeConfiguredRowStore(StarTable meta)
StoragePolicy
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable)
on it.makeConfiguredRowStore
in class StoragePolicy
meta
- template giving the metadata which describes the rows
that will have to be storedacceptMetadata(meta)
has been
called