Class: simpleBinaryDataShredding

simpleBinaryDataShredding()

Shredder for simple binary data GET requests. The URL is used as key.

Constructor

new simpleBinaryDataShredding()

Source:

Methods

##getShredder(storeName) → {function}

Return the shredder for simple Binary Data
Parameters:
Name Type Description
storeName string Name of the Persistent Store into which the shredded data should be stored
Source:
Returns:
shredder The shredder function takes a Response object as parameter and returns a Promise which resolves to an array of objects which have the following structure: { 'name': storeName, 'resourceIdentifier': resourceIdentifier, 'keys': idArray, 'data': dataArray, 'resourceType' : 'single' }
Type
function

##getUnshredder() → {function}

Return the unshredder for simple Binary Data
Source:
Returns:
unshredder The unshredder function takes an array of objects and a response object as parameters. The array of objects has the following structure: { 'name': storeName, 'resourceIdentifier': resourceIdentifier, 'keys': idArray, 'data': dataArray, 'resourceType' : 'single' } The unshredder returns a Promise which resolves to a Response object.
Type
function