Class SpaceIndexFactory

java.lang.Object
com.gigaspaces.metadata.index.SpaceIndexFactory

public class SpaceIndexFactory extends Object
Factory which provides methods to create space indexes.
Since:
8.0
Author:
Niv Ingberg
See Also:
  • Constructor Details

    • SpaceIndexFactory

      public SpaceIndexFactory()
  • Method Details

    • createPropertyIndex

      public static SpaceIndex createPropertyIndex(String propertyName, SpaceIndexType indexType)
      Creates a space index for the specified property with the specified index type.
      Parameters:
      propertyName - Name of property to index.
      indexType - type of index.
      Returns:
      A space index for the specified property.
    • createPropertyIndex

      public static SpaceIndex createPropertyIndex(String propertyName, SpaceIndexType indexType, boolean unique)
      Creates a space index for the specified property with the specified index type.
      Parameters:
      propertyName - Name of property to index.
      indexType - type of index.
      unique - tre if unique index.
      Returns:
      A space index for the specified property.
    • createPathIndex

      public static SpaceIndex createPathIndex(String path, SpaceIndexType indexType)
      Creates a space index for the specified path with the specified index type.
      Parameters:
      path - Path to index.
      indexType - type of index.
      Returns:
      A space index for the specified path.
    • createPathIndex

      public static SpaceIndex createPathIndex(String path, SpaceIndexType indexType, boolean unique)
      Creates a space index for the specified path with the specified index type.
      Parameters:
      path - Path to index.
      indexType - type of index.
      unique - tre if unique index.
      Returns:
      A space index for the specified path.
    • createCompoundIndex

      public static SpaceIndex createCompoundIndex(String[] paths)
    • createCompoundIndex

      public static SpaceIndex createCompoundIndex(String[] paths, SpaceIndexType indexType, String indexName, boolean unique)
      Creates a space compound index from the specified paths with the specified index type.
      Parameters:
      indexName - - null or a preset name
    • createCompoundIndexName

      public static String createCompoundIndexName(String[] paths)
    • getIndexName

      public static String getIndexName(List<String> paths)