public class MonitorStoragePolicy extends StoragePolicy
ProgressBarTableSink
ADAPTIVE, DISCARD, PREF_PROPERTY, PREFER_DISK, PREFER_MEMORY, SIDEWAYS
Constructor and Description |
---|
MonitorStoragePolicy(StoragePolicy base,
TableSink sink)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StoragePolicy |
getBasePolicy()
Returns the base storage policy.
|
void |
interrupt()
Cancels this storage policy for table row writes.
|
boolean |
isInterrupted()
Indicates whether
interrupt() has been called on this object. |
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
public MonitorStoragePolicy(StoragePolicy base, TableSink sink)
base
- base policysink
- recipient for row storage events associated with this
policypublic void interrupt()
acceptRow
on a RowStore obtained
from this policy after calling this will result in an
InterruptedIOException
.public boolean isInterrupted()
interrupt()
has been called on this object.public StoragePolicy getBasePolicy()
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
calledpublic ByteStore makeByteStore()
StoragePolicy
makeByteStore
in class StoragePolicy
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.