|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gigaspaces.document.DocumentProperties
public class DocumentProperties
An implementation of Map optimized for usage with SpaceDocument.
DocumentProperties contains the following enhancements:
1. Usability: Fluent-styled setProperty method to enable fluent coding.
2. Serialization performance: Externalizable implementation with special optimization for properties names.
3. Memory footprint: Open-addressing algorithm is used to conserve memory usage.
SpaceDocument,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
DocumentProperties()
Constructs a new DocumentProperties. |
|
DocumentProperties(int initialCapacity)
Constructs a new DocumentProperties with the specified initial capacity. |
|
DocumentProperties(int initialCapacity,
float loadFactor)
Constructs a new DocumentProperties with the specified initial capacity and load factor. |
|
DocumentProperties(Map<String,Object> properties)
Constructs a new DocumentProperties with the same properties as the specified Map. |
|
| Method Summary | ||
|---|---|---|
void |
clear()
|
|
boolean |
containsKey(Object key)
|
|
boolean |
containsValue(Object value)
|
|
Set<Map.Entry<String,Object>> |
entrySet()
|
|
boolean |
equals(Object obj)
Compares the specified object with this map for equality. |
|
Object |
get(Object key)
|
|
|
getProperty(String name)
Get document property value by name |
|
int |
hashCode()
Returns the hash code value for this map. |
|
boolean |
isEmpty()
|
|
Set<String> |
keySet()
|
|
Object |
put(String key,
Object value)
|
|
void |
putAll(Map<? extends String,? extends Object> t)
|
|
void |
readExternal(ObjectInput in)
|
|
Object |
remove(Object key)
|
|
DocumentProperties |
setProperty(String name,
Object value)
Set document property |
|
int |
size()
|
|
String |
toString()
|
|
Collection<Object> |
values()
|
|
void |
writeExternal(ObjectOutput out)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentProperties()
public DocumentProperties(int initialCapacity)
initialCapacity - The initial capacity.
public DocumentProperties(int initialCapacity,
float loadFactor)
initialCapacity - The initial capacity.loadFactor - The load factor.public DocumentProperties(Map<String,Object> properties)
properties - The map whose mappings are to be copied.| Method Detail |
|---|
public <T> T getProperty(String name)
name - property name
public DocumentProperties setProperty(String name,
Object value)
name - property namevalue - property valuepublic int size()
size in interface Map<String,Object>public boolean isEmpty()
isEmpty in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Object get(Object key)
get in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public void putAll(Map<? extends String,? extends Object> t)
putAll in interface Map<String,Object>public void clear()
clear in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in interface Map<String,Object>equals in class Objectobj - object to be compared for equality with this map.
public int hashCode()
hashCode in interface Map<String,Object>hashCode in class ObjectObject.hashCode(),
Object.equals(Object),
equals(Object)
|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||