public class BlobStoreHashMock extends BlobStoreStorageHandler
Modifier and Type | Class and Description |
---|---|
class |
BlobStoreHashMock.MockIter |
Constructor and Description |
---|
BlobStoreHashMock() |
Modifier and Type | Method and Description |
---|---|
Object |
add(Serializable id,
Serializable data,
BlobStoreObjectType objectType)
Add the specified id with the specified data .
|
void |
close()
.
|
Serializable |
get(Serializable id,
Object position,
BlobStoreObjectType objectType)
Returns the data to which the specified id is mapped,
|
void |
initialize(BlobStoreConfig blobStoreConfig)
initialize a blob-store implementation.
|
DataIterator<BlobStoreGetBulkOperationResult> |
iterator(BlobStoreObjectType objectType)
.
|
Serializable |
remove(Serializable id,
Object position,
BlobStoreObjectType objectType)
Removes the id (and its corresponding data) from this FDF.
|
Object |
replace(Serializable id,
Serializable data,
Object position,
BlobStoreObjectType objectType)
Replace the data to which the specified id is mapped with new data,
|
executeBulk, getProperties, getStatistics, isPersistent
public void initialize(BlobStoreConfig blobStoreConfig)
BlobStoreStorageHandler
initialize
in class BlobStoreStorageHandler
blobStoreConfig
- - Configuration for blobstore implementation.public Object add(Serializable id, Serializable data, BlobStoreObjectType objectType)
BlobStoreStorageHandler
add
in class BlobStoreStorageHandler
id
- id with which the specified value is to be associateddata
- data to be associated with the specified idobjectType
- the object type - one of BlobStoreObjectType valuespublic Serializable get(Serializable id, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandler
get
in class BlobStoreStorageHandler
id
- id with which the specified data is to be associatedposition
- optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType
- the object type - one of BlobStoreObjectType valuespublic Object replace(Serializable id, Serializable data, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandler
replace
in class BlobStoreStorageHandler
id
- id with which the specified data is to be associateddata
- the new data to replace the existing one.position
- optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType
- the object type - one of BlobStoreObjectType valuespublic Serializable remove(Serializable id, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandler
remove
in class BlobStoreStorageHandler
id
- the key that needs to be removedposition
- optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType
- the object type - one of BlobStoreObjectType valuespublic void close()
BlobStoreStorageHandler
close
in class BlobStoreStorageHandler
public DataIterator<BlobStoreGetBulkOperationResult> iterator(BlobStoreObjectType objectType)
BlobStoreStorageHandler
iterator
in class BlobStoreStorageHandler
objectType
- the object type - one of BlobStoreObjectType valuesCopyright © GigaSpaces.