Class DocumentProperties

java.lang.Object
com.gigaspaces.document.DocumentProperties
All Implemented Interfaces:
Externalizable, Serializable, Map<String,Object>

public class DocumentProperties extends Object implements Map<String,Object>, Externalizable
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.
Since:
8.0
Author:
Niv Ingberg
See Also:
  • Constructor Details

    • DocumentProperties

      public DocumentProperties()
      Constructs a new DocumentProperties.
    • DocumentProperties

      public DocumentProperties(int initialCapacity)
      Constructs a new DocumentProperties with the specified initial capacity.
      Parameters:
      initialCapacity - The initial capacity.
    • DocumentProperties

      public DocumentProperties(int initialCapacity, float loadFactor)
      Constructs a new DocumentProperties with the specified initial capacity and load factor.
      Parameters:
      initialCapacity - The initial capacity.
      loadFactor - The load factor.
    • DocumentProperties

      public DocumentProperties(Map<String,Object> properties)
      Constructs a new DocumentProperties with the same properties as the specified Map.
      Parameters:
      properties - The map whose mappings are to be copied.
  • Method Details