Package com.gigaspaces.metadata.index
Class SpaceIndexFactory
java.lang.Object
com.gigaspaces.metadata.index.SpaceIndexFactory
Factory which provides methods to create space indexes.
- Since:
- 8.0
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpaceIndexcreateCompoundIndex(String[] paths) static SpaceIndexcreateCompoundIndex(String[] paths, SpaceIndexType indexType, String indexName, boolean unique) Creates a space compound index from the specified paths with the specified index type.static StringcreateCompoundIndexName(String[] paths) static SpaceIndexcreatePathIndex(String path, SpaceIndexType indexType) Creates a space index for the specified path with the specified index type.static SpaceIndexcreatePathIndex(String path, SpaceIndexType indexType, boolean unique) Creates a space index for the specified path with the specified index type.static SpaceIndexcreatePropertyIndex(String propertyName, SpaceIndexType indexType) Creates a space index for the specified property with the specified index type.static SpaceIndexcreatePropertyIndex(String propertyName, SpaceIndexType indexType, boolean unique) Creates a space index for the specified property with the specified index type.static StringgetIndexName(List<String> paths)
-
Constructor Details
-
SpaceIndexFactory
public SpaceIndexFactory()
-
-
Method Details
-
createPropertyIndex
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
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
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
-
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
-
getIndexName
-