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, setDefaultPolicyprotected abstract ByteStore attemptMakeByteStore() throws IOException
IOExceptionpublic ByteStore makeByteStore()
StoragePolicymakeByteStore in class StoragePolicypublic RowStore makeRowStore()
StoragePolicyRowStore object which can be used to
provide a destination for random-access table storage.makeRowStore in class StoragePolicypublic RowStore makeConfiguredRowStore(StarTable meta)
StoragePolicyTableSink.acceptMetadata(uk.ac.starlink.table.StarTable) on it.makeConfiguredRowStore in class StoragePolicymeta - template giving the metadata which describes the rows
that will have to be storedacceptMetadata(meta) has been
calledCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.