public final class BerkeleyReader extends Object implements IBackendReader
IBackendReader
-interface.Modifier and Type | Field and Description |
---|---|
protected com.sleepycat.bind.tuple.TupleBinding<IBucket> |
mBucketBinding
Binding for
IBucket . |
protected com.google.common.cache.Cache<Long,IBucket> |
mCache
Cache for reading data.
|
protected com.sleepycat.je.Environment |
mEnv |
Constructor and Description |
---|
BerkeleyReader(com.sleepycat.je.Environment pEnv,
com.sleepycat.je.Database pDatabase,
com.sleepycat.bind.tuple.TupleBinding<IBucket> pBucketBinding)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing the storage.
|
IBucket |
read(long pKey)
Getting a reference for the given pointer.
|
UberBucket |
readUber()
Reading the UberBucket
|
protected final com.sleepycat.bind.tuple.TupleBinding<IBucket> mBucketBinding
IBucket
.protected final com.sleepycat.je.Environment mEnv
public BerkeleyReader(com.sleepycat.je.Environment pEnv, com.sleepycat.je.Database pDatabase, com.sleepycat.bind.tuple.TupleBinding<IBucket> pBucketBinding)
pEnv
- pDatabase
- Storage
reference to be connected topBucketBinding
- TupleBinding
for de/-serializing bucketspublic IBucket read(long pKey) throws TTIOException
read
in interface IBackendReader
pKey
- the reference for the bucket to be determinedIBucket
as the base for a bucketTTIOException
public void close() throws TTIOException
close
in interface IBackendReader
TTIOException
- if something bad happens while accesspublic UberBucket readUber() throws TTIOException
readUber
in interface IBackendReader
TTIOException
Copyright © 2013. All Rights Reserved.