Class MirrorBulkDataItem
java.lang.Object
com.gigaspaces.internal.sync.mirror.MirrorBulkDataItem
- All Implemented Interfaces:
BulkItem,DataSyncOperation,InternalBulkItem
- Direct Known Subclasses:
PartialUpdateMirrorBulkItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IDataConverter<IEntryPacket>protected final IEntryPacket -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()Return the data itemshortReturn the operation to executegetUid()voidsetConverter(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
-
Field Details
-
_dataPacket
-
_converter
-
-
Constructor Details
-
MirrorBulkDataItem
-
-
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
-
getConverter
-
setConverter
- Specified by:
setConverterin interfaceInternalBulkItem
-
toEntryPacket
- Specified by:
toEntryPacketin interfaceInternalBulkItem
-
toString
-
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
-
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.
-
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.
-