public abstract class AbstractRawStore extends Object implements IRawStore
IRawStore implementations. This class uses a
delegation pattern for the IStoreSerializer interface and does not
implement either the methods defined directly by the IRawStore
interface nor the methods of the IAddressManager interface. As such
it may be used as an abstract base class by any IRawStore
implementation.NULL| Constructor and Description |
|---|
AbstractRawStore()
The designated constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(long addr)
The default implementation is a NOP.
|
abstract IAddressManager |
getAddressManager()
Return the delegate object that provides the
IAddressManager
implementation for this IRawStore. |
InputStream |
getInputStream(long addr)
Return an input stream from which a previously written stream may be read
back.
|
IPSOutputStream |
getOutputStream()
Return an output stream which can be used to write on the backing store.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, deleteResources, destroy, force, getFile, getResourceMetadata, getUUID, isFullyBuffered, isOpen, isReadOnly, isStable, read, size, writegetByteCount, getOffset, getPhysicalAddress, toAddr, toStringgetCounterspublic abstract IAddressManager getAddressManager()
IAddressManager
implementation for this IRawStore.
Note: LRUNexus depends on the delegation model to retain
references to the IAddressManager without causing the
IRawStore to be retained. It uses the IAddressManager to
decode the address in order to track the bytesOnDisk for the buffered
records.
public void delete(long addr)
public IPSOutputStream getOutputStream()
IStreamStoreIPSOutputStream.getOutputStream in interface IStreamStorepublic InputStream getInputStream(long addr)
IStreamStoregetInputStream in interface IStreamStoreaddr - The address at which the stream was written.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.