public class ViewPropertiesEntryData extends Object implements IEntryData
If the data (fixed properties) in an entry data is stored in a packed format, retrieving it more than once is inefficient. This class provides a mutable view of an entry data - when a viewed entry is set it prefetches the data and caches it, using it to server get requests (set requests are illegal). This helps reducing footprint on the actual entry data in cache manager and gc activity when querying the space.
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
dynamicProperties |
protected IEntryData |
entry |
Constructor and Description |
---|
ViewPropertiesEntryData() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getDynamicProperties() |
IEntryData |
getEntry() |
EntryDataType |
getEntryDataType() |
EntryTypeDesc |
getEntryTypeDesc() |
long |
getExpirationTime()
Gets the entry expiration time.
|
Object[] |
getFixedPropertiesValues() |
Object |
getFixedPropertyValue(int position)
Gets the specified fixed property's value.
|
HybridPropertiesHolder |
getPropertiesHolder() |
int |
getVersion()
Gets the entry version.
|
boolean |
isView() |
boolean |
isViewOf(IEntryData entryData) |
void |
setDynamicProperties(Map<String,Object> dynamicProperties) |
void |
setFixedPropertyValue(int index,
Object value) |
void |
setFixedPropertyValues(Object[] values) |
void |
view(IEntryData entryData) |
void |
view(IEntryData entryData,
HybridPropertiesHolder holder) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNumOfFixedProperties, getPathValue, getPropertyValue, getSpaceTypeDescriptor, getTimeToLive, isDummyLease, isHybrid, setVersion
protected IEntryData entry
public void view(IEntryData entryData)
public void view(IEntryData entryData, HybridPropertiesHolder holder)
public HybridPropertiesHolder getPropertiesHolder()
public EntryDataType getEntryDataType()
getEntryDataType
in interface IEntryData
public Object[] getFixedPropertiesValues()
getFixedPropertiesValues
in interface IEntryData
public Object getFixedPropertyValue(int position)
ServerEntry
getFixedPropertyValue
in interface ServerEntry
position
- Position of requested property.public EntryTypeDesc getEntryTypeDesc()
getEntryTypeDesc
in interface IEntryData
public int getVersion()
ServerEntry
getVersion
in interface ServerEntry
public long getExpirationTime()
ServerEntry
getExpirationTime
in interface ServerEntry
public boolean isViewOf(IEntryData entryData)
public Map<String,Object> getDynamicProperties()
getDynamicProperties
in interface IEntryData
public IEntryData getEntry()
public void setFixedPropertyValue(int index, Object value)
setFixedPropertyValue
in interface IEntryData
public void setFixedPropertyValues(Object[] values)
setFixedPropertyValues
in interface IEntryData
public void setDynamicProperties(Map<String,Object> dynamicProperties)
setDynamicProperties
in interface IEntryData
public boolean isView()
isView
in interface IEntryData
Copyright © GigaSpaces.