public class MirrorBulkDataItem extends Object implements InternalBulkItem
Modifier and Type | Field and Description |
---|---|
protected IDataConverter<IEntryPacket> |
_converter |
protected IEntryPacket |
_dataPacket |
Constructor and Description |
---|
MirrorBulkDataItem(IEntryPacket dataPacket,
short operation) |
Modifier and Type | Method and Description |
---|---|
IDataConverter<IEntryPacket> |
getConverter() |
SpaceDocument |
getDataAsDocument() |
Object |
getDataAsObject() |
DataSyncOperationType |
getDataSyncOperationType() |
String |
getIdPropertyName() |
Object |
getIdPropertyValue() |
Object |
getItem()
Return the data item
|
Map<String,Object> |
getItemValues() |
short |
getOperation()
Return the operation to execute
|
Object |
getSpaceId() |
SpaceTypeDescriptor |
getTypeDescriptor() |
String |
getTypeName() |
String |
getUid() |
void |
setConverter(IDataConverter<IEntryPacket> converter) |
boolean |
supportsDataAsDocument() |
boolean |
supportsDataAsObject() |
boolean |
supportsGetSpaceId() |
boolean |
supportsGetTypeDescriptor() |
String |
toString() |
protected final IEntryPacket _dataPacket
protected IDataConverter<IEntryPacket> _converter
public MirrorBulkDataItem(IEntryPacket dataPacket, short operation)
public short getOperation()
BulkItem
getOperation
in interface BulkItem
BulkItem.REMOVE
/BulkItem.UPDATE
/BulkItem.WRITE
/BulkItem.PARTIAL_UPDATE
public IDataConverter<IEntryPacket> getConverter()
public void setConverter(IDataConverter<IEntryPacket> converter)
setConverter
in interface InternalBulkItem
public String getTypeName()
getTypeName
in interface BulkItem
public String getIdPropertyName()
getIdPropertyName
in interface BulkItem
public Object getIdPropertyValue()
getIdPropertyValue
in interface BulkItem
public boolean supportsGetSpaceId()
supportsGetSpaceId
in interface DataSyncOperation
DataSyncOperation.getSpaceId()
operation.public Object getSpaceId()
getSpaceId
in interface DataSyncOperation
public Map<String,Object> getItemValues()
getItemValues
in interface BulkItem
public String getUid()
getUid
in interface DataSyncOperation
public DataSyncOperationType getDataSyncOperationType()
getDataSyncOperationType
in interface DataSyncOperation
public Object getDataAsObject()
getDataAsObject
in interface DataSyncOperation
DataSyncOperation.supportsDataAsObject()
return true, otherwise an exception will be thrown.public SpaceDocument getDataAsDocument()
getDataAsDocument
in interface DataSyncOperation
DataSyncOperation.supportsDataAsDocument()
return true, otherwise an exception will be thrown.public SpaceTypeDescriptor getTypeDescriptor()
getTypeDescriptor
in interface DataSyncOperation
DataSyncOperation.supportsGetTypeDescriptor()
return true, otherwise an exception will be thrown.public boolean supportsGetTypeDescriptor()
supportsGetTypeDescriptor
in interface DataSyncOperation
DataSyncOperation.getTypeDescriptor()
operation.public boolean supportsDataAsObject()
supportsDataAsObject
in interface DataSyncOperation
DataSyncOperation.getDataAsObject()
operation.public boolean supportsDataAsDocument()
supportsDataAsDocument
in interface DataSyncOperation
DataSyncOperation.getDataAsDocument()
operation.Copyright © GigaSpaces.