public class BulkDataItem extends EntryAdapter implements InternalBulkItem
_converter
_entryHolder
_typeDesc
Constructor and Description |
---|
BulkDataItem(IEntryHolder entryHolder,
ITypeDesc typeDesc,
short operation)
Constructs a
BulkDataItem out of IEntryHolder and TypeTableEntry. |
BulkDataItem(IEntryHolder entryHolder,
ITypeDesc typeDesc,
short operation,
IDataConverter<IEntryPacket> converter)
Constructs a
BulkDataItem out of IEntryHolder and TypeTableEntry.Given converter is used for internal entry conversion. |
Modifier and Type | Method and Description |
---|---|
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() |
String |
getTypeName() |
String |
getUid() |
boolean |
supportsDataAsDocument() |
boolean |
supportsDataAsObject() |
boolean |
supportsGetSpaceId() |
boolean |
supportsGetTypeDescriptor() |
String |
toString() |
getConverter, getTypeDescriptor, setConverter, toDocument, toDocument, toEntry, toEntry, toEntryPacket, toObject
getClassName, getEntry, getMapEntry, setClassName, toString
getFieldsValues, getFieldValue, getFieldValue, getHandback, getNotifyType, getTimeToLive, getUID, getVersion, isTransient, setFieldValue, setFieldValue
getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getObject, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isFifo, isIndexedField, isReplicatable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setConverter, toEntryPacket
getTypeDescriptor
public BulkDataItem(IEntryHolder entryHolder, ITypeDesc typeDesc, short operation)
BulkDataItem
out of IEntryHolder and TypeTableEntry.entryHolder
- underlying entry holdertypeDesc
- underlying entry type informationoperation
- one of the qualified BulkItem
operations.public BulkDataItem(IEntryHolder entryHolder, ITypeDesc typeDesc, short operation, IDataConverter<IEntryPacket> converter)
BulkDataItem
out of IEntryHolder and TypeTableEntry.public short getOperation()
BulkItem
getOperation
in interface BulkItem
BulkItem.REMOVE
/BulkItem.UPDATE
/BulkItem.WRITE
/BulkItem.PARTIAL_UPDATE
public String toString()
toString
in class CacheEntry
public String getTypeName()
getTypeName
in interface BulkItem
public String getIdPropertyName()
getIdPropertyName
in interface BulkItem
public Object getIdPropertyValue()
getIdPropertyValue
in interface BulkItem
public Object getSpaceId()
getSpaceId
in interface DataSyncOperation
public boolean supportsGetSpaceId()
supportsGetSpaceId
in interface DataSyncOperation
DataSyncOperation.getSpaceId()
operation.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 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.