DiskSwapDevice Class Reference

This class implements the ISwapDevice interface for writing RowBlocks to a disk file. More...

Inherits Simba::DSI::SwapDevice.

List of all members.

Public Member Functions

 DiskSwapDevice (Simba::DSI::SwapManager &in_swapManager)
 Constructor.
virtual void FlushBlock (Simba::DSI::RowBlock &in_rowBlock)
 Flush the given RowBlock to the device.
virtual std::pair
< simba_uint64, simba_uint32 > 
ReadBlock (simba_uint64 in_rowNumber, Simba::DSI::RowBlock &io_rowBlock)
 Read the RowBlock from the device that contains the given row into io_rowBlock.
virtual void Reset ()
 Reset the Swap Device to an empty state.
virtual ~DiskSwapDevice ()
 Destructor.

Detailed Description

This class implements the ISwapDevice interface for writing RowBlocks to a disk file.


Constructor & Destructor Documentation

DiskSwapDevice ( Simba::DSI::SwapManager in_swapManager  )  [explicit]

Constructor.

Parameters:
in_swapManager The SwapManager that owns the DiskSwapDevice. (NOT OWN)
virtual ~DiskSwapDevice (  )  [virtual]

Destructor.


Member Function Documentation

virtual void FlushBlock ( Simba::DSI::RowBlock in_rowBlock  )  [virtual]

Flush the given RowBlock to the device.

Parameters:
in_rowBlock The RowBlock to flush to disk. (NOT OWN)

Implements SwapDevice.

virtual std::pair<simba_uint64, simba_uint32> ReadBlock ( simba_uint64  in_rowNumber,
Simba::DSI::RowBlock io_rowBlock 
) [virtual]

Read the RowBlock from the device that contains the given row into io_rowBlock.

Parameters:
in_rowNumber The row number that the block must contain.
io_rowBlock The RowBlock which will be filled with data.
Returns:
the start row number and count of the block.
Exceptions:
InvalidOperationException If the given row number has not been saved to disk.

Implements SwapDevice.

virtual void Reset (  )  [virtual]

Reset the Swap Device to an empty state.

Implements SwapDevice.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:15 2017 for SimbaEngine 10.1.3.1011 by simba