Class ZipAdapter
java.lang.Object
com.gigaspaces.client.storage_adapters.PropertyStorageAdapter
com.gigaspaces.client.storage_adapters.ZipAdapter
Adapter for compressing properties using standard zip compression and storing them in space in binary form.
- Since:
- 15.2
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTriggered when a property value arrives from the space and is about to be injected in the user's object.getName()Returns a name used for display in monitoring tools.Class<?> Returns the class of the values which will be stored in the space.booleanIndicates whether equality matching is supported.toBinaryWrapper(byte[] data) Default factory for wrapping a byte array in a container for space storage.Triggered when a property value is retrieved from the user's object and is about to be sent to the space.Methods inherited from class PropertyStorageAdapter
base64Decode, base64Encode, deserialize, serialize, supportsOrderedMatching, unwrapBinary, unzip, useBase64Wrapper, wrapBinary, zip
-
Constructor Details
-
ZipAdapter
public ZipAdapter()
-
-
Method Details
-
getName
Description copied from class:PropertyStorageAdapterReturns a name used for display in monitoring tools.- Overrides:
getNamein classPropertyStorageAdapter
-
getStorageClass
Description copied from class:PropertyStorageAdapterReturns the class of the values which will be stored in the space.- Overrides:
getStorageClassin classPropertyStorageAdapter
-
supportsEqualsMatching
public boolean supportsEqualsMatching()Description copied from class:PropertyStorageAdapterIndicates whether equality matching is supported. Defaults to false. Storage adapters who support equality should override this to true.- Overrides:
supportsEqualsMatchingin classPropertyStorageAdapter
-
toSpace
Description copied from class:PropertyStorageAdapterTriggered when a property value is retrieved from the user's object and is about to be sent to the space.- Specified by:
toSpacein classPropertyStorageAdapter- Parameters:
value- The original property value- Returns:
- The value which should be stored in space
- Throws:
IOException- Thrown when processing the property value fails.
-
fromSpace
Description copied from class:PropertyStorageAdapterTriggered when a property value arrives from the space and is about to be injected in the user's object.- Specified by:
fromSpacein classPropertyStorageAdapter- Parameters:
value- The value which was stored in the space- Returns:
- The value which should be set in the user's object.
- Throws:
IOException- Thrown when processing the property value fails.ClassNotFoundException- Thrown when processing the property value fails due to a class loading issue.
-
toBinaryWrapper
Description copied from class:PropertyStorageAdapterDefault factory for wrapping a byte array in a container for space storage.- Overrides:
toBinaryWrapperin classPropertyStorageAdapter
-