public interface IAtomicStore extends IRawStore
NULL| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abandon the current write set (synchronous).
|
long |
commit()
Atomic commit (synchronous).
|
ICommitRecord |
getCommitRecord(long timestamp)
Return the
ICommitRecord for the most recent committed state
whose commit timestamp is less than or equal to timestamp. |
long |
getRootAddr(int index)
The last address stored in the specified root slot as of the last
committed state of the store.
|
IRootBlockView |
getRootBlockView()
Return a read-only view of the current root block.
|
boolean |
isDirty()
|
void |
setCommitter(int index,
ICommitter committer)
Set a persistence capable data structure for callback during the commit
protocol.
|
close, delete, deleteResources, destroy, force, getFile, getResourceMetadata, getUUID, isFullyBuffered, isOpen, isReadOnly, isStable, read, size, writegetByteCount, getOffset, getPhysicalAddress, toAddr, toStringgetCountersgetInputStream, getOutputStreamvoid abort()
long commit()
Note: if the commit fails (by throwing any kind of exception) then you
MUST invoke abort() to abandon the current write set.
ICommitRecord -or- 0L if
there were no data to commit.IllegalStateException - if the store is not open.IllegalStateException - if the store is not writable.void setCommitter(int index,
ICommitter committer)
Note: the committers must be reset after restart or whenever
index - The slot in the root block where the address of the
ICommitter will be recorded.committer - The committer.long getRootAddr(int index)
index - The index of the root address to be retrieved.IndexOutOfBoundsException - if the index is negative or too large.IRootBlockView getRootBlockView()
ICommitRecord getCommitRecord(long timestamp)
ICommitRecord for the most recent committed state
whose commit timestamp is less than or equal to timestamp. This
is used by a transaction to locate the committed state that is
the basis for its operations.timestamp - The timestamp of interest.ICommitRecord for the most recent committed state
whose commit timestamp is less than or equal to timestamp
-or- null iff there are no ICommitRecords
that satisfy the probe.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.