public class CombinedWriter extends Object implements IBackendWriter
Constructor and Description |
---|
CombinedWriter(IBackendWriter pFirstWriter,
IBackendWriter pSecondWriter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing the write access.
|
IBucket |
read(long pKey)
Getting a reference for the given pointer.
|
UberBucket |
readUber()
Reading the UberBucket
|
void |
write(IBucket bucket)
Writing a bucket related to the reference.
|
void |
writeUberBucket(UberBucket pBucket)
Writing the
UberBucket including the pointer to the bucket. |
public CombinedWriter(IBackendWriter pFirstWriter, IBackendWriter pSecondWriter)
pFirstWriter
- first writerpSecondWriter
- second writerpublic 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 UberBucket readUber() throws TTIOException
readUber
in interface IBackendReader
TTIOException
public void write(IBucket bucket) throws TTException
write
in interface IBackendWriter
bucket
- bucket to be writtenTTException
- execption to be thrown if something bad happenspublic void writeUberBucket(UberBucket pBucket) throws TTException
UberBucket
including the pointer to the bucket.writeUberBucket
in interface IBackendWriter
pBucket
- the UberBucket to be written.TTException
public void close() throws TTIOException
close
in interface IBackendReader
close
in interface IBackendWriter
TTIOException
- if closing failsCopyright © 2013. All Rights Reserved.