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 | Description |
---|---|
ByteStoreStoragePolicy() |
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
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 storedCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.