Class MirrorChangeBulkDataItem
java.lang.Object
com.gigaspaces.internal.sync.mirror.MirrorChangeBulkDataItem
- All Implemented Interfaces:
BulkItem,DataSyncChangeSet,DataSyncOperation,InternalBulkItem
Wraps a change operation as bulk item
- Since:
- 9.5
- Author:
- eitany
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMirrorChangeBulkDataItem(ITypeDesc typeDesc, String uid, Object id, int version, long timeToLive, Collection<SpaceEntryMutator> mutators) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getItem()Return the data itemshortReturn the operation to executelonggetUid()intvoidsetConverter(IDataConverter<IEntryPacket> converter) booleanbooleanbooleanbooleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.datasource.BulkItem
getChangedProperties
-
Constructor Details
-
MirrorChangeBulkDataItem
public MirrorChangeBulkDataItem(ITypeDesc typeDesc, String uid, Object id, int version, long timeToLive, Collection<SpaceEntryMutator> mutators)
-
-
Method Details
-
getItem
Description copied from interface:BulkItemReturn the data item -
getOperation
public short getOperation()Description copied from interface:BulkItemReturn the operation to execute- Specified by:
getOperationin interfaceBulkItem- Returns:
- operation type
BulkItem.REMOVE/BulkItem.UPDATE/BulkItem.WRITE/BulkItem.PARTIAL_UPDATE
-
getTypeName
- Specified by:
getTypeNamein interfaceBulkItem- Returns:
- the name of the type/class
-
getIdPropertyName
- Specified by:
getIdPropertyNamein interfaceBulkItem- Returns:
- the name of the id property
-
getIdPropertyValue
- Specified by:
getIdPropertyValuein interfaceBulkItem- Returns:
- the value of the id property
-
getItemValues
- Specified by:
getItemValuesin interfaceBulkItem- Returns:
- a map of the object properties. The keys are the names of the properties and their values is the object values. In case of a partial update - only the updated values are returned.s
-
getUid
- Specified by:
getUidin interfaceDataSyncOperation- Returns:
- The operation's data UID.
-
getDataSyncOperationType
- Specified by:
getDataSyncOperationTypein interfaceDataSyncOperation- Returns:
- the operation type.
-
getDataAsObject
- Specified by:
getDataAsObjectin interfaceDataSyncOperation- Returns:
- the operation data as object (i.e pojo), this can only be used if
DataSyncOperation.supportsDataAsObject()return true, otherwise an exception will be thrown.
-
getDataAsDocument
- Specified by:
getDataAsDocumentin interfaceDataSyncOperation- Returns:
- the operation data as space document, this can only be used if
DataSyncOperation.supportsDataAsDocument()return true, otherwise an exception will be thrown.
-
getTypeDescriptor
- Specified by:
getTypeDescriptorin interfaceDataSyncOperation- Returns:
- the type descriptor of the data type. this can only be used if
DataSyncOperation.supportsGetTypeDescriptor()return true, otherwise an exception will be thrown.
-
supportsGetTypeDescriptor
public boolean supportsGetTypeDescriptor()- Specified by:
supportsGetTypeDescriptorin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getTypeDescriptor()operation.
-
supportsDataAsObject
public boolean supportsDataAsObject()- Specified by:
supportsDataAsObjectin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsObject()operation.
-
supportsDataAsDocument
public boolean supportsDataAsDocument()- Specified by:
supportsDataAsDocumentin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsDocument()operation.
-
setConverter
- Specified by:
setConverterin interfaceInternalBulkItem
-
toEntryPacket
- Specified by:
toEntryPacketin interfaceInternalBulkItem
-
getOperations
- Specified by:
getOperationsin interfaceDataSyncChangeSet- Returns:
- the change operations.
-
getId
- Specified by:
getIdin interfaceDataSyncChangeSet- Returns:
- the id of the object which was changed.
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceDataSyncChangeSet- Returns:
- the version of the object after the change was applied.
-
getTimeToLive
public long getTimeToLive()- Specified by:
getTimeToLivein interfaceDataSyncChangeSet- Returns:
- the remaining time to live of the object after the change was applied.
-
supportsGetSpaceId
public boolean supportsGetSpaceId()- Specified by:
supportsGetSpaceIdin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getSpaceId()operation.
-
getSpaceId
- Specified by:
getSpaceIdin interfaceDataSyncOperation- Returns:
- The operation's data Id.
-
toString
-