DSSX_Bag
DSSX_Bag
dssx
1998 12-06
CLASS
DSSX_Bag - provides a DSS extended construct for content addressable memory.
SYNOPSIS
This class provides a bag-like collection of GPL_Tuple objects using DSS.
This class is derived from GPL_Bag and adds DSSX functionality.
PARENTS
| DSSX_Chunk |
public
|
| GPL_Bag |
public
|
CONSTRUCTOR
DSSX_Bag(DSSX_Connection *connection, const GPL_CharPtr &spacename, const GPL_CharPtr &name, DSS_ChunkConfig *config)
Construct a DSSX_Bag using connection in space spacename named name.
The config argument is used to configure the actual DSS chunks that
DSSX_Bag is implemented with.
MEMBER FUNCTIONS
long Refresh()
Load the bag data (the set of tuples) from the DSS space. This will replace
the current state.
If the bag does not exist in the DSS space this call will return FALSE.
long Update()
Load the bag data (the set of tuples) from the DSS space. This will replace
the current state.
If the bag does not exist in the DSS space this call will block until it does.
long Commit()
Send the bag data (the set of tuples) to the DSS space.
If the bag does not exist in the DSS space this call will create one.
void Invalidate()
Invalidate the DSS chunk(s) used to implement the DSSX_Bag.
long Lock()
Same as Refresh() except that access to the DSS data is prevented until Unlock()
is called.
long Unlock()
Same as Commit() except that a call of Unlock() must be preceded by a call
of Lock().