public interface IBucketReadTrx
//Ensure, storage and resources are created
final IStorage storage = Storage.openStorage(FILE);
final ISession session =
storage.getSession(new SessionConfiguration(RESOURCENAME, KEY));
final IBucketReadTrx pRtx = session.beginBucketRtx(REVISION);
Each IBucketReadTrx
can afterwards get datas from the bucket-layer and the underlaying backend.
Note that each session furthermore has access to a centralized store of common strings referencable over a
key.Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close the transaction.
|
IData |
getData(long pKey)
Getting the data related to a key.
|
MetaBucket |
getMetaBucket()
Getting the map with the entire mapping for retrieving meta-information related to the bundle.
|
long |
getRevision()
Getting the revision number of this transaction
|
boolean |
isClosed()
Check if transaction is closed.
|
IData getData(long pKey) throws TTIOException
pKey
- the key of the dataIData
TTException
- if anything weird happensTTIOException
long getRevision() throws TTIOException
TTIOException
- if deserialization fails.boolean close() throws TTIOException
TTIOException
- if anything weird happensboolean isClosed()
MetaBucket getMetaBucket()
Copyright © 2013. All Rights Reserved.